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