mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2024-11-14 17:40:24 -08:00
11 lines
307 B
Python
11 lines
307 B
Python
import ctypes.wintypes
|
|
|
|
try:
|
|
from ctypes.wintypes import LPDWORD
|
|
except ImportError:
|
|
LPDWORD = ctypes.POINTER(ctypes.wintypes.DWORD) # type: ignore
|
|
|
|
GetUserName = ctypes.windll.advapi32.GetUserNameW
|
|
GetUserName.argtypes = ctypes.wintypes.LPWSTR, LPDWORD
|
|
GetUserName.restype = ctypes.wintypes.DWORD
|