Add winapi-family check, correct HPORT type to be derived by HANDLE.

This commit is contained in:
Kai Tietz 2014-08-25 22:26:10 +02:00
parent 2f63f2631a
commit 24f6b8d72d

View File

@ -1,14 +1,17 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
#ifndef _RASSHOST_
#define _RASSHOST_
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#include <mprapi.h>
typedef DWORD HPORT;
typedef HANDLE HPORT;
typedef struct _SECURITY_MESSAGE {
DWORD dwMsgId;
@ -38,3 +41,4 @@ DWORD WINAPI RasSecurityDialogReceive(HPORT hPort,PBYTE pBuffer,PWORD pBufferLen
DWORD WINAPI RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO *pBuffer);
#endif
#endif