Skip to content

Instantly share code, notes, and snippets.

View tomghuang's full-sized avatar

Tom G. Huang tomghuang

View GitHub Profile
@tomghuang
tomghuang / knownpaths.py
Created October 14, 2015 20:28 — forked from surreylabs/knownpaths.py
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)