Skip to content

Instantly share code, notes, and snippets.

View Knucklessg1's full-sized avatar
🤓
AI and AI accessories!

Audel Rouhi Knucklessg1

🤓
AI and AI accessories!
View GitHub Profile
@mkropat
mkropat / knownpaths.py
Last active June 15, 2025 22:03
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)