Sync with trunk (r48545)
[reactos.git] / include / psdk / rasshost.h
1 #ifndef _RASSHOST_H_
2 #define _RASSHOST_H_
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #include <ras.h>
8 #include <mprapi.h>
9
10 #define SECURITYMSG_SUCCESS 1
11 #define SECURITYMSG_FAILURE 2
12 #define SECURITYMSG_ERROR 3
13
14 typedef DWORD HPORT;
15
16 typedef struct _SECURITY_MESSAGE
17 {
18 DWORD dwMsgId;
19 HPORT hPort;
20 DWORD dwError;
21 CHAR UserName[UNLEN + 1];
22 CHAR Domain[DNLEN + 1];
23 } SECURITY_MESSAGE, *PSECURITY_MESSAGE;
24
25 typedef struct _RAS_SECURITY_INFO
26 {
27 DWORD LastError;
28 DWORD BytesReceived;
29 CHAR DeviceName[MAX_DEVICE_NAME + 1];
30 } RAS_SECURITY_INFO, *PRAS_SECURITY_INFO;
31
32 typedef DWORD (WINAPI *RASSECURITYPROC)();
33
34 VOID WINAPI RasSecurityDialogComplete(IN SECURITY_MESSAGE* pSecMsg);
35 DWORD WINAPI RasSecurityDialogBegin(IN HPORT hPort, IN PBYTE pSendBuf, IN DWORD SendBufSize, IN PBYTE pRecvBuf, IN DWORD RecvBufSize, IN VOID (WINAPI* RasSecurityDialogComplete)(SECURITY_MESSAGE*));
36 DWORD WINAPI RasSecurityDialogEnd(IN HPORT hPort);
37 DWORD WINAPI RasSecurityDialogSend(IN HPORT hPort, IN PBYTE pBuffer, IN WORD BufferLength);
38 DWORD WINAPI RasSecurityDialogReceive(IN HPORT hPort, IN PBYTE pBuffer, IN PWORD pBufferLength, IN DWORD Timeout, IN HANDLE hEvent);
39 DWORD WINAPI RasSecurityDialogGetInfo(IN HPORT hPort, IN RAS_SECURITY_INFO* pBuffer);
40
41 #ifdef __cplusplus
42 }
43 #endif
44 #endif