Skip to content

Instantly share code, notes, and snippets.

View surreylabs's full-sized avatar

SurreyLabs Technology Inc. surreylabs

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