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