-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandleapi.py
More file actions
46 lines (33 loc) · 1.56 KB
/
handleapi.py
File metadata and controls
46 lines (33 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
*********************************************************************************
* *
* handleapi.h -- ApiSet Contract for api-ms-win-core-handle-l1-1-0 *
* *
* Copyright (c) Microsoft Corporation. All rights reserved. *
* *
*********************************************************************************
"""
from . import cpreproc
from .minwindef import *
from .defbase import *
if cpreproc.pragma_once("_APISETHANDLE_"):
kernelbase = W_WinDLL("kernelbase.dll")
#
# Constants
#
INVALID_HANDLE_VALUE = HANDLE(-1).value
# REGION *** Application Family or OneCore Family or Games Family ***
#
# Prototypes
#
CloseHandle = declare(kernelbase.CloseHandle, BOOL, HANDLE)
DuplicateHandle = declare(kernelbase.DuplicateHandle, BOOL, HANDLE, HANDLE, HANDLE, LPHANDLE, DWORD, BOOL, DWORD)
# REGION ***
# REGION *** Application Family or OneCore Family ***
CompareObjectHandles = declare(kernelbase.CompareObjectHandles, BOOL, HANDLE, HANDLE)
# REGION ***
# REGION *** Application Family or OneCore Family or Games Family ***
GetHandleInformation = declare(kernelbase.GetHandleInformation, BOOL, HANDLE, LPDWORD)
SetHandleInformation = declare(kernelbase.SetHandleInformation, BOOL, HANDLE, DWORD, DWORD)
# REGION ***
# _APISETHANDLE_