mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2024-11-14 17:40:24 -08:00
14 lines
463 B
Python
14 lines
463 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,
|
|
]
|