1 | /**
|
---|
2 | * This file is part of the mingw-w64 runtime package.
|
---|
3 | * No warranty is given; refer to the file DISCLAIMER within this package.
|
---|
4 | */
|
---|
5 | #ifndef _RASSHOST_
|
---|
6 | #define _RASSHOST_
|
---|
7 |
|
---|
8 | #include <winapifamily.h>
|
---|
9 |
|
---|
10 | #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
|
---|
11 |
|
---|
12 | #include <mprapi.h>
|
---|
13 |
|
---|
14 | typedef HANDLE HPORT;
|
---|
15 |
|
---|
16 | typedef struct _SECURITY_MESSAGE {
|
---|
17 | DWORD dwMsgId;
|
---|
18 | HPORT hPort;
|
---|
19 | DWORD dwError;
|
---|
20 | CHAR UserName[UNLEN+1];
|
---|
21 | CHAR Domain[DNLEN+1];
|
---|
22 | } SECURITY_MESSAGE,*PSECURITY_MESSAGE;
|
---|
23 |
|
---|
24 | #define SECURITYMSG_SUCCESS 1
|
---|
25 | #define SECURITYMSG_FAILURE 2
|
---|
26 | #define SECURITYMSG_ERROR 3
|
---|
27 |
|
---|
28 | typedef struct _RAS_SECURITY_INFO {
|
---|
29 | DWORD LastError;
|
---|
30 | DWORD BytesReceived;
|
---|
31 | CHAR DeviceName[MAX_DEVICE_NAME+1];
|
---|
32 | } RAS_SECURITY_INFO,*PRAS_SECURITY_INFO;
|
---|
33 |
|
---|
34 | typedef DWORD (WINAPI *RASSECURITYPROC)();
|
---|
35 |
|
---|
36 | VOID WINAPI RasSecurityDialogComplete(SECURITY_MESSAGE *pSecMsg);
|
---|
37 | DWORD WINAPI RasSecurityDialogBegin(HPORT hPort,PBYTE pSendBuf,DWORD SendBufSize,PBYTE pRecvBuf,DWORD RecvBufSize,VOID (WINAPI *RasSecurityDialogComplete)(SECURITY_MESSAGE *));
|
---|
38 | DWORD WINAPI RasSecurityDialogEnd(HPORT hPort);
|
---|
39 | DWORD WINAPI RasSecurityDialogSend(HPORT hPort,PBYTE pBuffer,WORD BufferLength);
|
---|
40 | DWORD WINAPI RasSecurityDialogReceive(HPORT hPort,PBYTE pBuffer,PWORD pBufferLength,DWORD Timeout,HANDLE hEvent);
|
---|
41 | DWORD WINAPI RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO *pBuffer);
|
---|
42 |
|
---|
43 | #endif
|
---|
44 | #endif
|
---|