diff options
Diffstat (limited to 'platform_utils_win32.py')
-rw-r--r-- | platform_utils_win32.py | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/platform_utils_win32.py b/platform_utils_win32.py index e9b15f46..80a52639 100644 --- a/platform_utils_win32.py +++ b/platform_utils_win32.py | |||
@@ -12,12 +12,28 @@ | |||
12 | # See the License for the specific language governing permissions and | 12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. | 13 | # limitations under the License. |
14 | 14 | ||
15 | from ctypes import addressof | ||
16 | from ctypes import byref | ||
17 | from ctypes import c_buffer | ||
18 | from ctypes import c_ubyte | ||
19 | from ctypes import FormatError | ||
20 | from ctypes import get_last_error | ||
21 | from ctypes import Structure | ||
22 | from ctypes import Union | ||
23 | from ctypes import WinDLL | ||
24 | from ctypes import WinError | ||
25 | from ctypes.wintypes import BOOL | ||
26 | from ctypes.wintypes import BOOLEAN | ||
27 | from ctypes.wintypes import DWORD | ||
28 | from ctypes.wintypes import HANDLE | ||
29 | from ctypes.wintypes import LPCWSTR | ||
30 | from ctypes.wintypes import LPDWORD | ||
31 | from ctypes.wintypes import LPVOID | ||
32 | from ctypes.wintypes import ULONG | ||
33 | from ctypes.wintypes import USHORT | ||
34 | from ctypes.wintypes import WCHAR | ||
15 | import errno | 35 | import errno |
16 | 36 | ||
17 | from ctypes import WinDLL, get_last_error, FormatError, WinError, addressof | ||
18 | from ctypes import c_buffer, c_ubyte, Structure, Union, byref | ||
19 | from ctypes.wintypes import BOOL, BOOLEAN, LPCWSTR, DWORD, HANDLE | ||
20 | from ctypes.wintypes import WCHAR, USHORT, LPVOID, ULONG, LPDWORD | ||
21 | 37 | ||
22 | kernel32 = WinDLL("kernel32", use_last_error=True) | 38 | kernel32 = WinDLL("kernel32", use_last_error=True) |
23 | 39 | ||