tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Tinycc-devel Digest, Vol 211, Issue 20


From: D Q
Subject: Re: [Tinycc-devel] Tinycc-devel Digest, Vol 211, Issue 20
Date: Wed, 23 Dec 2020 13:01:40 -0800



Hi, if you just need definitions from handleapi.h



Drop only the following handleapi.h file in win32/include/winapi and it should work:



Thank you!  This worked!  I just commented out the other headers and included windows.h

for handleapi.h:

/**
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER within this package.
 */
#ifndef _HANDLEAPI_H
#define _HANDLEAPI_H

//#include <apiset.h>
//#include <apisetcconv.h>
//#include <minwindef.h>
#include <windows.h>

#ifdef __cplusplus
extern "C" {
#endif

#define INVALID_HANDLE_VALUE ((HANDLE) (LONG_PTR)-1)

#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
  WINBASEAPI WINBOOL WINAPI CloseHandle (HANDLE hObject);
  WINBASEAPI WINBOOL WINAPI DuplicateHandle (HANDLE hSourceProcessHandle, HANDLE hSourceHandle, HANDLE hTargetProcessHandle, LPHANDLE lpTargetHandle, DWORD dwDesiredAccess, WINBOOL bInheritHandle, DWORD dwOptions);
#endif

#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  WINBASEAPI WINBOOL WINAPI GetHandleInformation (HANDLE hObject, LPDWORD lpdwFlags);
  WINBASEAPI WINBOOL WINAPI SetHandleInformation (HANDLE hObject, DWORD dwMask, DWORD dwFlags);
#endif

#ifdef __cplusplus
}
#endif
#endif
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]