source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/rasshost.h@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 1.3 KB
Line 
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
14typedef HANDLE HPORT;
15
16typedef 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
28typedef 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
34typedef DWORD (WINAPI *RASSECURITYPROC)();
35
36VOID WINAPI RasSecurityDialogComplete(SECURITY_MESSAGE *pSecMsg);
37DWORD WINAPI RasSecurityDialogBegin(HPORT hPort,PBYTE pSendBuf,DWORD SendBufSize,PBYTE pRecvBuf,DWORD RecvBufSize,VOID (WINAPI *RasSecurityDialogComplete)(SECURITY_MESSAGE *));
38DWORD WINAPI RasSecurityDialogEnd(HPORT hPort);
39DWORD WINAPI RasSecurityDialogSend(HPORT hPort,PBYTE pBuffer,WORD BufferLength);
40DWORD WINAPI RasSecurityDialogReceive(HPORT hPort,PBYTE pBuffer,PWORD pBufferLength,DWORD Timeout,HANDLE hEvent);
41DWORD WINAPI RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO *pBuffer);
42
43#endif
44#endif
Note: See TracBrowser for help on using the repository browser.