shellcon.py 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641
  1. # Generated by h2py from \mssdk\include\shlobj.h and shellapi.h
  2. WM_USER = 1024
  3. DROPEFFECT_NONE = 0
  4. DROPEFFECT_COPY = 1
  5. DROPEFFECT_MOVE = 2
  6. DROPEFFECT_LINK = 4
  7. DROPEFFECT_SCROLL = -2147483648
  8. FO_MOVE = 1
  9. FO_COPY = 2
  10. FO_DELETE = 3
  11. FO_RENAME = 4
  12. ## File operation flags used with shell.SHFileOperation
  13. FOF_MULTIDESTFILES = 1
  14. FOF_CONFIRMMOUSE = 2
  15. FOF_SILENT = 4
  16. FOF_RENAMEONCOLLISION = 8
  17. FOF_NOCONFIRMATION = 16
  18. FOF_WANTMAPPINGHANDLE = 32
  19. FOF_ALLOWUNDO = 64
  20. FOF_FILESONLY = 128
  21. FOF_SIMPLEPROGRESS = 256
  22. FOF_NOCONFIRMMKDIR = 512
  23. FOF_NOERRORUI = 1024
  24. FOF_NOCOPYSECURITYATTRIBS = 2048
  25. FOF_NORECURSION = 4096
  26. FOF_NO_CONNECTED_ELEMENTS = 8192
  27. FOF_WANTNUKEWARNING = 16384
  28. FOF_NORECURSEREPARSE = 32768
  29. FOF_NO_UI = FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR
  30. ## Extended file operation flags, used with IFileOperation
  31. FOFX_NOSKIPJUNCTIONS =0x00010000
  32. FOFX_PREFERHARDLINK =0x00020000
  33. FOFX_SHOWELEVATIONPROMPT =0x00040000
  34. FOFX_EARLYFAILURE =0x00100000
  35. FOFX_PRESERVEFILEEXTENSIONS =0x00200000
  36. FOFX_KEEPNEWERFILE =0x00400000
  37. FOFX_NOCOPYHOOKS =0x00800000
  38. FOFX_NOMINIMIZEBOX =0x01000000
  39. FOFX_MOVEACLSACROSSVOLUMES =0x02000000
  40. FOFX_DONTDISPLAYSOURCEPATH =0x04000000
  41. FOFX_DONTDISPLAYDESTPATH =0x08000000
  42. FOFX_REQUIREELEVATION =0x10000000
  43. FOFX_COPYASDOWNLOAD =0x40000000
  44. FOFX_DONTDISPLAYLOCATIONS =0x80000000
  45. PO_DELETE = 19
  46. PO_RENAME = 20
  47. PO_PORTCHANGE = 32
  48. PO_REN_PORT = 52
  49. SE_ERR_FNF = 2
  50. SE_ERR_PNF = 3
  51. SE_ERR_ACCESSDENIED = 5
  52. SE_ERR_OOM = 8
  53. SE_ERR_DLLNOTFOUND = 32
  54. SE_ERR_SHARE = 26
  55. SE_ERR_ASSOCINCOMPLETE = 27
  56. SE_ERR_DDETIMEOUT = 28
  57. SE_ERR_DDEFAIL = 29
  58. SE_ERR_DDEBUSY = 30
  59. SE_ERR_NOASSOC = 31
  60. SEE_MASK_CLASSNAME = 1
  61. SEE_MASK_CLASSKEY = 3
  62. SEE_MASK_IDLIST = 4
  63. SEE_MASK_INVOKEIDLIST = 12
  64. SEE_MASK_ICON = 16
  65. SEE_MASK_HOTKEY = 32
  66. SEE_MASK_NOCLOSEPROCESS = 64
  67. SEE_MASK_CONNECTNETDRV = 128
  68. SEE_MASK_FLAG_DDEWAIT = 256
  69. SEE_MASK_DOENVSUBST = 512
  70. SEE_MASK_FLAG_NO_UI = 1024
  71. SEE_MASK_UNICODE = 16384
  72. SEE_MASK_NO_CONSOLE = 32768
  73. SEE_MASK_ASYNCOK = 1048576
  74. SEE_MASK_HMONITOR = 2097152
  75. SEE_MASK_CLASSNAME = 1
  76. SEE_MASK_CLASSKEY = 3
  77. SEE_MASK_IDLIST = 4
  78. SEE_MASK_INVOKEIDLIST = 12
  79. SEE_MASK_ICON = 16
  80. SEE_MASK_HOTKEY = 32
  81. SEE_MASK_NOCLOSEPROCESS = 64
  82. SEE_MASK_CONNECTNETDRV = 128
  83. SEE_MASK_FLAG_DDEWAIT = 256
  84. SEE_MASK_DOENVSUBST = 512
  85. SEE_MASK_FLAG_NO_UI = 1024
  86. SEE_MASK_UNICODE = 16384
  87. SEE_MASK_NO_CONSOLE = 32768
  88. SEE_MASK_ASYNCOK = 1048576
  89. SEE_MASK_HMONITOR = 2097152
  90. SHERB_NOCONFIRMATION = 1
  91. SHERB_NOPROGRESSUI = 2
  92. SHERB_NOSOUND = 4
  93. NIM_ADD = 0
  94. NIM_MODIFY = 1
  95. NIM_DELETE = 2
  96. NIF_MESSAGE = 1
  97. NIF_ICON = 2
  98. NIF_TIP = 4
  99. SHGFI_ICON = 256
  100. SHGFI_DISPLAYNAME = 512
  101. SHGFI_TYPENAME = 1024
  102. SHGFI_ATTRIBUTES = 2048
  103. SHGFI_ICONLOCATION = 4096
  104. SHGFI_EXETYPE = 8192
  105. SHGFI_SYSICONINDEX = 16384
  106. SHGFI_LINKOVERLAY = 32768
  107. SHGFI_SELECTED = 65536
  108. SHGFI_ATTR_SPECIFIED = 131072
  109. SHGFI_LARGEICON = 0
  110. SHGFI_SMALLICON = 1
  111. SHGFI_OPENICON = 2
  112. SHGFI_SHELLICONSIZE = 4
  113. SHGFI_PIDL = 8
  114. SHGFI_USEFILEATTRIBUTES = 16
  115. SHGNLI_PIDL = 1
  116. SHGNLI_PREFIXNAME = 2
  117. SHGNLI_NOUNIQUE = 4
  118. PRINTACTION_OPEN = 0
  119. PRINTACTION_PROPERTIES = 1
  120. PRINTACTION_NETINSTALL = 2
  121. PRINTACTION_NETINSTALLLINK = 3
  122. PRINTACTION_TESTPAGE = 4
  123. PRINTACTION_OPENNETPRN = 5
  124. PRINTACTION_DOCUMENTDEFAULTS = 6
  125. PRINTACTION_SERVERPROPERTIES = 7
  126. # Flags used with IContextMenu.QueryContextMenu
  127. CMF_NORMAL = 0
  128. CMF_DEFAULTONLY = 1
  129. CMF_VERBSONLY = 2
  130. CMF_EXPLORE = 4
  131. CMF_NOVERBS = 8
  132. CMF_CANRENAME = 16
  133. CMF_NODEFAULT = 32
  134. CMF_INCLUDESTATIC = 64
  135. CMF_ITEMMENU = 128
  136. CMF_EXTENDEDVERBS = 256
  137. CMF_DISABLEDVERBS = 512
  138. CMF_ASYNCVERBSTATE = 1024
  139. CMF_OPTIMIZEFORINVOKE = 2048
  140. CMF_SYNCCASCADEMENU = 4096
  141. CMF_DONOTPICKDEFAULT = 8192
  142. CMF_RESERVED = 4294901760 # 0xffff0000
  143. GCS_VERBA = 0
  144. GCS_HELPTEXTA = 1
  145. GCS_VALIDATEA = 2
  146. GCS_VERBW = 4
  147. GCS_HELPTEXTW = 5
  148. GCS_VALIDATEW = 6
  149. GCS_UNICODE = 4
  150. GCS_VERB = GCS_VERBW
  151. GCS_HELPTEXT = GCS_HELPTEXTW
  152. GCS_VALIDATE = GCS_VALIDATEW
  153. GCS_VERB = GCS_VERBA
  154. GCS_HELPTEXT = GCS_HELPTEXTA
  155. GCS_VALIDATE = GCS_VALIDATEA
  156. CMDSTR_NEWFOLDERA = "NewFolder"
  157. CMDSTR_VIEWLISTA = "ViewList"
  158. CMDSTR_VIEWDETAILSA = "ViewDetails"
  159. CMDSTR_NEWFOLDER = CMDSTR_NEWFOLDERA
  160. CMDSTR_VIEWLIST = CMDSTR_VIEWLISTA
  161. CMDSTR_VIEWDETAILS = CMDSTR_VIEWDETAILSA
  162. CMIC_MASK_HOTKEY = SEE_MASK_HOTKEY
  163. CMIC_MASK_ICON = SEE_MASK_ICON
  164. CMIC_MASK_FLAG_NO_UI = SEE_MASK_FLAG_NO_UI
  165. CMIC_MASK_UNICODE = SEE_MASK_UNICODE
  166. CMIC_MASK_NO_CONSOLE = SEE_MASK_NO_CONSOLE
  167. CMIC_MASK_ASYNCOK = SEE_MASK_ASYNCOK
  168. CMIC_MASK_PTINVOKE = 536870912
  169. GIL_OPENICON = 1
  170. GIL_FORSHELL = 2
  171. GIL_ASYNC = 32
  172. GIL_DEFAULTICON = 64
  173. GIL_FORSHORTCUT = 128
  174. GIL_CHECKSHIELD = 512
  175. GIL_SIMULATEDOC = 1
  176. GIL_PERINSTANCE = 2
  177. GIL_PERCLASS = 4
  178. GIL_NOTFILENAME = 8
  179. GIL_DONTCACHE = 16
  180. GIL_SHIELD = 512
  181. GIL_FORCENOSHIELD = 1024
  182. ISIOI_ICONFILE = 1
  183. ISIOI_ICONINDEX = 2
  184. ISIOI_SYSIMAGELISTINDEX = 4
  185. FO_MOVE = 1
  186. FO_COPY = 2
  187. FO_DELETE = 3
  188. FO_RENAME = 4
  189. FOF_MULTIDESTFILES = 1
  190. FOF_CONFIRMMOUSE = 2
  191. FOF_SILENT = 4
  192. FOF_RENAMEONCOLLISION = 8
  193. FOF_NOCONFIRMATION = 16
  194. FOF_WANTMAPPINGHANDLE = 32
  195. FOF_ALLOWUNDO = 64
  196. FOF_FILESONLY = 128
  197. FOF_SIMPLEPROGRESS = 256
  198. FOF_NOCONFIRMMKDIR = 512
  199. FOF_NOERRORUI = 1024
  200. FOF_NOCOPYSECURITYATTRIBS = 2048
  201. PO_DELETE = 19
  202. PO_RENAME = 20
  203. PO_PORTCHANGE = 32
  204. PO_REN_PORT = 52
  205. FVSIF_RECT = 1
  206. FVSIF_PINNED = 2
  207. FVSIF_NEWFAILED = 134217728
  208. FVSIF_NEWFILE = -2147483648
  209. FVSIF_CANVIEWIT = 1073741824
  210. FCIDM_SHVIEWFIRST = 0
  211. FCIDM_SHVIEWLAST = 32767
  212. FCIDM_BROWSERFIRST = 40960
  213. FCIDM_BROWSERLAST = 48896
  214. FCIDM_GLOBALFIRST = 32768
  215. FCIDM_GLOBALLAST = 40959
  216. FCIDM_MENU_FILE = (FCIDM_GLOBALFIRST+0)
  217. FCIDM_MENU_EDIT = (FCIDM_GLOBALFIRST+64)
  218. FCIDM_MENU_VIEW = (FCIDM_GLOBALFIRST+128)
  219. FCIDM_MENU_VIEW_SEP_OPTIONS = (FCIDM_GLOBALFIRST+129)
  220. FCIDM_MENU_TOOLS = (FCIDM_GLOBALFIRST+192)
  221. FCIDM_MENU_TOOLS_SEP_GOTO = (FCIDM_GLOBALFIRST+193)
  222. FCIDM_MENU_HELP = (FCIDM_GLOBALFIRST+256)
  223. FCIDM_MENU_FIND = (FCIDM_GLOBALFIRST+320)
  224. FCIDM_MENU_EXPLORE = (FCIDM_GLOBALFIRST+336)
  225. FCIDM_MENU_FAVORITES = (FCIDM_GLOBALFIRST+368)
  226. FCIDM_TOOLBAR = (FCIDM_BROWSERFIRST + 0)
  227. FCIDM_STATUS = (FCIDM_BROWSERFIRST + 1)
  228. IDC_OFFLINE_HAND = 103
  229. SBSP_DEFBROWSER = 0
  230. SBSP_SAMEBROWSER = 1
  231. SBSP_NEWBROWSER = 2
  232. SBSP_DEFMODE = 0
  233. SBSP_OPENMODE = 16
  234. SBSP_EXPLOREMODE = 32
  235. SBSP_ABSOLUTE = 0
  236. SBSP_RELATIVE = 4096
  237. SBSP_PARENT = 8192
  238. SBSP_NAVIGATEBACK = 16384
  239. SBSP_NAVIGATEFORWARD = 32768
  240. SBSP_ALLOW_AUTONAVIGATE = 65536
  241. SBSP_INITIATEDBYHLINKFRAME = -2147483648
  242. SBSP_REDIRECT = 1073741824
  243. SBSP_WRITENOHISTORY = 134217728
  244. SBSP_NOAUTOSELECT = 67108864
  245. FCW_STATUS = 1
  246. FCW_TOOLBAR = 2
  247. FCW_TREE = 3
  248. FCW_INTERNETBAR = 6
  249. FCW_PROGRESS = 8
  250. FCT_MERGE = 1
  251. FCT_CONFIGABLE = 2
  252. FCT_ADDTOEND = 4
  253. CDBOSC_SETFOCUS = 0
  254. CDBOSC_KILLFOCUS = 1
  255. CDBOSC_SELCHANGE = 2
  256. CDBOSC_RENAME = 3
  257. SVSI_DESELECT = 0
  258. SVSI_SELECT = 1
  259. SVSI_EDIT = 3
  260. SVSI_DESELECTOTHERS = 4
  261. SVSI_ENSUREVISIBLE = 8
  262. SVSI_FOCUSED = 16
  263. SVSI_TRANSLATEPT = 32
  264. SVGIO_BACKGROUND = 0
  265. SVGIO_SELECTION = 1
  266. SVGIO_ALLVIEW = 2
  267. SVGIO_CHECKED = 0x3,
  268. SVGIO_TYPE_MASK = 0xf,
  269. SVGIO_FLAG_VIEWORDER = -2147483648 # 0x80000000
  270. STRRET_WSTR = 0
  271. STRRET_OFFSET = 1
  272. STRRET_CSTR = 2
  273. CSIDL_DESKTOP = 0
  274. CSIDL_INTERNET = 1
  275. CSIDL_PROGRAMS = 2
  276. CSIDL_CONTROLS = 3
  277. CSIDL_PRINTERS = 4
  278. CSIDL_PERSONAL = 5
  279. CSIDL_FAVORITES = 6
  280. CSIDL_STARTUP = 7
  281. CSIDL_RECENT = 8
  282. CSIDL_SENDTO = 9
  283. CSIDL_BITBUCKET = 10
  284. CSIDL_STARTMENU = 11
  285. CSIDL_MYDOCUMENTS = 12
  286. CSIDL_MYMUSIC = 13
  287. CSIDL_MYVIDEO = 14
  288. CSIDL_DESKTOPDIRECTORY = 16
  289. CSIDL_DRIVES = 17
  290. CSIDL_NETWORK = 18
  291. CSIDL_NETHOOD = 19
  292. CSIDL_FONTS = 20
  293. CSIDL_TEMPLATES = 21
  294. CSIDL_COMMON_STARTMENU = 22
  295. CSIDL_COMMON_PROGRAMS = 23
  296. CSIDL_COMMON_STARTUP = 24
  297. CSIDL_COMMON_DESKTOPDIRECTORY = 25
  298. CSIDL_APPDATA = 26
  299. CSIDL_PRINTHOOD = 27
  300. CSIDL_LOCAL_APPDATA = 28
  301. CSIDL_ALTSTARTUP = 29
  302. CSIDL_COMMON_ALTSTARTUP = 30
  303. CSIDL_COMMON_FAVORITES = 31
  304. CSIDL_INTERNET_CACHE = 32
  305. CSIDL_COOKIES = 33
  306. CSIDL_HISTORY = 34
  307. CSIDL_COMMON_APPDATA = 35
  308. CSIDL_WINDOWS = 36
  309. CSIDL_SYSTEM = 37
  310. CSIDL_PROGRAM_FILES = 38
  311. CSIDL_MYPICTURES = 39
  312. CSIDL_PROFILE = 40
  313. CSIDL_SYSTEMX86 = 41
  314. CSIDL_PROGRAM_FILESX86 = 42
  315. CSIDL_PROGRAM_FILES_COMMON = 43
  316. CSIDL_PROGRAM_FILES_COMMONX86 = 44
  317. CSIDL_COMMON_TEMPLATES = 45
  318. CSIDL_COMMON_DOCUMENTS = 46
  319. CSIDL_COMMON_ADMINTOOLS = 47
  320. CSIDL_ADMINTOOLS = 48
  321. CSIDL_CONNECTIONS = 49
  322. CSIDL_COMMON_MUSIC = 53
  323. CSIDL_COMMON_PICTURES = 54
  324. CSIDL_COMMON_VIDEO = 55
  325. CSIDL_RESOURCES = 56
  326. CSIDL_RESOURCES_LOCALIZED = 57
  327. CSIDL_COMMON_OEM_LINKS = 58
  328. CSIDL_CDBURN_AREA = 59
  329. # 60 unused
  330. CSIDL_COMPUTERSNEARME = 61
  331. BIF_RETURNONLYFSDIRS = 1
  332. BIF_DONTGOBELOWDOMAIN = 2
  333. BIF_STATUSTEXT = 4
  334. BIF_RETURNFSANCESTORS = 8
  335. BIF_EDITBOX = 16
  336. BIF_VALIDATE = 32
  337. BIF_BROWSEFORCOMPUTER = 4096
  338. BIF_BROWSEFORPRINTER = 8192
  339. BIF_BROWSEINCLUDEFILES = 16384
  340. BFFM_INITIALIZED = 1
  341. BFFM_SELCHANGED = 2
  342. BFFM_VALIDATEFAILEDA = 3
  343. BFFM_VALIDATEFAILEDW = 4
  344. BFFM_SETSTATUSTEXTA = (WM_USER + 100)
  345. BFFM_ENABLEOK = (WM_USER + 101)
  346. BFFM_SETSELECTIONA = (WM_USER + 102)
  347. BFFM_SETSELECTIONW = (WM_USER + 103)
  348. BFFM_SETSTATUSTEXTW = (WM_USER + 104)
  349. BFFM_SETSTATUSTEXT = BFFM_SETSTATUSTEXTW
  350. BFFM_SETSELECTION = BFFM_SETSELECTIONW
  351. BFFM_VALIDATEFAILED = BFFM_VALIDATEFAILEDW
  352. BFFM_SETSTATUSTEXT = BFFM_SETSTATUSTEXTA
  353. BFFM_SETSELECTION = BFFM_SETSELECTIONA
  354. BFFM_VALIDATEFAILED = BFFM_VALIDATEFAILEDA
  355. SFGAO_CANCOPY = DROPEFFECT_COPY
  356. SFGAO_CANMOVE = DROPEFFECT_MOVE
  357. SFGAO_CANLINK = DROPEFFECT_LINK
  358. SFGAO_CANRENAME = 16
  359. SFGAO_CANDELETE = 32
  360. SFGAO_HASPROPSHEET = 64
  361. SFGAO_DROPTARGET = 256
  362. SFGAO_CAPABILITYMASK = 375
  363. SFGAO_LINK = 65536
  364. SFGAO_SHARE = 131072
  365. SFGAO_READONLY = 262144
  366. SFGAO_GHOSTED = 524288
  367. SFGAO_HIDDEN = 524288
  368. SFGAO_DISPLAYATTRMASK = 983040
  369. SFGAO_FILESYSANCESTOR = 268435456
  370. SFGAO_FOLDER = 536870912
  371. SFGAO_FILESYSTEM = 1073741824
  372. SFGAO_HASSUBFOLDER = (-2147483648)
  373. SFGAO_CONTENTSMASK = (-2147483648)
  374. SFGAO_VALIDATE = 16777216
  375. SFGAO_REMOVABLE = 33554432
  376. SFGAO_COMPRESSED = 67108864
  377. SFGAO_BROWSABLE = 134217728
  378. SFGAO_NONENUMERATED = 1048576
  379. SFGAO_NEWCONTENT = 2097152
  380. SFGAO_STORAGE = 8
  381. DWFRF_NORMAL = 0
  382. DWFRF_DELETECONFIGDATA = 1
  383. DWFAF_HIDDEN = 1
  384. DBIM_MINSIZE = 1
  385. DBIM_MAXSIZE = 2
  386. DBIM_INTEGRAL = 4
  387. DBIM_ACTUAL = 8
  388. DBIM_TITLE = 16
  389. DBIM_MODEFLAGS = 32
  390. DBIM_BKCOLOR = 64
  391. DBIMF_NORMAL = 0
  392. DBIMF_VARIABLEHEIGHT = 8
  393. DBIMF_DEBOSSED = 32
  394. DBIMF_BKCOLOR = 64
  395. DBIF_VIEWMODE_NORMAL = 0
  396. DBIF_VIEWMODE_VERTICAL = 1
  397. DBIF_VIEWMODE_FLOATING = 2
  398. DBIF_VIEWMODE_TRANSPARENT = 4
  399. COMPONENT_TOP = (2147483647)
  400. COMP_TYPE_HTMLDOC = 0
  401. COMP_TYPE_PICTURE = 1
  402. COMP_TYPE_WEBSITE = 2
  403. COMP_TYPE_CONTROL = 3
  404. COMP_TYPE_CFHTML = 4
  405. COMP_TYPE_MAX = 4
  406. AD_APPLY_SAVE = 1
  407. AD_APPLY_HTMLGEN = 2
  408. AD_APPLY_REFRESH = 4
  409. AD_APPLY_ALL = (AD_APPLY_SAVE | AD_APPLY_HTMLGEN | AD_APPLY_REFRESH)
  410. AD_APPLY_FORCE = 8
  411. AD_APPLY_BUFFERED_REFRESH = 16
  412. WPSTYLE_CENTER = 0
  413. WPSTYLE_TILE = 1
  414. WPSTYLE_STRETCH = 2
  415. WPSTYLE_MAX = 3
  416. COMP_ELEM_TYPE = 1
  417. COMP_ELEM_CHECKED = 2
  418. COMP_ELEM_DIRTY = 4
  419. COMP_ELEM_NOSCROLL = 8
  420. COMP_ELEM_POS_LEFT = 16
  421. COMP_ELEM_POS_TOP = 32
  422. COMP_ELEM_SIZE_WIDTH = 64
  423. COMP_ELEM_SIZE_HEIGHT = 128
  424. COMP_ELEM_POS_ZINDEX = 256
  425. COMP_ELEM_SOURCE = 512
  426. COMP_ELEM_FRIENDLYNAME = 1024
  427. COMP_ELEM_SUBSCRIBEDURL = 2048
  428. ADDURL_SILENT = 0X0001
  429. CFSTR_SHELLIDLIST = "Shell IDList Array"
  430. CFSTR_SHELLIDLISTOFFSET = "Shell Object Offsets"
  431. CFSTR_NETRESOURCES = "Net Resource"
  432. CFSTR_FILEDESCRIPTORA = "FileGroupDescriptor"
  433. CFSTR_FILEDESCRIPTORW = "FileGroupDescriptorW"
  434. CFSTR_FILECONTENTS = "FileContents"
  435. CFSTR_FILENAMEA = "FileName"
  436. CFSTR_FILENAMEW = "FileNameW"
  437. CFSTR_PRINTERGROUP = "PrinterFriendlyName"
  438. CFSTR_FILENAMEMAPA = "FileNameMap"
  439. CFSTR_FILENAMEMAPW = "FileNameMapW"
  440. CFSTR_SHELLURL = "UniformResourceLocator"
  441. CFSTR_INETURLA = CFSTR_SHELLURL
  442. CFSTR_INETURLW = "UniformResourceLocatorW"
  443. CFSTR_PREFERREDDROPEFFECT = "Preferred DropEffect"
  444. CFSTR_PERFORMEDDROPEFFECT = "Performed DropEffect"
  445. CFSTR_PASTESUCCEEDED = "Paste Succeeded"
  446. CFSTR_INDRAGLOOP = "InShellDragLoop"
  447. CFSTR_DRAGCONTEXT = "DragContext"
  448. CFSTR_MOUNTEDVOLUME = "MountedVolume"
  449. CFSTR_PERSISTEDDATAOBJECT = "PersistedDataObject"
  450. CFSTR_TARGETCLSID = "TargetCLSID"
  451. CFSTR_LOGICALPERFORMEDDROPEFFECT = "Logical Performed DropEffect"
  452. CFSTR_AUTOPLAY_SHELLIDLISTS = "Autoplay Enumerated IDList Array"
  453. CFSTR_FILEDESCRIPTOR = CFSTR_FILEDESCRIPTORW
  454. CFSTR_FILENAME = CFSTR_FILENAMEW
  455. CFSTR_FILENAMEMAP = CFSTR_FILENAMEMAPW
  456. CFSTR_FILEDESCRIPTOR = CFSTR_FILEDESCRIPTORA
  457. CFSTR_FILENAME = CFSTR_FILENAMEA
  458. CFSTR_FILENAMEMAP = CFSTR_FILENAMEMAPA
  459. DVASPECT_SHORTNAME = 2
  460. SHCNE_RENAMEITEM = 1
  461. SHCNE_CREATE = 2
  462. SHCNE_DELETE = 4
  463. SHCNE_MKDIR = 8
  464. SHCNE_RMDIR = 16
  465. SHCNE_MEDIAINSERTED = 32
  466. SHCNE_MEDIAREMOVED = 64
  467. SHCNE_DRIVEREMOVED = 128
  468. SHCNE_DRIVEADD = 256
  469. SHCNE_NETSHARE = 512
  470. SHCNE_NETUNSHARE = 1024
  471. SHCNE_ATTRIBUTES = 2048
  472. SHCNE_UPDATEDIR = 4096
  473. SHCNE_UPDATEITEM = 8192
  474. SHCNE_SERVERDISCONNECT = 16384
  475. SHCNE_UPDATEIMAGE = 32768
  476. SHCNE_DRIVEADDGUI = 65536
  477. SHCNE_RENAMEFOLDER = 131072
  478. SHCNE_FREESPACE = 262144
  479. SHCNE_EXTENDED_EVENT = 67108864
  480. SHCNE_ASSOCCHANGED = 134217728
  481. SHCNE_DISKEVENTS = 145439
  482. SHCNE_GLOBALEVENTS = 201687520
  483. SHCNE_ALLEVENTS = 2147483647
  484. SHCNE_INTERRUPT = -2147483648
  485. SHCNEE_ORDERCHANGED = 2
  486. SHCNF_IDLIST = 0
  487. SHCNF_PATHA = 1
  488. SHCNF_PRINTERA = 2
  489. SHCNF_DWORD = 3
  490. SHCNF_PATHW = 5
  491. SHCNF_PRINTERW = 6
  492. SHCNF_TYPE = 255
  493. SHCNF_FLUSH = 4096
  494. SHCNF_FLUSHNOWAIT = 8192
  495. SHCNF_PATH = SHCNF_PATHW
  496. SHCNF_PRINTER = SHCNF_PRINTERW
  497. SHCNF_PATH = SHCNF_PATHA
  498. SHCNF_PRINTER = SHCNF_PRINTERA
  499. QIF_CACHED = 1
  500. QIF_DONTEXPANDFOLDER = 2
  501. # SHARD enum for SHAddToRecentDocs
  502. SHARD_PIDL = 1
  503. SHARD_PATHA = 2
  504. SHARD_PATHW = 3
  505. SHARD_APPIDINFO = 4
  506. SHARD_APPIDINFOIDLIST = 5
  507. SHARD_LINK = 6
  508. SHARD_APPIDINFOLINK = 7
  509. SHARD_SHELLITEM = 8
  510. ## SHARD_PATH = SHARD_PATHW
  511. SHARD_PATH = SHARD_PATHA
  512. SHGDFIL_FINDDATA = 1
  513. SHGDFIL_NETRESOURCE = 2
  514. SHGDFIL_DESCRIPTIONID = 3
  515. SHDID_ROOT_REGITEM = 1
  516. SHDID_FS_FILE = 2
  517. SHDID_FS_DIRECTORY = 3
  518. SHDID_FS_OTHER = 4
  519. SHDID_COMPUTER_DRIVE35 = 5
  520. SHDID_COMPUTER_DRIVE525 = 6
  521. SHDID_COMPUTER_REMOVABLE = 7
  522. SHDID_COMPUTER_FIXED = 8
  523. SHDID_COMPUTER_NETDRIVE = 9
  524. SHDID_COMPUTER_CDROM = 10
  525. SHDID_COMPUTER_RAMDISK = 11
  526. SHDID_COMPUTER_OTHER = 12
  527. SHDID_NET_DOMAIN = 13
  528. SHDID_NET_SERVER = 14
  529. SHDID_NET_SHARE = 15
  530. SHDID_NET_RESTOFNET = 16
  531. SHDID_NET_OTHER = 17
  532. PID_IS_URL = 2
  533. PID_IS_NAME = 4
  534. PID_IS_WORKINGDIR = 5
  535. PID_IS_HOTKEY = 6
  536. PID_IS_SHOWCMD = 7
  537. PID_IS_ICONINDEX = 8
  538. PID_IS_ICONFILE = 9
  539. PID_IS_WHATSNEW = 10
  540. PID_IS_AUTHOR = 11
  541. PID_IS_DESCRIPTION = 12
  542. PID_IS_COMMENT = 13
  543. PID_INTSITE_WHATSNEW = 2
  544. PID_INTSITE_AUTHOR = 3
  545. PID_INTSITE_LASTVISIT = 4
  546. PID_INTSITE_LASTMOD = 5
  547. PID_INTSITE_VISITCOUNT = 6
  548. PID_INTSITE_DESCRIPTION = 7
  549. PID_INTSITE_COMMENT = 8
  550. PID_INTSITE_FLAGS = 9
  551. PID_INTSITE_CONTENTLEN = 10
  552. PID_INTSITE_CONTENTCODE = 11
  553. PID_INTSITE_RECURSE = 12
  554. PID_INTSITE_WATCH = 13
  555. PID_INTSITE_SUBSCRIPTION = 14
  556. PID_INTSITE_URL = 15
  557. PID_INTSITE_TITLE = 16
  558. PID_INTSITE_CODEPAGE = 18
  559. PID_INTSITE_TRACKING = 19
  560. PIDISF_RECENTLYCHANGED = 1
  561. PIDISF_CACHEDSTICKY = 2
  562. PIDISF_CACHEIMAGES = 16
  563. PIDISF_FOLLOWALLLINKS = 32
  564. PIDISM_GLOBAL = 0
  565. PIDISM_WATCH = 1
  566. PIDISM_DONTWATCH = 2
  567. SSF_SHOWALLOBJECTS = 1
  568. SSF_SHOWEXTENSIONS = 2
  569. SSF_SHOWCOMPCOLOR = 8
  570. SSF_SHOWSYSFILES = 32
  571. SSF_DOUBLECLICKINWEBVIEW = 128
  572. SSF_SHOWATTRIBCOL = 256
  573. SSF_DESKTOPHTML = 512
  574. SSF_WIN95CLASSIC = 1024
  575. SSF_DONTPRETTYPATH = 2048
  576. SSF_SHOWINFOTIP = 8192
  577. SSF_MAPNETDRVBUTTON = 4096
  578. SSF_NOCONFIRMRECYCLE = 32768
  579. SSF_HIDEICONS = 16384
  580. ABM_NEW = 0
  581. ABM_REMOVE = 1
  582. ABM_QUERYPOS = 2
  583. ABM_SETPOS = 3
  584. ABM_GETSTATE = 4
  585. ABM_GETTASKBARPOS = 5
  586. ABM_ACTIVATE = 6
  587. ABM_GETAUTOHIDEBAR = 7
  588. ABM_SETAUTOHIDEBAR = 8
  589. ABM_WINDOWPOSCHANGED = 9
  590. ABN_STATECHANGE = 0
  591. ABN_POSCHANGED = 1
  592. ABN_FULLSCREENAPP = 2
  593. ABN_WINDOWARRANGE = 3
  594. ABS_AUTOHIDE = 1
  595. ABS_ALWAYSONTOP = 2
  596. ABE_LEFT = 0
  597. ABE_TOP = 1
  598. ABE_RIGHT = 2
  599. ABE_BOTTOM = 3
  600. def EIRESID(x): return (-1 * (int)(x))
  601. # Some manually added ones
  602. CSIDL_COMMON_APPDATA = 35
  603. CSIDL_LOCAL_APPDATA = 28
  604. SHCONTF_FOLDERS = 32 # for shell browser
  605. SHCONTF_NONFOLDERS = 64 # for default view
  606. SHCONTF_INCLUDEHIDDEN = 128 # for hidden/system objects
  607. SHCONTF_INIT_ON_FIRST_NEXT = 256
  608. SHCONTF_NETPRINTERSRCH = 512
  609. SHCONTF_SHAREABLE = 1024
  610. SHCONTF_STORAGE = 2048
  611. SHGDN_NORMAL = 0 # default (display purpose)
  612. SHGDN_INFOLDER = 1 # displayed under a folder (relative)
  613. SHGDN_FOREDITING = 4096 # for in-place editing
  614. SHGDN_INCLUDE_NONFILESYS = 8192 # if not set, display names for shell name space items that are not in the file system will fail.
  615. SHGDN_FORADDRESSBAR = 16384 # for displaying in the address (drives dropdown) bar
  616. SHGDN_FORPARSING = 32768 # for ParseDisplayName or path
  617. SHCONTF_FOLDERS = 32 # for shell browser
  618. SHCONTF_NONFOLDERS = 64 # for default view
  619. SHCONTF_INCLUDEHIDDEN = 128 # for hidden/system objects
  620. BFO_NONE = 0
  621. BFO_BROWSER_PERSIST_SETTINGS = 1
  622. BFO_RENAME_FOLDER_OPTIONS_TOINTERNET = 2
  623. BFO_BOTH_OPTIONS = 4
  624. BIF_PREFER_INTERNET_SHORTCUT = 8
  625. BFO_BROWSE_NO_IN_NEW_PROCESS = 16
  626. BFO_ENABLE_HYPERLINK_TRACKING = 32
  627. BFO_USE_IE_OFFLINE_SUPPORT = 64
  628. BFO_SUBSTITUE_INTERNET_START_PAGE = 128
  629. BFO_USE_IE_LOGOBANDING = 256
  630. BFO_ADD_IE_TOCAPTIONBAR = 512
  631. BFO_USE_DIALUP_REF = 1024
  632. BFO_USE_IE_TOOLBAR = 2048
  633. BFO_NO_PARENT_FOLDER_SUPPORT = 4096
  634. BFO_NO_REOPEN_NEXT_RESTART = 8192
  635. BFO_GO_HOME_PAGE = 16384
  636. BFO_PREFER_IEPROCESS = 32768
  637. BFO_SHOW_NAVIGATION_CANCELLED = 65536
  638. BFO_QUERY_ALL = -1
  639. # From ShlGuid.h
  640. PID_FINDDATA = 0
  641. PID_NETRESOURCE = 1
  642. PID_DESCRIPTIONID = 2
  643. PID_WHICHFOLDER = 3
  644. PID_NETWORKLOCATION = 4
  645. PID_COMPUTERNAME = 5
  646. PID_DISPLACED_FROM = 2
  647. PID_DISPLACED_DATE = 3
  648. PID_SYNC_COPY_IN = 2
  649. PID_MISC_STATUS = 2
  650. PID_MISC_ACCESSCOUNT = 3
  651. PID_MISC_OWNER = 4
  652. PID_HTMLINFOTIPFILE = 5
  653. PID_MISC_PICS = 6
  654. PID_DISPLAY_PROPERTIES = 0
  655. PID_INTROTEXT = 1
  656. PIDSI_ARTIST = 2
  657. PIDSI_SONGTITLE = 3
  658. PIDSI_ALBUM = 4
  659. PIDSI_YEAR = 5
  660. PIDSI_COMMENT = 6
  661. PIDSI_TRACK = 7
  662. PIDSI_GENRE = 11
  663. PIDSI_LYRICS = 12
  664. PIDDRSI_PROTECTED = 2
  665. PIDDRSI_DESCRIPTION = 3
  666. PIDDRSI_PLAYCOUNT = 4
  667. PIDDRSI_PLAYSTARTS = 5
  668. PIDDRSI_PLAYEXPIRES = 6
  669. PIDVSI_STREAM_NAME = 2
  670. PIDVSI_FRAME_WIDTH = 3
  671. PIDVSI_FRAME_HEIGHT = 4
  672. PIDVSI_TIMELENGTH = 7
  673. PIDVSI_FRAME_COUNT = 5
  674. PIDVSI_FRAME_RATE = 6
  675. PIDVSI_DATA_RATE = 8
  676. PIDVSI_SAMPLE_SIZE = 9
  677. PIDVSI_COMPRESSION = 10
  678. PIDVSI_STREAM_NUMBER = 11
  679. PIDASI_FORMAT = 2
  680. PIDASI_TIMELENGTH = 3
  681. PIDASI_AVG_DATA_RATE = 4
  682. PIDASI_SAMPLE_RATE = 5
  683. PIDASI_SAMPLE_SIZE = 6
  684. PIDASI_CHANNEL_COUNT = 7
  685. PIDASI_STREAM_NUMBER = 8
  686. PIDASI_STREAM_NAME = 9
  687. PIDASI_COMPRESSION = 10
  688. PID_CONTROLPANEL_CATEGORY = 2
  689. PID_VOLUME_FREE = 2
  690. PID_VOLUME_CAPACITY = 3
  691. PID_VOLUME_FILESYSTEM = 4
  692. PID_SHARE_CSC_STATUS = 2
  693. PID_LINK_TARGET = 2
  694. PID_QUERY_RANK = 2
  695. # From PropIdl.h
  696. PROPSETFLAG_DEFAULT = ( 0 )
  697. PROPSETFLAG_NONSIMPLE = ( 1 )
  698. PROPSETFLAG_ANSI = ( 2 )
  699. PROPSETFLAG_UNBUFFERED = ( 4 )
  700. PROPSETFLAG_CASE_SENSITIVE = ( 8 )
  701. PROPSET_BEHAVIOR_CASE_SENSITIVE = ( 1 )
  702. PID_DICTIONARY = ( 0 )
  703. PID_CODEPAGE = ( 1 )
  704. PID_FIRST_USABLE = ( 2 )
  705. PID_FIRST_NAME_DEFAULT = ( 4095 )
  706. PID_LOCALE = ( (-2147483648) )
  707. PID_MODIFY_TIME = ( (-2147483647) )
  708. PID_SECURITY = ( (-2147483646) )
  709. PID_BEHAVIOR = ( (-2147483645) )
  710. PID_ILLEGAL = ( (-1) )
  711. PID_MIN_READONLY = ( (-2147483648) )
  712. PID_MAX_READONLY = ( (-1073741825) )
  713. PIDDI_THUMBNAIL = 2
  714. PIDSI_TITLE = 2
  715. PIDSI_SUBJECT = 3
  716. PIDSI_AUTHOR = 4
  717. PIDSI_KEYWORDS = 5
  718. PIDSI_COMMENTS = 6
  719. PIDSI_TEMPLATE = 7
  720. PIDSI_LASTAUTHOR = 8
  721. PIDSI_REVNUMBER = 9
  722. PIDSI_EDITTIME = 10
  723. PIDSI_LASTPRINTED = 11
  724. PIDSI_CREATE_DTM = 12
  725. PIDSI_LASTSAVE_DTM = 13
  726. PIDSI_PAGECOUNT = 14
  727. PIDSI_WORDCOUNT = 15
  728. PIDSI_CHARCOUNT = 16
  729. PIDSI_THUMBNAIL = 17
  730. PIDSI_APPNAME = 18
  731. PIDSI_DOC_SECURITY = 19
  732. PIDDSI_CATEGORY = 2
  733. PIDDSI_PRESFORMAT = 3
  734. PIDDSI_BYTECOUNT = 4
  735. PIDDSI_LINECOUNT = 5
  736. PIDDSI_PARCOUNT = 6
  737. PIDDSI_SLIDECOUNT = 7
  738. PIDDSI_NOTECOUNT = 8
  739. PIDDSI_HIDDENCOUNT = 9
  740. PIDDSI_MMCLIPCOUNT = 10
  741. PIDDSI_SCALE = 11
  742. PIDDSI_HEADINGPAIR = 12
  743. PIDDSI_DOCPARTS = 13
  744. PIDDSI_MANAGER = 14
  745. PIDDSI_COMPANY = 15
  746. PIDDSI_LINKSDIRTY = 16
  747. PIDMSI_EDITOR = 2
  748. PIDMSI_SUPPLIER = 3
  749. PIDMSI_SOURCE = 4
  750. PIDMSI_SEQUENCE_NO = 5
  751. PIDMSI_PROJECT = 6
  752. PIDMSI_STATUS = 7
  753. PIDMSI_OWNER = 8
  754. PIDMSI_RATING = 9
  755. PIDMSI_PRODUCTION = 10
  756. PIDMSI_COPYRIGHT = 11
  757. PRSPEC_INVALID = ( (-1) )
  758. PRSPEC_LPWSTR = ( 0 )
  759. PRSPEC_PROPID = ( 1 )
  760. # From ShObjIdl.h
  761. SHCIDS_ALLFIELDS = (-2147483648)
  762. SHCIDS_CANONICALONLY = 268435456
  763. SHCIDS_BITMASK = (-65536)
  764. SHCIDS_COLUMNMASK = 65535
  765. SFGAO_CANMONIKER = 4194304
  766. SFGAO_HASSTORAGE = 4194304
  767. SFGAO_STREAM = 4194304
  768. SFGAO_STORAGEANCESTOR = 8388608
  769. SFGAO_STORAGECAPMASK = 1891958792
  770. MAXPROPPAGES = 100
  771. PSP_DEFAULT = 0
  772. PSP_DLGINDIRECT = 1
  773. PSP_USEHICON = 2
  774. PSP_USEICONID = 4
  775. PSP_USETITLE = 8
  776. PSP_RTLREADING = 16
  777. PSP_HASHELP = 32
  778. PSP_USEREFPARENT = 64
  779. PSP_USECALLBACK = 128
  780. PSP_PREMATURE = 1024
  781. PSP_HIDEHEADER = 2048
  782. PSP_USEHEADERTITLE = 4096
  783. PSP_USEHEADERSUBTITLE = 8192
  784. PSP_USEFUSIONCONTEXT = 16384
  785. PSPCB_ADDREF = 0
  786. PSPCB_RELEASE = 1
  787. PSPCB_CREATE = 2
  788. PSH_DEFAULT = 0
  789. PSH_PROPTITLE = 1
  790. PSH_USEHICON = 2
  791. PSH_USEICONID = 4
  792. PSH_PROPSHEETPAGE = 8
  793. PSH_WIZARDHASFINISH = 16
  794. PSH_WIZARD = 32
  795. PSH_USEPSTARTPAGE = 64
  796. PSH_NOAPPLYNOW = 128
  797. PSH_USECALLBACK = 256
  798. PSH_HASHELP = 512
  799. PSH_MODELESS = 1024
  800. PSH_RTLREADING = 2048
  801. PSH_WIZARDCONTEXTHELP = 4096
  802. PSH_WIZARD97 = 8192
  803. PSH_WIZARD97 = 16777216
  804. PSH_WATERMARK = 32768
  805. PSH_USEHBMWATERMARK = 65536
  806. PSH_USEHPLWATERMARK = 131072
  807. PSH_STRETCHWATERMARK = 262144
  808. PSH_HEADER = 524288
  809. PSH_USEHBMHEADER = 1048576
  810. PSH_USEPAGELANG = 2097152
  811. PSH_WIZARD_LITE = 4194304
  812. PSH_NOCONTEXTHELP = 33554432
  813. PSCB_INITIALIZED = 1
  814. PSCB_PRECREATE = 2
  815. PSCB_BUTTONPRESSED = 3
  816. PSNRET_NOERROR = 0
  817. PSNRET_INVALID = 1
  818. PSNRET_INVALID_NOCHANGEPAGE = 2
  819. PSNRET_MESSAGEHANDLED = 3
  820. PSWIZB_BACK = 1
  821. PSWIZB_NEXT = 2
  822. PSWIZB_FINISH = 4
  823. PSWIZB_DISABLEDFINISH = 8
  824. PSBTN_BACK = 0
  825. PSBTN_NEXT = 1
  826. PSBTN_FINISH = 2
  827. PSBTN_OK = 3
  828. PSBTN_APPLYNOW = 4
  829. PSBTN_CANCEL = 5
  830. PSBTN_HELP = 6
  831. PSBTN_MAX = 6
  832. ID_PSRESTARTWINDOWS = 2
  833. ID_PSREBOOTSYSTEM = (ID_PSRESTARTWINDOWS | 1)
  834. WIZ_CXDLG = 276
  835. WIZ_CYDLG = 140
  836. WIZ_CXBMP = 80
  837. WIZ_BODYX = 92
  838. WIZ_BODYCX = 184
  839. PROP_SM_CXDLG = 212
  840. PROP_SM_CYDLG = 188
  841. PROP_MED_CXDLG = 227
  842. PROP_MED_CYDLG = 215
  843. PROP_LG_CXDLG = 252
  844. PROP_LG_CYDLG = 218
  845. ISOLATION_AWARE_USE_STATIC_LIBRARY = 0
  846. ISOLATION_AWARE_BUILD_STATIC_LIBRARY = 0
  847. SHCOLSTATE_TYPE_STR = 1
  848. SHCOLSTATE_TYPE_INT = 2
  849. SHCOLSTATE_TYPE_DATE = 3
  850. SHCOLSTATE_TYPEMASK = 15
  851. SHCOLSTATE_ONBYDEFAULT = 16
  852. SHCOLSTATE_SLOW = 32
  853. SHCOLSTATE_EXTENDED = 64
  854. SHCOLSTATE_SECONDARYUI = 128
  855. SHCOLSTATE_HIDDEN = 256
  856. SHCOLSTATE_PREFER_VARCMP = 512
  857. FWF_AUTOARRANGE = 1
  858. FWF_ABBREVIATEDNAMES = 2
  859. FWF_SNAPTOGRID = 4
  860. FWF_OWNERDATA = 8
  861. FWF_BESTFITWINDOW = 16
  862. FWF_DESKTOP = 32
  863. FWF_SINGLESEL = 64
  864. FWF_NOSUBFOLDERS = 128
  865. FWF_TRANSPARENT = 256
  866. FWF_NOCLIENTEDGE = 512
  867. FWF_NOSCROLL = 1024
  868. FWF_ALIGNLEFT = 2048
  869. FWF_NOICONS = 4096
  870. FWF_SHOWSELALWAYS = 8192
  871. FWF_NOVISIBLE = 16384
  872. FWF_SINGLECLICKACTIVATE = 32768
  873. FWF_NOWEBVIEW = 65536
  874. FWF_HIDEFILENAMES = 131072
  875. FWF_CHECKSELECT = 262144
  876. FVM_FIRST = 1
  877. FVM_ICON = 1
  878. FVM_SMALLICON = 2
  879. FVM_LIST = 3
  880. FVM_DETAILS = 4
  881. FVM_THUMBNAIL = 5
  882. FVM_TILE = 6
  883. FVM_THUMBSTRIP = 7
  884. SVUIA_DEACTIVATE = 0
  885. SVUIA_ACTIVATE_NOFOCUS = 1
  886. SVUIA_ACTIVATE_FOCUS = 2
  887. SVUIA_INPLACEACTIVATE = 3
  888. # SHChangeNotifyRegister flags
  889. SHCNRF_InterruptLevel = 1
  890. SHCNRF_ShellLevel = 2
  891. SHCNRF_RecursiveInterrupt = 4096
  892. SHCNRF_NewDelivery = 32768
  893. FD_CLSID = 0x0001
  894. FD_SIZEPOINT = 0x0002
  895. FD_ATTRIBUTES = 0x0004
  896. FD_CREATETIME = 0x0008
  897. FD_ACCESSTIME = 0x0010
  898. FD_WRITESTIME = 0x0020
  899. FD_FILESIZE = 0x0040
  900. FD_PROGRESSUI = 0x4000
  901. FD_LINKUI = 0x8000
  902. # shlwapi stuff
  903. ASSOCF_INIT_NOREMAPCLSID = 0x00000001 # do not remap clsids to progids
  904. ASSOCF_INIT_BYEXENAME = 0x00000002 # executable is being passed in
  905. ASSOCF_OPEN_BYEXENAME = 0x00000002 # executable is being passed in
  906. ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004 # treat "*" as the BaseClass
  907. ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008 # treat "Folder" as the BaseClass
  908. ASSOCF_NOUSERSETTINGS = 0x00000010 # dont use HKCU
  909. ASSOCF_NOTRUNCATE = 0x00000020 # dont truncate the return string
  910. ASSOCF_VERIFY = 0x00000040 # verify data is accurate (DISK HITS)
  911. ASSOCF_REMAPRUNDLL = 0x00000080 # actually gets info about rundlls target if applicable
  912. ASSOCF_NOFIXUPS = 0x00000100 # attempt to fix errors if found
  913. ASSOCF_IGNOREBASECLASS = 0x00000200 # dont recurse into the baseclass
  914. ASSOCSTR_COMMAND = 1 # shell\verb\command string
  915. ASSOCSTR_EXECUTABLE = 2 # the executable part of command string
  916. ASSOCSTR_FRIENDLYDOCNAME = 3 # friendly name of the document type
  917. ASSOCSTR_FRIENDLYAPPNAME = 4 # friendly name of executable
  918. ASSOCSTR_NOOPEN = 5 # noopen value
  919. ASSOCSTR_SHELLNEWVALUE = 6 # query values under the shellnew key
  920. ASSOCSTR_DDECOMMAND = 7 # template for DDE commands
  921. ASSOCSTR_DDEIFEXEC = 8 # DDECOMMAND to use if just create a process
  922. ASSOCSTR_DDEAPPLICATION = 9 # Application name in DDE broadcast
  923. ASSOCSTR_DDETOPIC = 10 # Topic Name in DDE broadcast
  924. ASSOCSTR_INFOTIP = 11 # info tip for an item, or list of properties to create info tip from
  925. ASSOCSTR_QUICKTIP = 12 # same as ASSOCSTR_INFOTIP, except, this list contains only quickly retrievable properties
  926. ASSOCSTR_TILEINFO = 13 # similar to ASSOCSTR_INFOTIP - lists important properties for tileview
  927. ASSOCSTR_CONTENTTYPE = 14 # MIME Content type
  928. ASSOCSTR_DEFAULTICON = 15 # Default icon source
  929. ASSOCSTR_SHELLEXTENSION = 16 # Guid string pointing to the Shellex\Shellextensionhandler value.
  930. ASSOCKEY_SHELLEXECCLASS = 1 # the key that should be passed to ShellExec(hkeyClass)
  931. ASSOCKEY_APP = 2 # the "Application" key for the association
  932. ASSOCKEY_CLASS = 3 # the progid or class key
  933. ASSOCKEY_BASECLASS = 4 # the BaseClass key
  934. ASSOCDATA_MSIDESCRIPTOR = 1 # Component Descriptor to pass to MSI APIs
  935. ASSOCDATA_NOACTIVATEHANDLER = 2 # restrict attempts to activate window
  936. ASSOCDATA_QUERYCLASSSTORE = 3 # should check with the NT Class Store
  937. ASSOCDATA_HASPERUSERASSOC = 4 # defaults to user specified association
  938. ASSOCDATA_EDITFLAGS = 5 # Edit flags.
  939. ASSOCDATA_VALUE = 6 # use pszExtra as the Value name
  940. # flags used with SHGetViewStatePropertyBag
  941. SHGVSPB_PERUSER = 1
  942. SHGVSPB_ALLUSERS = 2
  943. SHGVSPB_PERFOLDER = 4
  944. SHGVSPB_ALLFOLDERS = 8
  945. SHGVSPB_INHERIT = 16
  946. SHGVSPB_ROAM = 32
  947. SHGVSPB_NOAUTODEFAULTS = 2147483648 # 0x80000000
  948. SHGVSPB_FOLDER = SHGVSPB_PERUSER | SHGVSPB_PERFOLDER
  949. SHGVSPB_FOLDERNODEFAULTS = SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS
  950. SHGVSPB_USERDEFAULTS = SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS
  951. SHGVSPB_GLOBALDEAFAULTS = SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS
  952. # IDeskband and related
  953. DBIM_MINSIZE = 0x0001
  954. DBIM_MAXSIZE = 0x0002
  955. DBIM_INTEGRAL = 0x0004
  956. DBIM_ACTUAL = 0x0008
  957. DBIM_TITLE = 0x0010
  958. DBIM_MODEFLAGS = 0x0020
  959. DBIM_BKCOLOR = 0x0040
  960. DBIMF_NORMAL = 0x0000
  961. DBIMF_VARIABLEHEIGHT = 0x0008
  962. DBIMF_DEBOSSED = 0x0020
  963. DBIMF_BKCOLOR = 0x0040
  964. DBIF_VIEWMODE_NORMAL = 0x0000
  965. DBIF_VIEWMODE_VERTICAL = 0x0001
  966. DBIF_VIEWMODE_FLOATING = 0x0002
  967. DBIF_VIEWMODE_TRANSPARENT = 0x0004
  968. # Message types used with SHShellFolderView_Message
  969. SFVM_REARRANGE = 1
  970. SFVM_ADDOBJECT = 3
  971. SFVM_REMOVEOBJECT = 6
  972. SFVM_UPDATEOBJECT = 7
  973. SFVM_GETSELECTEDOBJECTS = 9
  974. SFVM_SETITEMPOS = 14
  975. SFVM_SETCLIPBOARD = 16
  976. SFVM_SETPOINTS = 23
  977. # SHELL_LINK_DATA_FLAGS enum, used with IShellLinkDatalist
  978. SLDF_HAS_ID_LIST = 1
  979. SLDF_HAS_LINK_INFO = 2
  980. SLDF_HAS_NAME = 4
  981. SLDF_HAS_RELPATH = 8
  982. SLDF_HAS_WORKINGDIR = 16
  983. SLDF_HAS_ARGS = 32
  984. SLDF_HAS_ICONLOCATION = 64
  985. SLDF_UNICODE = 128
  986. SLDF_FORCE_NO_LINKINFO = 256
  987. SLDF_HAS_EXP_SZ = 512
  988. SLDF_RUN_IN_SEPARATE = 1024
  989. SLDF_HAS_LOGO3ID = 2048
  990. SLDF_HAS_DARWINID = 4096
  991. SLDF_RUNAS_USER = 8192
  992. SLDF_NO_PIDL_ALIAS = 32768
  993. SLDF_FORCE_UNCNAME = 65536
  994. SLDF_HAS_EXP_ICON_SZ = 16384
  995. SLDF_RUN_WITH_SHIMLAYER = 131072
  996. SLDF_RESERVED = 2147483648
  997. # IShellLinkDataList data block signatures
  998. EXP_SPECIAL_FOLDER_SIG = 2684354565
  999. NT_CONSOLE_PROPS_SIG = 2684354562
  1000. NT_FE_CONSOLE_PROPS_SIG = 2684354564
  1001. EXP_DARWIN_ID_SIG = 2684354566
  1002. EXP_LOGO3_ID_SIG = 2684354567
  1003. EXP_SZ_ICON_SIG = 2684354567
  1004. EXP_SZ_LINK_SIG = 2684354561
  1005. # IURL_SETURL_FLAGS enum, used with PyIUniformResourceLocator.SetURL
  1006. IURL_SETURL_FL_GUESS_PROTOCOL = 1
  1007. IURL_SETURL_FL_USE_DEFAULT_PROTOCOL = 2
  1008. # IURL_INVOKECOMMAND_FLAGS enum, used with PyIUniformResourceLocator.InvokeCommand
  1009. IURL_INVOKECOMMAND_FL_ALLOW_UI = 1
  1010. IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB = 2
  1011. IURL_INVOKECOMMAND_FL_DDEWAIT = 4
  1012. ## constants used with IActiveDesktop
  1013. # COMPONENT.ComponentType
  1014. COMP_TYPE_HTMLDOC = 0
  1015. COMP_TYPE_PICTURE = 1
  1016. COMP_TYPE_WEBSITE = 2
  1017. COMP_TYPE_CONTROL = 3
  1018. COMP_TYPE_CFHTML = 4
  1019. COMP_TYPE_MAX = 4
  1020. # COMPONENT.CurItemState
  1021. IS_NORMAL = 1
  1022. IS_FULLSCREEN = 2
  1023. IS_SPLIT = 4
  1024. IS_VALIDSIZESTATEBITS = IS_NORMAL|IS_SPLIT|IS_FULLSCREEN
  1025. IS_VALIDSTATEBITS = IS_NORMAL|IS_SPLIT|IS_FULLSCREEN|2147483648|1073741824 ## 0x80000000|0x40000000
  1026. # IActiveDesktop.ApplyChanges Flags
  1027. AD_APPLY_SAVE = 1
  1028. AD_APPLY_HTMLGEN = 2
  1029. AD_APPLY_REFRESH = 4
  1030. AD_APPLY_ALL = AD_APPLY_SAVE|AD_APPLY_HTMLGEN|AD_APPLY_REFRESH
  1031. AD_APPLY_FORCE = 8
  1032. AD_APPLY_BUFFERED_REFRESH = 16
  1033. AD_APPLY_DYNAMICREFRESH = 32
  1034. # Wallpaper styles used with GetWallpaper and SetWallpaper
  1035. WPSTYLE_CENTER = 0
  1036. WPSTYLE_TILE = 1
  1037. WPSTYLE_STRETCH = 2
  1038. WPSTYLE_MAX = 3
  1039. # ModifyDesktopItem flags
  1040. COMP_ELEM_TYPE = 1 ## 0x00000001
  1041. COMP_ELEM_CHECKED = 2 ## 0x00000002
  1042. COMP_ELEM_DIRTY = 4 ## 0x00000004
  1043. COMP_ELEM_NOSCROLL = 8 ## 0x00000008
  1044. COMP_ELEM_POS_LEFT = 16 ## 0x00000010
  1045. COMP_ELEM_POS_TOP = 32 ## 0x00000020
  1046. COMP_ELEM_SIZE_WIDTH = 64 ## 0x00000040
  1047. COMP_ELEM_SIZE_HEIGHT = 128 ## 0x00000080
  1048. COMP_ELEM_POS_ZINDEX = 256 ## 0x00000100
  1049. COMP_ELEM_SOURCE = 512 ## 0x00000200
  1050. COMP_ELEM_FRIENDLYNAME = 1024 ## 0x00000400
  1051. COMP_ELEM_SUBSCRIBEDURL = 2048 ## 0x00000800
  1052. COMP_ELEM_ORIGINAL_CSI = 4096 ## 0x00001000
  1053. COMP_ELEM_RESTORED_CSI = 8192 ## 0x00002000
  1054. COMP_ELEM_CURITEMSTATE = 16384 ## 0x00004000
  1055. COMP_ELEM_ALL = COMP_ELEM_TYPE|COMP_ELEM_CHECKED|COMP_ELEM_DIRTY|COMP_ELEM_NOSCROLL|COMP_ELEM_POS_LEFT \
  1056. |COMP_ELEM_SIZE_WIDTH|COMP_ELEM_SIZE_HEIGHT|COMP_ELEM_POS_ZINDEX|COMP_ELEM_SOURCE \
  1057. |COMP_ELEM_FRIENDLYNAME|COMP_ELEM_POS_TOP|COMP_ELEM_SUBSCRIBEDURL|COMP_ELEM_ORIGINAL_CSI \
  1058. |COMP_ELEM_RESTORED_CSI|COMP_ELEM_CURITEMSTATE
  1059. DTI_ADDUI_DEFAULT = 0
  1060. DTI_ADDUI_DISPSUBWIZARD = 1
  1061. DTI_ADDUI_POSITIONITEM = 2
  1062. ADDURL_SILENT = 1
  1063. COMPONENT_TOP = 1073741823 ## 0x3fffffff
  1064. COMPONENT_DEFAULT_LEFT = 65535 ## 0xFFFF
  1065. COMPONENT_DEFAULT_TOP = 65535 ## 0xFFFF
  1066. SSM_CLEAR = 0
  1067. SSM_SET = 1
  1068. SSM_REFRESH = 2
  1069. SSM_UPDATE = 4
  1070. SCHEME_DISPLAY = 1 ##0x0001
  1071. SCHEME_EDIT = 2 ##0x0002
  1072. SCHEME_LOCAL = 4 ##0x0004
  1073. SCHEME_GLOBAL = 8 ##0x0008
  1074. SCHEME_REFRESH = 16 ##0x0010
  1075. SCHEME_UPDATE = 32 ##0x0020
  1076. SCHEME_DONOTUSE = 64 ##0x0040
  1077. SCHEME_CREATE = 128 ##0x0080
  1078. GADOF_DIRTY = 1
  1079. # From EmptyVC.h
  1080. EVCF_HASSETTINGS = 0x0001
  1081. EVCF_ENABLEBYDEFAULT = 0x0002
  1082. EVCF_REMOVEFROMLIST = 0x0004
  1083. EVCF_ENABLEBYDEFAULT_AUTO = 0x0008
  1084. EVCF_DONTSHOWIFZERO = 0x0010
  1085. EVCF_SETTINGSMODE = 0x0020
  1086. EVCF_OUTOFDISKSPACE = 0x0040
  1087. EVCCBF_LASTNOTIFICATION = 0x0001
  1088. # ShObjIdl.h IExplorer* related
  1089. EBO_NONE = 0
  1090. EBO_NAVIGATEONCE = 0x1
  1091. EBO_SHOWFRAMES = 0x2
  1092. EBO_ALWAYSNAVIGATE = 0x4
  1093. EBO_NOTRAVELLOG = 0x8
  1094. EBO_NOWRAPPERWINDOW = 0x10
  1095. EBF_NONE = 0
  1096. EBF_SELECTFROMDATAOBJECT = 0x100
  1097. EBF_NODROPTARGET = 0x200
  1098. ECS_ENABLED = 0
  1099. ECS_DISABLED = 0x1
  1100. ECS_HIDDEN = 0x2
  1101. ECS_CHECKBOX = 0x4
  1102. ECS_CHECKED = 0x8
  1103. ECF_HASSUBCOMMANDS = 0x1
  1104. ECF_HASSPLITBUTTON = 0x2
  1105. ECF_HIDELABEL = 0x4
  1106. ECF_ISSEPARATOR = 0x8
  1107. ECF_HASLUASHIELD = 0x10
  1108. SIATTRIBFLAGS_AND = 0x1
  1109. SIATTRIBFLAGS_OR = 0x2
  1110. SIATTRIBFLAGS_APPCOMPAT = 0x3
  1111. SIATTRIBFLAGS_MASK = 0x3
  1112. SIGDN_NORMALDISPLAY = 0
  1113. SIGDN_PARENTRELATIVEPARSING = -2147385343 ## 0x80018001
  1114. SIGDN_DESKTOPABSOLUTEPARSING = -2147319808 ## 0x80028000
  1115. SIGDN_PARENTRELATIVEEDITING = -2147282943 ## 0x80031001
  1116. SIGDN_DESKTOPABSOLUTEEDITING = -2147172352 ## 0x8004c000
  1117. SIGDN_FILESYSPATH = -2147123200 ## 0x80058000
  1118. SIGDN_URL = -2147057664 ## 0x80068000
  1119. SIGDN_PARENTRELATIVEFORADDRESSBAR = -2146975743 ## 0x8007c001,
  1120. SIGDN_PARENTRELATIVE = -2146959359 ## 0x80080001
  1121. SICHINT_DISPLAY = 0,
  1122. SICHINT_ALLFIELDS = -2147483648 ## 0x80000000
  1123. SICHINT_CANONICAL = 0x10000000
  1124. ASSOCCLASS_SHELL_KEY = 0
  1125. ASSOCCLASS_PROGID_KEY = 1 # hkeyClass
  1126. ASSOCCLASS_PROGID_STR = 2 # pszClass (HKCR\pszClass)
  1127. ASSOCCLASS_CLSID_KEY = 3 # hkeyClass
  1128. ASSOCCLASS_CLSID_STR = 4 # pszClass (HKCR\CLSID\pszClass)
  1129. ASSOCCLASS_APP_KEY = 5 # hkeyClass
  1130. ASSOCCLASS_APP_STR = 6 # pszClass (HKCR\Applications\PathFindFileName(pszClass))
  1131. ASSOCCLASS_SYSTEM_STR = 7 # pszClass
  1132. ASSOCCLASS_FOLDER = 8 # none
  1133. ASSOCCLASS_STAR = 9 # none
  1134. NSTCS_HASEXPANDOS = 0x1
  1135. NSTCS_HASLINES = 0x2
  1136. NSTCS_SINGLECLICKEXPAND = 0x4
  1137. NSTCS_FULLROWSELECT = 0x8
  1138. NSTCS_SPRINGEXPAND = 0x10
  1139. NSTCS_HORIZONTALSCROLL = 0x20
  1140. NSTCS_ROOTHASEXPANDO = 0x40
  1141. NSTCS_SHOWSELECTIONALWAYS = 0x80
  1142. NSTCS_NOINFOTIP = 0x200
  1143. NSTCS_EVENHEIGHT = 0x400
  1144. NSTCS_NOREPLACEOPEN = 0x800
  1145. NSTCS_DISABLEDRAGDROP = 0x1000
  1146. NSTCS_NOORDERSTREAM = 0x2000
  1147. NSTCS_RICHTOOLTIP = 0x4000
  1148. NSTCS_BORDER = 0x8000
  1149. NSTCS_NOEDITLABELS = 0x10000
  1150. NSTCS_TABSTOP = 0x20000
  1151. NSTCS_FAVORITESMODE = 0x80000
  1152. NSTCS_AUTOHSCROLL = 0x100000
  1153. NSTCS_FADEINOUTEXPANDOS = 0x200000
  1154. NSTCS_EMPTYTEXT = 0x400000
  1155. NSTCS_CHECKBOXES = 0x800000
  1156. NSTCS_PARTIALCHECKBOXES = 0x1000000
  1157. NSTCS_EXCLUSIONCHECKBOXES = 0x2000000
  1158. NSTCS_DIMMEDCHECKBOXES = 0x4000000
  1159. NSTCS_NOINDENTCHECKS = 0x8000000
  1160. NSTCS_ALLOWJUNCTIONS = 0x10000000
  1161. NSTCS_SHOWTABSBUTTON = 0x20000000
  1162. NSTCS_SHOWDELETEBUTTON = 0x40000000
  1163. NSTCS_SHOWREFRESHBUTTON = -2147483648 # 0x80000000
  1164. NSTCRS_VISIBLE = 0
  1165. NSTCRS_HIDDEN = 0x1
  1166. NSTCRS_EXPANDED = 0x2
  1167. NSTCIS_NONE = 0
  1168. NSTCIS_SELECTED = 0x1
  1169. NSTCIS_EXPANDED = 0x2
  1170. NSTCIS_BOLD = 0x4
  1171. NSTCIS_DISABLED = 0x8
  1172. NSTCGNI_NEXT = 0
  1173. NSTCGNI_NEXTVISIBLE = 0x1
  1174. NSTCGNI_PREV = 0x2
  1175. NSTCGNI_PREVVISIBLE = 0x3
  1176. NSTCGNI_PARENT = 0x4
  1177. NSTCGNI_CHILD = 0x5
  1178. NSTCGNI_FIRSTVISIBLE = 0x6
  1179. NSTCGNI_LASTVISIBLE = 0x7
  1180. CLSID_ExplorerBrowser = "{71f96385-ddd6-48d3-a0c1-ae06e8b055fb}"
  1181. # Names of the methods of many shell interfaces; used by implementation of
  1182. # the interfaces.
  1183. IBrowserFrame_Methods = ["GetFrameOptions"]
  1184. ICategorizer_Methods = ["GetDescription", "GetCategory",
  1185. "GetCategoryInfo", "CompareCategory"]
  1186. ICategoryProvider_Methods = ["CanCategorizeOnSCID", "GetDefaultCategory",
  1187. "GetCategoryForSCID", "EnumCategories",
  1188. "GetCategoryName", "CreateCategory"]
  1189. IContextMenu_Methods = ["QueryContextMenu", "InvokeCommand", "GetCommandString"]
  1190. IExplorerCommand_Methods = ["GetTitle", "GetIcon", "GetToolTip",
  1191. "GetCanonicalName", "GetState", "Invoke",
  1192. "GetFlags", "EnumSubCommands"]
  1193. IExplorerCommandProvider_Methods = ["GetCommand", "GetCommands"]
  1194. IOleWindow_Methods = ["GetWindow", "ContextSensitiveHelp"] # XXX - this should be somewhere in win32com
  1195. IPersist_Methods = ["GetClassID"]
  1196. IPersistFolder_Methods = IPersist_Methods + ["Initialize"]
  1197. IPersistFolder2_Methods = IPersistFolder_Methods + ["GetCurFolder"]
  1198. IShellExtInit_Methods = ["Initialize"]
  1199. IShellView_Methods = IOleWindow_Methods + \
  1200. ["TranslateAccelerator", "EnableModeless", "UIActivate",
  1201. "Refresh", "CreateViewWindow", "DestroyViewWindow",
  1202. "GetCurrentInfo", "AddPropertySheetPages",
  1203. "SaveViewState", "SelectItem", "GetItemObject"]
  1204. IShellFolder_Methods = ["ParseDisplayName", "EnumObjects", "BindToObject",
  1205. "BindToStorage", "CompareIDs", "CreateViewObject",
  1206. "GetAttributesOf", "GetUIObjectOf",
  1207. "GetDisplayNameOf", "SetNameOf"]
  1208. IShellFolder2_Methods = IShellFolder_Methods + \
  1209. ["GetDefaultSearchGUID", "EnumSearches",
  1210. "GetDefaultColumn", "GetDefaultColumnState",
  1211. "GetDetailsEx", "GetDetailsOf", "MapColumnToSCID"]
  1212. ## enum GETPROPERTYSTOREFLAGS, used with IShellItem2 methods
  1213. GPS_DEFAULT = 0
  1214. GPS_HANDLERPROPERTIESONLY = 0x1
  1215. GPS_READWRITE = 0x2
  1216. GPS_TEMPORARY = 0x4
  1217. GPS_FASTPROPERTIESONLY = 0x8
  1218. GPS_OPENSLOWITEM = 0x10
  1219. GPS_DELAYCREATION = 0x20
  1220. GPS_BESTEFFORT = 0x40
  1221. GPS_MASK_VALID = 0x7f
  1222. ## Bind context parameter names, used with IBindCtx::RegisterObjectParam
  1223. STR_AVOID_DRIVE_RESTRICTION_POLICY = "Avoid Drive Restriction Policy"
  1224. STR_BIND_DELEGATE_CREATE_OBJECT = "Delegate Object Creation"
  1225. STR_BIND_FOLDERS_READ_ONLY = "Folders As Read Only"
  1226. STR_BIND_FOLDER_ENUM_MODE = "Folder Enum Mode"
  1227. STR_BIND_FORCE_FOLDER_SHORTCUT_RESOLVE = "Force Folder Shortcut Resolve"
  1228. STR_DONT_PARSE_RELATIVE = "Don't Parse Relative"
  1229. STR_DONT_RESOLVE_LINK = "Don't Resolve Link"
  1230. ## STR_ENUM_ITEMS_FLAGS
  1231. STR_FILE_SYS_BIND_DATA = "File System Bind Data"
  1232. STR_GET_ASYNC_HANDLER = "GetAsyncHandler"
  1233. STR_GPS_BESTEFFORT = "GPS_BESTEFFORT"
  1234. STR_GPS_DELAYCREATION = "GPS_DELAYCREATION"
  1235. STR_GPS_FASTPROPERTIESONLY = "GPS_FASTPROPERTIESONLY"
  1236. STR_GPS_HANDLERPROPERTIESONLY = "GPS_HANDLERPROPERTIESONLY"
  1237. STR_GPS_NO_OPLOCK = "GPS_NO_OPLOCK"
  1238. STR_GPS_OPENSLOWITEM = "GPS_OPENSLOWITEM"
  1239. STR_IFILTER_FORCE_TEXT_FILTER_FALLBACK = "Always bind persistent handlers"
  1240. STR_IFILTER_LOAD_DEFINED_FILTER = "Only bind registered persistent handlers"
  1241. STR_INTERNAL_NAVIGATE = "Internal Navigation"
  1242. STR_INTERNETFOLDER_PARSE_ONLY_URLMON_BINDABLE = "Validate URL"
  1243. STR_ITEM_CACHE_CONTEXT = "ItemCacheContext"
  1244. STR_NO_VALIDATE_FILENAME_CHARS = "NoValidateFilenameChars"
  1245. STR_PARSE_ALLOW_INTERNET_SHELL_FOLDERS = "Allow binding to Internet shell folder handlers and negate STR_PARSE_PREFER_WEB_BROWSING"
  1246. STR_PARSE_AND_CREATE_ITEM = "ParseAndCreateItem"
  1247. STR_PARSE_DONT_REQUIRE_VALIDATED_URLS = "Do not require validated URLs"
  1248. STR_PARSE_EXPLICIT_ASSOCIATION_SUCCESSFUL = "ExplicitAssociationSuccessful"
  1249. STR_PARSE_PARTIAL_IDLIST = "ParseOriginalItem"
  1250. STR_PARSE_PREFER_FOLDER_BROWSING = "Parse Prefer Folder Browsing"
  1251. STR_PARSE_PREFER_WEB_BROWSING = "Do not bind to Internet shell folder handlers"
  1252. STR_PARSE_PROPERTYSTORE = "DelegateNamedProperties"
  1253. STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS = "Parse Shell Protocol To File Objects"
  1254. STR_PARSE_SHOW_NET_DIAGNOSTICS_UI = "Show network diagnostics UI"
  1255. STR_PARSE_SKIP_NET_CACHE = "Skip Net Resource Cache"
  1256. STR_PARSE_TRANSLATE_ALIASES = "Parse Translate Aliases"
  1257. STR_PARSE_WITH_EXPLICIT_ASSOCAPP = "ExplicitAssociationApp"
  1258. STR_PARSE_WITH_EXPLICIT_PROGID = "ExplicitProgid"
  1259. STR_PARSE_WITH_PROPERTIES = "ParseWithProperties"
  1260. ## STR_PROPERTYBAG_PARAM
  1261. STR_SKIP_BINDING_CLSID = "Skip Binding CLSID"
  1262. STR_TRACK_CLSID = "Track the CLSID"
  1263. ## KF_REDIRECTION_CAPABILITIES enum
  1264. KF_REDIRECTION_CAPABILITIES_ALLOW_ALL = 0x000000FF
  1265. KF_REDIRECTION_CAPABILITIES_REDIRECTABLE = 0x00000001
  1266. KF_REDIRECTION_CAPABILITIES_DENY_ALL = 0x000FFF00
  1267. KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED = 0x00000100
  1268. KF_REDIRECTION_CAPABILITIES_DENY_POLICY = 0x00000200
  1269. KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS = 0x00000400
  1270. ## KF_REDIRECT_FLAGS enum
  1271. KF_REDIRECT_USER_EXCLUSIVE = 0x00000001
  1272. KF_REDIRECT_COPY_SOURCE_DACL = 0x00000002
  1273. KF_REDIRECT_OWNER_USER = 0x00000004
  1274. KF_REDIRECT_SET_OWNER_EXPLICIT = 0x00000008
  1275. KF_REDIRECT_CHECK_ONLY = 0x00000010
  1276. KF_REDIRECT_WITH_UI = 0x00000020
  1277. KF_REDIRECT_UNPIN = 0x00000040
  1278. KF_REDIRECT_PIN = 0x00000080
  1279. KF_REDIRECT_COPY_CONTENTS = 0x00000200
  1280. KF_REDIRECT_DEL_SOURCE_CONTENTS = 0x00000400
  1281. KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS = 0x00000800
  1282. ## KF_CATEGORY enum
  1283. KF_CATEGORY_VIRTUAL = 0x00000001
  1284. KF_CATEGORY_FIXED = 0x00000002
  1285. KF_CATEGORY_COMMON = 0x00000003
  1286. KF_CATEGORY_PERUSER = 0x00000004
  1287. ## FFFP_MODE enum
  1288. FFFP_EXACTMATCH = 0
  1289. FFFP_NEARESTPARENTMATCH = 1
  1290. KF_FLAG_CREATE = 0x00008000
  1291. KF_FLAG_DONT_VERIFY = 0x00004000
  1292. KF_FLAG_DONT_UNEXPAND = 0x00002000
  1293. KF_FLAG_NO_ALIAS = 0x00001000
  1294. KF_FLAG_INIT = 0x00000800
  1295. KF_FLAG_DEFAULT_PATH = 0x00000400
  1296. KF_FLAG_NOT_PARENT_RELATIVE = 0x00000200
  1297. KF_FLAG_SIMPLE_IDLIST = 0x00000100
  1298. ## APPDOCLISTTYPE, used with IApplicationDocumentLists.GetList
  1299. ADLT_RECENT = 0
  1300. ADLT_FREQUENT = 1
  1301. ## KNOWNDESTCATEGORY used with ICustomDestinationList.AppendKnownCategory
  1302. KDC_FREQUENT = 1
  1303. KDC_RECENT = 2
  1304. ## LIBRARYFOLDERFILTER used with IShellLibrary.GetFolders
  1305. LFF_FORCEFILESYSTEM = 1
  1306. LFF_STORAGEITEMS = 2
  1307. LFF_ALLITEMS = 3
  1308. ## DEFAULTSAVEFOLDERTYPE used with IShellLibrary.Get/SetDefaultSaveFolder
  1309. DSFT_DETECT = 1
  1310. DSFT_PRIVATE = 2
  1311. DSFT_PUBLIC = 3
  1312. ## LIBRARYOPTIONFLAGS used with IShellLibrary.Get/SetOptions
  1313. LOF_DEFAULT = 0
  1314. LOF_PINNEDTONAVPANE = 1
  1315. LOF_MASK_ALL = 1
  1316. ## LIBRARYSAVEFLAGS Used with PyIShellLibrary.Save
  1317. LSF_FAILIFTHERE = 0
  1318. LSF_OVERRIDEEXISTING = 1
  1319. LSF_MAKEUNIQUENAME = 2
  1320. ## TRANSFER_SOURCE_FLAGS, used with IFileOperationProgressSink
  1321. TSF_NORMAL = 0
  1322. TSF_FAIL_EXIST = 0
  1323. TSF_RENAME_EXIST = 0x1
  1324. TSF_OVERWRITE_EXIST = 0x2
  1325. TSF_ALLOW_DECRYPTION = 0x4
  1326. TSF_NO_SECURITY = 0x8
  1327. TSF_COPY_CREATION_TIME = 0x10
  1328. TSF_COPY_WRITE_TIME = 0x20
  1329. TSF_USE_FULL_ACCESS = 0x40
  1330. TSF_DELETE_RECYCLE_IF_POSSIBLE = 0x80
  1331. TSF_COPY_HARD_LINK = 0x100
  1332. TSF_COPY_LOCALIZED_NAME = 0x200
  1333. TSF_MOVE_AS_COPY_DELETE = 0x400
  1334. TSF_SUSPEND_SHELLEVENTS = 0x800
  1335. ## TRANSFER_ADVISE_STATE, used with ITransferAdviseSink
  1336. TS_NONE = 0
  1337. TS_PERFORMING = 1
  1338. TS_PREPARING = 2
  1339. TS_INDETERMINATE = 4
  1340. ## Success HRESULTs returned by ITransfer* interface operations
  1341. COPYENGINE_S_YES = 0x00270001
  1342. COPYENGINE_S_NOT_HANDLED = 0x00270003
  1343. COPYENGINE_S_USER_RETRY = 0x00270004
  1344. COPYENGINE_S_USER_IGNORED = 0x00270005
  1345. COPYENGINE_S_MERGE = 0x00270006
  1346. COPYENGINE_S_DONT_PROCESS_CHILDREN = 0x00270008
  1347. COPYENGINE_S_ALREADY_DONE = 0x0027000A
  1348. COPYENGINE_S_PENDING = 0x0027000B
  1349. COPYENGINE_S_KEEP_BOTH = 0x0027000C
  1350. COPYENGINE_S_CLOSE_PROGRAM = 0x0027000D
  1351. COPYENGINE_S_COLLISIONRESOLVED = 0x0027000E
  1352. ## Error HRESULTS
  1353. COPYENGINE_E_USER_CANCELLED = 0x80270000
  1354. COPYENGINE_E_CANCELLED = 0x80270001
  1355. COPYENGINE_E_REQUIRES_ELEVATION = 0x80270002
  1356. COPYENGINE_E_SAME_FILE = 0x80270003
  1357. COPYENGINE_E_DIFF_DIR = 0x80270004
  1358. COPYENGINE_E_MANY_SRC_1_DEST = 0x80270005
  1359. COPYENGINE_E_DEST_SUBTREE = 0x80270009
  1360. COPYENGINE_E_DEST_SAME_TREE = 0x8027000A
  1361. COPYENGINE_E_FLD_IS_FILE_DEST = 0x8027000B
  1362. COPYENGINE_E_FILE_IS_FLD_DEST = 0x8027000C
  1363. COPYENGINE_E_FILE_TOO_LARGE = 0x8027000D
  1364. COPYENGINE_E_REMOVABLE_FULL = 0x8027000E
  1365. COPYENGINE_E_DEST_IS_RO_CD = 0x8027000F
  1366. COPYENGINE_E_DEST_IS_RW_CD = 0x80270010
  1367. COPYENGINE_E_DEST_IS_R_CD = 0x80270011
  1368. COPYENGINE_E_DEST_IS_RO_DVD = 0x80270012
  1369. COPYENGINE_E_DEST_IS_RW_DVD = 0x80270013
  1370. COPYENGINE_E_DEST_IS_R_DVD = 0x80270014
  1371. COPYENGINE_E_SRC_IS_RO_CD = 0x80270015
  1372. COPYENGINE_E_SRC_IS_RW_CD = 0x80270016
  1373. COPYENGINE_E_SRC_IS_R_CD = 0x80270017
  1374. COPYENGINE_E_SRC_IS_RO_DVD = 0x80270018
  1375. COPYENGINE_E_SRC_IS_RW_DVD = 0x80270019
  1376. COPYENGINE_E_SRC_IS_R_DVD = 0x8027001A
  1377. COPYENGINE_E_INVALID_FILES_SRC = 0x8027001B
  1378. COPYENGINE_E_INVALID_FILES_DEST = 0x8027001C
  1379. COPYENGINE_E_PATH_TOO_DEEP_SRC = 0x8027001D
  1380. COPYENGINE_E_PATH_TOO_DEEP_DEST = 0x8027001E
  1381. COPYENGINE_E_ROOT_DIR_SRC = 0x8027001F
  1382. COPYENGINE_E_ROOT_DIR_DEST = 0x80270020
  1383. COPYENGINE_E_ACCESS_DENIED_SRC = 0x80270021
  1384. COPYENGINE_E_ACCESS_DENIED_DEST = 0x80270022
  1385. COPYENGINE_E_PATH_NOT_FOUND_SRC = 0x80270023
  1386. COPYENGINE_E_PATH_NOT_FOUND_DEST = 0x80270024
  1387. COPYENGINE_E_NET_DISCONNECT_SRC = 0x80270025
  1388. COPYENGINE_E_NET_DISCONNECT_DEST = 0x80270026
  1389. COPYENGINE_E_SHARING_VIOLATION_SRC = 0x80270027
  1390. COPYENGINE_E_SHARING_VIOLATION_DEST = 0x80270028
  1391. COPYENGINE_E_ALREADY_EXISTS_NORMAL = 0x80270029
  1392. COPYENGINE_E_ALREADY_EXISTS_READONLY = 0x8027002A
  1393. COPYENGINE_E_ALREADY_EXISTS_SYSTEM = 0x8027002B
  1394. COPYENGINE_E_ALREADY_EXISTS_FOLDER = 0x8027002C
  1395. COPYENGINE_E_STREAM_LOSS = 0x8027002D
  1396. COPYENGINE_E_EA_LOSS = 0x8027002E
  1397. COPYENGINE_E_PROPERTY_LOSS = 0x8027002F
  1398. COPYENGINE_E_PROPERTIES_LOSS = 0x80270030
  1399. COPYENGINE_E_ENCRYPTION_LOSS = 0x80270031
  1400. COPYENGINE_E_DISK_FULL = 0x80270032
  1401. COPYENGINE_E_DISK_FULL_CLEAN = 0x80270033
  1402. COPYENGINE_E_EA_NOT_SUPPORTED = 0x80270034
  1403. COPYENGINE_E_CANT_REACH_SOURCE = 0x80270035
  1404. COPYENGINE_E_RECYCLE_UNKNOWN_ERROR = 0x80270035
  1405. COPYENGINE_E_RECYCLE_FORCE_NUKE = 0x80270036
  1406. COPYENGINE_E_RECYCLE_SIZE_TOO_BIG = 0x80270037
  1407. COPYENGINE_E_RECYCLE_PATH_TOO_LONG = 0x80270038
  1408. COPYENGINE_E_RECYCLE_BIN_NOT_FOUND = 0x8027003A
  1409. COPYENGINE_E_NEWFILE_NAME_TOO_LONG = 0x8027003B
  1410. COPYENGINE_E_NEWFOLDER_NAME_TOO_LONG = 0x8027003C
  1411. COPYENGINE_E_DIR_NOT_EMPTY = 0x8027003D
  1412. COPYENGINE_E_FAT_MAX_IN_ROOT = 0x8027003E
  1413. COPYENGINE_E_ACCESSDENIED_READONLY = 0x8027003F
  1414. COPYENGINE_E_REDIRECTED_TO_WEBPAGE = 0x80270040
  1415. COPYENGINE_E_SERVER_BAD_FILE_TYPE = 0x80270041
  1416. FOLDERID_NetworkFolder = "{D20BEEC4-5CA8-4905-AE3B-BF251EA09B53}"
  1417. FOLDERID_ComputerFolder = "{0AC0837C-BBF8-452A-850D-79D08E667CA7}"
  1418. FOLDERID_InternetFolder = "{4D9F7874-4E0C-4904-967B-40B0D20C3E4B}"
  1419. FOLDERID_ControlPanelFolder = "{82A74AEB-AEB4-465C-A014-D097EE346D63}"
  1420. FOLDERID_PrintersFolder = "{76FC4E2D-D6AD-4519-A663-37BD56068185}"
  1421. FOLDERID_SyncManagerFolder = "{43668BF8-C14E-49B2-97C9-747784D784B7}"
  1422. FOLDERID_SyncSetupFolder = "{0F214138-B1D3-4a90-BBA9-27CBC0C5389A}"
  1423. FOLDERID_ConflictFolder = "{4bfefb45-347d-4006-a5be-ac0cb0567192}"
  1424. FOLDERID_SyncResultsFolder = "{289a9a43-be44-4057-a41b-587a76d7e7f9}"
  1425. FOLDERID_RecycleBinFolder = "{B7534046-3ECB-4C18-BE4E-64CD4CB7D6AC}"
  1426. FOLDERID_ConnectionsFolder = "{6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD}"
  1427. FOLDERID_Fonts = "{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}"
  1428. FOLDERID_Desktop = "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"
  1429. FOLDERID_Startup = "{B97D20BB-F46A-4C97-BA10-5E3608430854}"
  1430. FOLDERID_Programs = "{A77F5D77-2E2B-44C3-A6A2-ABA601054A51}"
  1431. FOLDERID_StartMenu = "{625B53C3-AB48-4EC1-BA1F-A1EF4146FC19}"
  1432. FOLDERID_Recent = "{AE50C081-EBD2-438A-8655-8A092E34987A}"
  1433. FOLDERID_SendTo = "{8983036C-27C0-404B-8F08-102D10DCFD74}"
  1434. FOLDERID_Documents = "{FDD39AD0-238F-46AF-ADB4-6C85480369C7}"
  1435. FOLDERID_Favorites = "{1777F761-68AD-4D8A-87BD-30B759FA33DD}"
  1436. FOLDERID_NetHood = "{C5ABBF53-E17F-4121-8900-86626FC2C973}"
  1437. FOLDERID_PrintHood = "{9274BD8D-CFD1-41C3-B35E-B13F55A758F4}"
  1438. FOLDERID_Templates = "{A63293E8-664E-48DB-A079-DF759E0509F7}"
  1439. FOLDERID_CommonStartup = "{82A5EA35-D9CD-47C5-9629-E15D2F714E6E}"
  1440. FOLDERID_CommonPrograms = "{0139D44E-6AFE-49F2-8690-3DAFCAE6FFB8}"
  1441. FOLDERID_CommonStartMenu = "{A4115719-D62E-491D-AA7C-E74B8BE3B067}"
  1442. FOLDERID_PublicDesktop = "{C4AA340D-F20F-4863-AFEF-F87EF2E6BA25}"
  1443. FOLDERID_ProgramData = "{62AB5D82-FDC1-4DC3-A9DD-070D1D495D97}"
  1444. FOLDERID_CommonTemplates = "{B94237E7-57AC-4347-9151-B08C6C32D1F7}"
  1445. FOLDERID_PublicDocuments = "{ED4824AF-DCE4-45A8-81E2-FC7965083634}"
  1446. FOLDERID_RoamingAppData = "{3EB685DB-65F9-4CF6-A03A-E3EF65729F3D}"
  1447. FOLDERID_LocalAppData = "{F1B32785-6FBA-4FCF-9D55-7B8E7F157091}"
  1448. FOLDERID_LocalAppDataLow = "{A520A1A4-1780-4FF6-BD18-167343C5AF16}"
  1449. FOLDERID_InternetCache = "{352481E8-33BE-4251-BA85-6007CAEDCF9D}"
  1450. FOLDERID_Cookies = "{2B0F765D-C0E9-4171-908E-08A611B84FF6}"
  1451. FOLDERID_History = "{D9DC8A3B-B784-432E-A781-5A1130A75963}"
  1452. FOLDERID_System = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}"
  1453. FOLDERID_SystemX86 = "{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}"
  1454. FOLDERID_Windows = "{F38BF404-1D43-42F2-9305-67DE0B28FC23}"
  1455. FOLDERID_Profile = "{5E6C858F-0E22-4760-9AFE-EA3317B67173}"
  1456. FOLDERID_Pictures = "{33E28130-4E1E-4676-835A-98395C3BC3BB}"
  1457. FOLDERID_ProgramFilesX86 = "{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}"
  1458. FOLDERID_ProgramFilesCommonX86 = "{DE974D24-D9C6-4D3E-BF91-F4455120B917}"
  1459. FOLDERID_ProgramFilesX64 = "{6D809377-6AF0-444b-8957-A3773F02200E}"
  1460. FOLDERID_ProgramFilesCommonX64 = "{6365D5A7-0F0D-45e5-87F6-0DA56B6A4F7D}"
  1461. FOLDERID_ProgramFiles = "{905e63b6-c1bf-494e-b29c-65b732d3d21a}"
  1462. FOLDERID_ProgramFilesCommon = "{F7F1ED05-9F6D-47A2-AAAE-29D317C6F066}"
  1463. FOLDERID_UserProgramFiles = "{5cd7aee2-2219-4a67-b85d-6c9ce15660cb}"
  1464. FOLDERID_UserProgramFilesCommon = "{bcbd3057-ca5c-4622-b42d-bc56db0ae516}"
  1465. FOLDERID_AdminTools = "{724EF170-A42D-4FEF-9F26-B60E846FBA4F}"
  1466. FOLDERID_CommonAdminTools = "{D0384E7D-BAC3-4797-8F14-CBA229B392B5}"
  1467. FOLDERID_Music = "{4BD8D571-6D19-48D3-BE97-422220080E43}"
  1468. FOLDERID_Videos = "{18989B1D-99B5-455B-841C-AB7C74E4DDFC}"
  1469. FOLDERID_Ringtones = "{C870044B-F49E-4126-A9C3-B52A1FF411E8}"
  1470. FOLDERID_PublicPictures = "{B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5}"
  1471. FOLDERID_PublicMusic = "{3214FAB5-9757-4298-BB61-92A9DEAA44FF}"
  1472. FOLDERID_PublicVideos = "{2400183A-6185-49FB-A2D8-4A392A602BA3}"
  1473. FOLDERID_PublicRingtones = "{E555AB60-153B-4D17-9F04-A5FE99FC15EC}"
  1474. FOLDERID_ResourceDir = "{8AD10C31-2ADB-4296-A8F7-E4701232C972}"
  1475. FOLDERID_LocalizedResourcesDir = "{2A00375E-224C-49DE-B8D1-440DF7EF3DDC}"
  1476. FOLDERID_CommonOEMLinks = "{C1BAE2D0-10DF-4334-BEDD-7AA20B227A9D}"
  1477. FOLDERID_CDBurning = "{9E52AB10-F80D-49DF-ACB8-4330F5687855}"
  1478. FOLDERID_UserProfiles = "{0762D272-C50A-4BB0-A382-697DCD729B80}"
  1479. FOLDERID_Playlists = "{DE92C1C7-837F-4F69-A3BB-86E631204A23}"
  1480. FOLDERID_SamplePlaylists = "{15CA69B3-30EE-49C1-ACE1-6B5EC372AFB5}"
  1481. FOLDERID_SampleMusic = "{B250C668-F57D-4EE1-A63C-290EE7D1AA1F}"
  1482. FOLDERID_SamplePictures = "{C4900540-2379-4C75-844B-64E6FAF8716B}"
  1483. FOLDERID_SampleVideos = "{859EAD94-2E85-48AD-A71A-0969CB56A6CD}"
  1484. FOLDERID_PhotoAlbums = "{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}"
  1485. FOLDERID_Public = "{DFDF76A2-C82A-4D63-906A-5644AC457385}"
  1486. FOLDERID_ChangeRemovePrograms = "{df7266ac-9274-4867-8d55-3bd661de872d}"
  1487. FOLDERID_AppUpdates = "{a305ce99-f527-492b-8b1a-7e76fa98d6e4}"
  1488. FOLDERID_AddNewPrograms = "{de61d971-5ebc-4f02-a3a9-6c82895e5c04}"
  1489. FOLDERID_Downloads = "{374DE290-123F-4565-9164-39C4925E467B}"
  1490. FOLDERID_PublicDownloads = "{3D644C9B-1FB8-4f30-9B45-F670235F79C0}"
  1491. FOLDERID_SavedSearches = "{7d1d3a04-debb-4115-95cf-2f29da2920da}"
  1492. FOLDERID_QuickLaunch = "{52a4f021-7b75-48a9-9f6b-4b87a210bc8f}"
  1493. FOLDERID_Contacts = "{56784854-C6CB-462b-8169-88E350ACB882}"
  1494. FOLDERID_SidebarParts = "{A75D362E-50FC-4fb7-AC2C-A8BEAA314493}"
  1495. FOLDERID_SidebarDefaultParts = "{7B396E54-9EC5-4300-BE0A-2482EBAE1A26}"
  1496. FOLDERID_PublicGameTasks = "{DEBF2536-E1A8-4c59-B6A2-414586476AEA}"
  1497. FOLDERID_GameTasks = "{054FAE61-4DD8-4787-80B6-090220C4B700}"
  1498. FOLDERID_SavedGames = "{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}"
  1499. FOLDERID_Games = "{CAC52C1A-B53D-4edc-92D7-6B2E8AC19434}"
  1500. FOLDERID_SEARCH_MAPI = "{98ec0e18-2098-4d44-8644-66979315a281}"
  1501. FOLDERID_SEARCH_CSC = "{ee32e446-31ca-4aba-814f-a5ebd2fd6d5e}"
  1502. FOLDERID_Links = "{bfb9d5e0-c6a9-404c-b2b2-ae6db6af4968}"
  1503. FOLDERID_UsersFiles = "{f3ce0f7c-4901-4acc-8648-d5d44b04ef8f}"
  1504. FOLDERID_UsersLibraries = "{A302545D-DEFF-464b-ABE8-61C8648D939B}"
  1505. FOLDERID_SearchHome = "{190337d1-b8ca-4121-a639-6d472d16972a}"
  1506. FOLDERID_OriginalImages = "{2C36C0AA-5812-4b87-BFD0-4CD0DFB19B39}"
  1507. FOLDERID_DocumentsLibrary = "{7b0db17d-9cd2-4a93-9733-46cc89022e7c}"
  1508. FOLDERID_MusicLibrary = "{2112AB0A-C86A-4ffe-A368-0DE96E47012E}"
  1509. FOLDERID_PicturesLibrary = "{A990AE9F-A03B-4e80-94BC-9912D7504104}"
  1510. FOLDERID_VideosLibrary = "{491E922F-5643-4af4-A7EB-4E7A138D8174}"
  1511. FOLDERID_RecordedTVLibrary = "{1A6FDBA2-F42D-4358-A798-B74D745926C5}"
  1512. FOLDERID_HomeGroup = "{52528A6B-B9E3-4add-B60D-588C2DBA842D}"
  1513. FOLDERID_HomeGroupCurrentUser = "{9B74B6A3-0DFD-4f11-9E78-5F7800F2E772}"
  1514. FOLDERID_DeviceMetadataStore = "{5CE4A5E9-E4EB-479D-B89F-130C02886155}"
  1515. FOLDERID_Libraries = "{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}"
  1516. FOLDERID_PublicLibraries = "{48daf80b-e6cf-4f4e-b800-0e69d84ee384}"
  1517. FOLDERID_UserPinned = "{9e3995ab-1f9c-4f13-b827-48b24b6c7174}"
  1518. FOLDERID_ImplicitAppShortcuts = "{bcb5256f-79f6-4cee-b725-dc34e402fd46}"
  1519. FOLDERID_AccountPictures = "{008ca0b1-55b4-4c56-b8a8-4de4b299d3be}"
  1520. FOLDERID_PublicUserTiles = "{0482af6c-08f1-4c34-8c90-e17ec98b1e17}"
  1521. FOLDERID_AppsFolder = "{1e87508d-89c2-42f0-8a7e-645a0f50ca58}"
  1522. FOLDERID_StartMenuAllPrograms = "{F26305EF-6948-40B9-B255-81453D09C785}"
  1523. FOLDERID_CommonStartMenuPlaces = "{A440879F-87A0-4F7D-B700-0207B966194A}"
  1524. FOLDERID_ApplicationShortcuts = "{A3918781-E5F2-4890-B3D9-A7E54332328C}"
  1525. FOLDERID_RoamingTiles = "{00BCFC5A-ED94-4e48-96A1-3F6217F21990}"
  1526. FOLDERID_RoamedTileImages = "{AAA8D5A5-F1D6-4259-BAA8-78E7EF60835E}"
  1527. FOLDERID_Screenshots = "{b7bede81-df94-4682-a7d8-57a52620b86f}"
  1528. FOLDERID_CameraRoll = "{AB5FB87B-7CE2-4F83-915D-550846C9537B}"
  1529. FOLDERID_SkyDrive = "{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}"
  1530. FOLDERID_OneDrive = "{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}"
  1531. FOLDERID_SkyDriveDocuments = "{24D89E24-2F19-4534-9DDE-6A6671FBB8FE}"
  1532. FOLDERID_SkyDrivePictures = "{339719B5-8C47-4894-94C2-D8F77ADD44A6}"
  1533. FOLDERID_SkyDriveMusic = "{C3F2459E-80D6-45DC-BFEF-1F769F2BE730}"
  1534. FOLDERID_SkyDriveCameraRoll = "{767E6811-49CB-4273-87C2-20F355E1085B}"
  1535. FOLDERID_SearchHistory = "{0D4C3DB6-03A3-462F-A0E6-08924C41B5D4}"
  1536. FOLDERID_SearchTemplates = "{7E636BFE-DFA9-4D5E-B456-D7B39851D8A9}"
  1537. FOLDERID_CameraRollLibrary = "{2B20DF75-1EDA-4039-8097-38798227D5B7}"
  1538. FOLDERID_SavedPictures = "{3B193882-D3AD-4eab-965A-69829D1FB59F}"
  1539. FOLDERID_SavedPicturesLibrary = "{E25B5812-BE88-4bd9-94B0-29233477B6C3}"
  1540. FOLDERID_RetailDemo = "{12D4C69E-24AD-4923-BE19-31321C43A767}"
  1541. FOLDERID_Device = "{1C2AC1DC-4358-4B6C-9733-AF21156576F0}"
  1542. FOLDERID_DevelopmentFiles = "{DBE8E08E-3053-4BBC-B183-2A7B2B191E59}"
  1543. FOLDERID_Objects3D = "{31C0DD25-9439-4F12-BF41-7FF4EDA38722}"
  1544. FOLDERID_AppCaptures = "{EDC0FE71-98D8-4F4A-B920-C8DC133CB165}"
  1545. FOLDERID_LocalDocuments = "{f42ee2d3-909f-4907-8871-4c22fc0bf756}"
  1546. FOLDERID_LocalPictures = "{0ddd015d-b06c-45d5-8c4c-f59713854639 }"
  1547. FOLDERID_LocalVideos = "{35286a68-3c57-41a1-bbb1-0eae73d76c95}"
  1548. FOLDERID_LocalMusic = "{a0c69a99-21c8-4671-8703-7934162fcf1d}"
  1549. FOLDERID_LocalDownloads = "{7d83ee9b-2244-4e70-b1f5-5393042af1e4}"
  1550. FOLDERID_RecordedCalls = "{2f8b40c2-83ed-48ee-b383-a1f157ec6f9a}"
  1551. KF_FLAG_DEFAULT = 0x00000000
  1552. KF_FLAG_FORCE_APP_DATA_REDIRECTION = 0x00080000
  1553. KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET = 0x00040000
  1554. KF_FLAG_FORCE_PACKAGE_REDIRECTION = 0x00020000
  1555. KF_FLAG_NO_PACKAGE_REDIRECTION = 0x00010000
  1556. KF_FLAG_FORCE_APPCONTAINER_REDIRECTION = 0x00020000
  1557. KF_FLAG_NO_APPCONTAINER_REDIRECTION = 0x00010000
  1558. KF_FLAG_CREATE = 0x00008000
  1559. KF_FLAG_DONT_VERIFY = 0x00004000
  1560. KF_FLAG_DONT_UNEXPAND = 0x00002000
  1561. KF_FLAG_NO_ALIAS = 0x00001000
  1562. KF_FLAG_INIT = 0x00000800
  1563. KF_FLAG_DEFAULT_PATH = 0x00000400
  1564. KF_FLAG_NOT_PARENT_RELATIVE = 0x00000200
  1565. KF_FLAG_SIMPLE_IDLIST = 0x00000100
  1566. KF_FLAG_ALIAS_ONLY = 0x80000000