rasshost.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include <winapifamily.h>
  8. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  9. #include <mprapi.h>
  10. typedef HANDLE HPORT;
  11. typedef struct _SECURITY_MESSAGE {
  12. DWORD dwMsgId;
  13. HPORT hPort;
  14. DWORD dwError;
  15. CHAR UserName[UNLEN+1];
  16. CHAR Domain[DNLEN+1];
  17. } SECURITY_MESSAGE,*PSECURITY_MESSAGE;
  18. #define SECURITYMSG_SUCCESS 1
  19. #define SECURITYMSG_FAILURE 2
  20. #define SECURITYMSG_ERROR 3
  21. typedef struct _RAS_SECURITY_INFO {
  22. DWORD LastError;
  23. DWORD BytesReceived;
  24. CHAR DeviceName[MAX_DEVICE_NAME+1];
  25. } RAS_SECURITY_INFO,*PRAS_SECURITY_INFO;
  26. typedef DWORD (WINAPI *RASSECURITYPROC)();
  27. VOID WINAPI RasSecurityDialogComplete(SECURITY_MESSAGE *pSecMsg);
  28. DWORD WINAPI RasSecurityDialogBegin(HPORT hPort,PBYTE pSendBuf,DWORD SendBufSize,PBYTE pRecvBuf,DWORD RecvBufSize,VOID (WINAPI *RasSecurityDialogComplete)(SECURITY_MESSAGE *));
  29. DWORD WINAPI RasSecurityDialogEnd(HPORT hPort);
  30. DWORD WINAPI RasSecurityDialogSend(HPORT hPort,PBYTE pBuffer,WORD BufferLength);
  31. DWORD WINAPI RasSecurityDialogReceive(HPORT hPort,PBYTE pBuffer,PWORD pBufferLength,DWORD Timeout,HANDLE hEvent);
  32. DWORD WINAPI RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO *pBuffer);
  33. #endif
  34. #endif