21 #include <winpr/config.h>
23 #include "nonehandle.h"
29 static BOOL NoneHandleCloseHandle(HANDLE handle)
31 WINPR_NONE_HANDLE* none = (WINPR_NONE_HANDLE*)handle;
36 static BOOL NoneHandleIsHandle(HANDLE handle)
38 return WINPR_HANDLE_IS_HANDLED(handle, HANDLE_TYPE_NONE, FALSE);
41 static int NoneHandleGetFd(HANDLE handle)
43 if (!NoneHandleIsHandle(handle))
50 NoneHandleCloseHandle,
71 HANDLE CreateNoneHandle(
void)
73 WINPR_NONE_HANDLE* none = (WINPR_NONE_HANDLE*)calloc(1,
sizeof(WINPR_NONE_HANDLE));
78 none->common.ops = &ops;