mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
Also updates: - importlib-metadata-0.7 - jaraco-windows - jaraco.classes-1.5 - jaraco.collections-1.6.0 - jaraco.functools-1.20 - jaraco.structures-1.1.2 - jaraco.text-1.10.1 - jaraco.ui-1.6 - more-itertools-4.3.0 - path.py-11.5.0 - six-1.12.0
13 lines
454 B
Python
13 lines
454 B
Python
import ctypes.wintypes
|
|
|
|
SetEnvironmentVariable = ctypes.windll.kernel32.SetEnvironmentVariableW
|
|
SetEnvironmentVariable.restype = ctypes.wintypes.BOOL
|
|
SetEnvironmentVariable.argtypes = [ctypes.wintypes.LPCWSTR] * 2
|
|
|
|
GetEnvironmentVariable = ctypes.windll.kernel32.GetEnvironmentVariableW
|
|
GetEnvironmentVariable.restype = ctypes.wintypes.BOOL
|
|
GetEnvironmentVariable.argtypes = [
|
|
ctypes.wintypes.LPCWSTR,
|
|
ctypes.wintypes.LPWSTR,
|
|
ctypes.wintypes.DWORD,
|
|
]
|