xref: /reactos/dll/win32/rasman/rasman.c (revision c2c66aff)
1 /*
2  * RASMAN
3  *
4  * Copyright 2007 ReactOS Team
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #define WIN32_NO_STATUS
22 
23 #include <stdarg.h>
24 
25 #include <windef.h>
26 #include <winbase.h>
27 //#include <ras.h>
28 #include <wine/debug.h>
29 #include <rasshost.h>
30 
31 static HINSTANCE hDllInstance;
32 
33 WINE_DEFAULT_DEBUG_CHANNEL(rasman);
34 
35 VOID WINAPI
RasSecurityDialogComplete(SECURITY_MESSAGE * pSecMsg)36 RasSecurityDialogComplete(SECURITY_MESSAGE* pSecMsg)
37 {
38     FIXME("(%p),stub!\n",pSecMsg);
39 }
40 
41 DWORD WINAPI
RasSecurityDialogBegin(HPORT hPort,PBYTE pSendBuf,DWORD SendBufSize,PBYTE pRecvBuf,DWORD RecvBufSize,VOID (WINAPI * RasSecurityDialogComplete)(SECURITY_MESSAGE *))42 RasSecurityDialogBegin(HPORT hPort, PBYTE pSendBuf,
43     DWORD SendBufSize, PBYTE pRecvBuf, DWORD RecvBufSize,
44     VOID (WINAPI *RasSecurityDialogComplete)(SECURITY_MESSAGE*))
45 {
46     FIXME("(%p,%p,0x%08x,%p,0x%08x,%p),stub!\n",hPort,pSendBuf,SendBufSize,
47           pRecvBuf,RecvBufSize,*RasSecurityDialogComplete);
48     return NO_ERROR;
49 }
50 
51 DWORD WINAPI
RasSecurityDialogSend(HPORT hPort,PBYTE pBuffer,WORD BufferLength)52 RasSecurityDialogSend(HPORT hPort, PBYTE pBuffer, WORD BufferLength)
53 {
54     FIXME("(%p,%p,%x),stub!\n",hPort, pBuffer, BufferLength);
55     return NO_ERROR;
56 }
57 
58 DWORD WINAPI
RasSecurityDialogReceive(HPORT hPort,PBYTE pBuffer,PWORD pBufferLength,DWORD Timeout,HANDLE hEvent)59 RasSecurityDialogReceive(HPORT hPort, PBYTE pBuffer, PWORD pBufferLength, DWORD Timeout, HANDLE hEvent)
60 {
61     FIXME("(%p,%p,%p,%x,%p),stub!\n",hPort, pBuffer, pBufferLength, Timeout, hEvent);
62     return NO_ERROR;
63 }
64 
65 DWORD WINAPI
RasSecurityDialogEnd(HPORT hPort)66 RasSecurityDialogEnd(HPORT hPort)
67 {
68     FIXME("(%p),stub!\n",hPort);
69     return NO_ERROR;
70 }
71 
72 DWORD WINAPI
RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO * pBuffer)73 RasSecurityDialogGetInfo(HPORT hPort, RAS_SECURITY_INFO* pBuffer)
74 {
75     FIXME("(%p,%p),stub!\n",hPort,pBuffer);
76     return NO_ERROR;
77 }
78 
79 BOOL WINAPI
DllMain(IN HINSTANCE hinstDLL,IN DWORD dwReason,IN LPVOID lpvReserved)80 DllMain(IN HINSTANCE hinstDLL,
81         IN DWORD dwReason,
82         IN LPVOID lpvReserved)
83 {
84     switch (dwReason)
85     {
86         case DLL_PROCESS_ATTACH:
87             hDllInstance = hinstDLL;
88             DisableThreadLibraryCalls(hinstDLL);
89             break;
90     }
91 
92     return TRUE;
93 }
94 
95