21 #include <winpr/config.h>
23 #include <winpr/handle.h>
29 #include "../synch/synch.h"
30 #include "../thread/thread.h"
31 #include "../pipe/pipe.h"
32 #include "../comm/comm.h"
33 #include "../security/security.h"
35 #ifdef WINPR_HAVE_UNISTD_H
39 #include <winpr/assert.h>
41 #include "../handle/handle.h"
43 BOOL CloseHandle(HANDLE hObject)
48 if (!winpr_Handle_GetInfo(hObject, &Type, &Object))
57 if (Object->ops->CloseHandle)
58 return Object->ops->CloseHandle(hObject);
63 BOOL DuplicateHandle(HANDLE hSourceProcessHandle, HANDLE hSourceHandle, HANDLE hTargetProcessHandle,
64 LPHANDLE lpTargetHandle, DWORD dwDesiredAccess, BOOL bInheritHandle,
67 *((ULONG_PTR*)lpTargetHandle) = (ULONG_PTR)hSourceHandle;
71 BOOL GetHandleInformation(HANDLE hObject, LPDWORD lpdwFlags)
76 BOOL SetHandleInformation(HANDLE hObject, DWORD dwMask, DWORD dwFlags)