Skip to content

Instantly share code, notes, and snippets.

View Knucklessg1's full-sized avatar
🤓
Working from home

Audel Rouhi Knucklessg1

🤓
Working from home
View GitHub Profile
@mkropat
mkropat / knownpaths.py
Last active May 11, 2024 21:37
Python wrapper around the SHGetKnownFolderPath Windows Shell function
import ctypes, sys
from ctypes import windll, wintypes
from uuid import UUID
class GUID(ctypes.Structure): # [1]
_fields_ = [
("Data1", wintypes.DWORD),
("Data2", wintypes.WORD),
("Data3", wintypes.WORD),
("Data4", wintypes.BYTE * 8)