ReactOS  0.4.15-dev-2700-g4b4ffa9
rasshost.h
Go to the documentation of this file.
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 HANDLE HPORT;
15 
16 typedef struct _SECURITY_MESSAGE
17 {
24 
25 typedef struct _RAS_SECURITY_INFO
26 {
31 
33 
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*));
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 #endif
#define IN
Definition: typedefs.h:39
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3767
struct _RAS_SECURITY_INFO RAS_SECURITY_INFO
DWORD WINAPI RasSecurityDialogGetInfo(IN HPORT hPort, IN RAS_SECURITY_INFO *pBuffer)
char CHAR
Definition: xmlstorage.h:175
DWORD WINAPI RasSecurityDialogEnd(IN HPORT hPort)
CHAR Domain[DNLEN+1]
Definition: rasshost.h:22
DWORD WINAPI RasSecurityDialogReceive(IN HPORT hPort, IN PBYTE pBuffer, IN PWORD pBufferLength, IN DWORD Timeout, IN HANDLE hEvent)
#define DWORD
Definition: nt_native.h:44
DWORD WINAPI RasSecurityDialogBegin(IN HPORT hPort, IN PBYTE pSendBuf, IN DWORD SendBufSize, IN PBYTE pRecvBuf, IN DWORD RecvBufSize, IN VOID(WINAPI *RasSecurityDialogComplete)(SECURITY_MESSAGE *))
VOID WINAPI RasSecurityDialogComplete(IN SECURITY_MESSAGE *pSecMsg)
static HANDLE hEvent
Definition: comm.c:54
DWORD WINAPI RasSecurityDialogSend(IN HPORT hPort, IN PBYTE pBuffer, IN WORD BufferLength)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3272
PVOID pBuffer
WORD * PWORD
Definition: pedump.c:67
DWORD(WINAPI * RASSECURITYPROC)()
Definition: rasshost.h:32
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _SECURITY_MESSAGE * PSECURITY_MESSAGE
static ULONG Timeout
Definition: ping.c:61
#define UNLEN
Definition: sspi.c:28
#define MAX_DEVICE_NAME
Definition: fdc.h:14
struct _RAS_SECURITY_INFO * PRAS_SECURITY_INFO
struct _SECURITY_MESSAGE SECURITY_MESSAGE
#define DNLEN
Definition: lmcons.h:16
CHAR UserName[UNLEN+1]
Definition: rasshost.h:21
BYTE * PBYTE
Definition: pedump.c:66
DWORD BytesReceived
Definition: rasshost.h:28
HANDLE HPORT
Definition: rasshost.h:14