Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

505 lines
11 KiB

  1. ifndef _INC_PIF
  2. _INC_PIF EQU 1
  3. PIFNAMESIZE EQU 30
  4. PIFSTARTLOCSIZE EQU 63
  5. PIFDEFPATHSIZE EQU 64
  6. PIFPARAMSSIZE EQU 64
  7. PIFSHPROGSIZE EQU 64
  8. PIFSHDATASIZE EQU 64
  9. PIFDEFFILESIZE EQU 80
  10. ifndef LF_FACESIZE
  11. LF_FACESIZE EQU 32
  12. endif
  13. LARGEST_GROUP EQU SIZE STDPIF
  14. OPENPROPS_NONE EQU 0000H
  15. OPENPROPS_RAWIO EQU 0001H
  16. GETPROPS_NONE EQU 0000H
  17. GETPROPS_RAWIO EQU 0001H
  18. GETPROPS_EXTENDED EQU 0004H
  19. SETPROPS_NONE EQU 0000H
  20. SETPROPS_RAWIO EQU 0001H
  21. SETPROPS_CACHE EQU 0002H
  22. SETPROPS_EXTENDED EQU 0004H
  23. FLUSHPROPS_NONE EQU 0000H
  24. FLUSHPROPS_DISCARD EQU 0001H
  25. CLOSEPROPS_NONE EQU 0000H
  26. CLOSEPROPS_DISCARD EQU 0001H
  27. LOADPROPLIB_DEFER EQU 0001H
  28. ifdef RECT
  29. _INC_WINDOWS EQU 1
  30. endif
  31. ifndef _INC_WINDOWS
  32. RECT struc
  33. rcLeft dw ?
  34. rcTop dw ?
  35. rcRight dw ?
  36. rcBottom dw ?
  37. RECT ends
  38. endif
  39. GROUP_PRG EQU 1
  40. PRG_DEFAULT EQU <(PRG_CLOSEONEXIT OR PRG_AUTOWINEXEC)>
  41. PRG_CLOSEONEXIT EQU 0001H
  42. PRG_AUTOWINEXEC EQU 0004H
  43. PRGINIT_DEFAULT EQU 0
  44. PRGINIT_MINIMIZED EQU 0001H
  45. PRGINIT_MAXIMIZED EQU 0002H
  46. PRGINIT_USEPIFICON EQU 0004H
  47. PRGINIT_REALMODE EQU 0008H
  48. PRGINIT_NOPIF EQU 1000H
  49. PRGINIT_DEFAULTPIF EQU 2000H
  50. ICONFILE_DEFAULT EQU <"PIFMGR.DLL">
  51. ICONINDEX_DEFAULT EQU 0
  52. PROPPRG STRUC
  53. flPrg DW ?
  54. flPrgInit DW ?
  55. achTitle DB PIFNAMESIZE DUP (?)
  56. achCmdLine DB PIFSTARTLOCSIZE DUP (?)
  57. achWorkDir DB PIFDEFPATHSIZE DUP (?)
  58. wHotKey DW ?
  59. rgbReserved DB 6 DUP (?)
  60. achIconFile DB PIFDEFFILESIZE DUP (?)
  61. wIconIndex DW ?
  62. achPIFFile DB PIFDEFFILESIZE DUP (?)
  63. PROPPRG ENDS
  64. GROUP_TSK EQU 2
  65. TSK_DEFAULT EQU <(TSK_BACKGROUND)>
  66. TSK_ALLOWCLOSE EQU 0001H
  67. TSK_BACKGROUND EQU 0002H
  68. TSK_EXCLUSIVE EQU 0004H
  69. TSK_FAKEBOOST EQU 0008H
  70. TSK_NOWARNTERMINATE EQU 0010H
  71. TSK_NOSCREENSAVER EQU 0020H
  72. TSKINIT_DEFAULT EQU 0
  73. TSKFGND_DEFAULT EQU 75
  74. TSKBGND_DEFAULT EQU 25
  75. TSKFGND_OLD_DEFAULT EQU 100
  76. TSKBGND_OLD_DEFAULT EQU 50
  77. TSKBOOSTTIME_MIN EQU 0
  78. TSKBOOSTTIME_DEFAULT EQU 1
  79. TSKBOOSTTIME_MAX EQU 5000
  80. TSKIDLEDELAY_MIN EQU 0
  81. TSKIDLEDELAY_DEFAULT EQU 500
  82. TSKIDLEDELAY_MAX EQU 5000
  83. TSKIDLESENS_DEFAULT EQU 50
  84. PROPTSK STRUC
  85. flTsk DW ?
  86. flTskInit DW ?
  87. iFgndBoost DW ?
  88. iBgndBoost DW ?
  89. msKeyBoostTime DW ?
  90. msKeyIdleDelay DW ?
  91. wIdleSensitivity DW ?
  92. PROPTSK ENDS
  93. GROUP_VID EQU 3
  94. VID_DEFAULT EQU <(VID_TEXTEMULATE OR VID_FULLSCREENGRFX OR VID_AUTOSUSPEND)>
  95. VID_TEXTEMULATE EQU 0001H
  96. VID_TEXTTRAP EQU 0002H
  97. VID_LOGRFXTRAP EQU 0004H
  98. VID_HIGRFXTRAP EQU 0008H
  99. VID_RETAINMEMORY EQU 0080H
  100. VID_FULLSCREEN EQU 0100H
  101. VID_FULLSCREENGRFX EQU 0200H
  102. VIDINIT_DEFAULT EQU 0
  103. VIDMODE_DEFAULT EQU <VIDMODE_TEXT>
  104. VIDMODE_TEXT EQU 1
  105. VIDMODE_LOGRFX EQU 2
  106. VIDMODE_HIGRFX EQU 3
  107. VIDSCROLLFREQ_MIN EQU 1
  108. VIDSCROLLFREQ_DEFAULT EQU 2
  109. VIDSCROLLFREQ_MAX EQU 25
  110. VIDUPDATEFREQ_MIN EQU 10
  111. VIDUPDATEFREQ_DEFAULT EQU 50
  112. VIDUPDATEFREQ_MAX EQU 5000
  113. VIDSCREENLINES_MIN EQU 0
  114. VIDSCREENLINES_DEFAULT EQU 0
  115. PROPVID STRUC
  116. flVid DW ?
  117. flVidInit DW ?
  118. iVidMode DW ?
  119. cScrollFreq DW ?
  120. msUpdateFreq DW ?
  121. cScreenLines DW ?
  122. abTextColorRemap DB 16 DUP (?)
  123. PROPVID ENDS
  124. GROUP_MEM EQU 4
  125. MEM_DEFAULT EQU 0
  126. MEMINIT_DEFAULT EQU 0
  127. MEMINIT_NOHMA EQU 0001H
  128. MEMINIT_LOWLOCKED EQU 0002H
  129. MEMINIT_EMSLOCKED EQU 0004H
  130. MEMINIT_XMSLOCKED EQU 0008H
  131. MEMINIT_GLOBALPROTECT EQU 0010H
  132. MEMINIT_STRAYPTRDETECT EQU 0020H
  133. MEMLOW_MIN_MIN EQU 0FFFFH
  134. MEMLOW_MIN_DEFAULT EQU 0
  135. MEMLOW_MIN_MAX EQU 640
  136. MEMLOW_MAX_MIN EQU 0FFFFH
  137. MEMLOW_MAX_DEFAULT EQU 0FFFFH
  138. MEMLOW_MAX_MAX EQU 640
  139. MEMEMS_MIN_MIN EQU 0
  140. MEMEMS_MIN_DEFAULT EQU 0
  141. MEMEMS_MIN_MAX EQU 16384
  142. MEMEMS_MAX_MIN EQU 0FFFFH
  143. MEMEMS_MAX_DEFAULT EQU 1024
  144. MEMEMS_MAX_MAX EQU 16384
  145. MEMXMS_MIN_MIN EQU 0
  146. MEMXMS_MIN_DEFAULT EQU 0
  147. MEMXMS_MIN_MAX EQU 16384
  148. MEMXMS_MAX_MIN EQU 0FFFFH
  149. MEMXMS_MAX_DEFAULT EQU 1024
  150. MEMXMS_MAX_MAX EQU 16384
  151. PROPMEM STRUC
  152. flMem DW ?
  153. flMemInit DW ?
  154. wMinLow DW ?
  155. wMaxLow DW ?
  156. wMinEMS DW ?
  157. wMaxEMS DW ?
  158. wMinXMS DW ?
  159. wMaxXMS DW ?
  160. PROPMEM ENDS
  161. GROUP_KBD EQU 5
  162. KBD_DEFAULT EQU <(KBD_FASTPASTE)>
  163. KBD_FASTPASTE EQU 0001H
  164. KBD_NOALTTAB EQU 0020H
  165. KBD_NOALTESC EQU 0040H
  166. KBD_NOALTSPACE EQU 0080H
  167. KBD_NOALTENTER EQU 0100H
  168. KBD_NOALTPRTSC EQU 0200H
  169. KBD_NOPRTSC EQU 0400H
  170. KBD_NOCTRLESC EQU 0800H
  171. KBDINIT_DEFAULT EQU 0
  172. KBDALTDELAY_MIN EQU 1
  173. KBDALTDELAY_DEFAULT EQU 5
  174. KBDALTDELAY_MAX EQU 5000
  175. KBDALTPASTEDELAY_MIN EQU 1
  176. KBDALTPASTEDELAY_DEFAULT EQU 25
  177. KBDALTPASTEDELAY_MAX EQU 5000
  178. KBDPASTEDELAY_MIN EQU 1
  179. KBDPASTEDELAY_DEFAULT EQU 3
  180. KBDPASTEDELAY_MAX EQU 5000
  181. KBDPASTEFULLDELAY_MIN EQU 1
  182. KBDPASTEFULLDELAY_DEFAULT EQU 200
  183. KBDPASTEFULLDELAY_MAX EQU 5000
  184. KBDPASTETIMEOUT_MIN EQU 1
  185. KBDPASTETIMEOUT_DEFAULT EQU 1000
  186. KBDPASTETIMEOUT_MAX EQU 5000
  187. KBDPASTESKIP_MIN EQU 1
  188. KBDPASTESKIP_DEFAULT EQU 2
  189. KBDPASTESKIP_MAX EQU 100
  190. KBDPASTECRSKIP_MIN EQU 1
  191. KBDPASTECRSKIP_DEFAULT EQU 10
  192. KBDPASTECRSKIP_MAX EQU 100
  193. PROPKBD STRUC
  194. flKbd DW ?
  195. flKbdInit DW ?
  196. msAltDelay DW ?
  197. msAltPasteDelay DW ?
  198. msPasteDelay DW ?
  199. msPasteFullDelay DW ?
  200. msPasteTimeout DW ?
  201. cPasteSkip DW ?
  202. cPasteCRSkip DW ?
  203. PROPKBD ENDS
  204. GROUP_MSE EQU 6
  205. MSE_DEFAULT EQU <(MSE_WINDOWENABLE)>
  206. MSE_WINDOWENABLE EQU 0001H
  207. MSE_EXCLUSIVE EQU 0002H
  208. MSEINIT_DEFAULT EQU 0
  209. PROPMSE STRUC
  210. flMse DW ?
  211. flMseInit DW ?
  212. PROPMSE ENDS
  213. GROUP_TMR EQU 7
  214. TMR_DEFAULT EQU 0
  215. TMR_TRAPTMRPORTS EQU 0001H
  216. TMR_FULLBGNDTICKS EQU 0002H
  217. TMR_BURSTMODE EQU 0004H
  218. TMR_PATCHEOI EQU 0008H
  219. TMRINIT_DEFAULT EQU 0
  220. TMRBURSTDELAY_MIN EQU 0
  221. TMRBURSTDELAY_DEFAULT EQU 0
  222. TMRBURSTDELAY_MAX EQU 100
  223. PROPTMR STRUC
  224. flTmr DW ?
  225. flTmrInit DW ?
  226. wBurstDelay DW ?
  227. PROPTMR ENDS
  228. PROPTMREXT STRUC
  229. tmrData DB SIZE PROPTMR DUP (?)
  230. msIntFreq DW ?
  231. wExecPercent DW ?
  232. PROPTMREXT ENDS
  233. GROUP_FNT EQU 11
  234. FNT_DEFAULT EQU <(FNT_BOTHFONTS)>
  235. FNT_RASTERFONTS EQU 0004H
  236. FNT_TTFONTS EQU 0008H
  237. FNT_BOTHFONTS EQU (FNT_RASTERFONTS OR FNT_TTFONTS)
  238. FNT_AUTOSIZE EQU 0010H
  239. FNT_RASTER EQU 0400H
  240. FNT_TT EQU 0800H
  241. FNT_FONTMASK EQU (FNT_BOTHFONTS)
  242. FNT_FONTMASKBITS EQU 2
  243. FNTINIT_DEFAULT EQU 0
  244. FNTINIT_NORESTORE EQU 0001H
  245. PROPFNT STRUC
  246. flFnt DW ?
  247. flFntInit DW ?
  248. cxFont DW ?
  249. cyFont DW ?
  250. cxFontActual DW ?
  251. cyFontActual DW ?
  252. achRasterFaceName DB LF_FACESIZE DUP (?)
  253. achTTFaceName DB LF_FACESIZE DUP (?)
  254. ifdef JAPAN
  255. wCharSet DW ?
  256. endif
  257. PROPFNT ENDS
  258. GROUP_WIN EQU 12
  259. WIN_DEFAULT EQU <(WIN_SAVESETTINGS)>
  260. WIN_SAVESETTINGS EQU 0001H
  261. WIN_TOOLBAR EQU 0002H
  262. WININIT_DEFAULT EQU 0
  263. WININIT_NORESTORE EQU 0001H
  264. PROPWIN STRUC
  265. flWin DW ?
  266. flWinInit DW ?
  267. cxCells DW ?
  268. cyCells DW ?
  269. cxClient DW ?
  270. cyClient DW ?
  271. cxWindow DW ?
  272. cyWindow DW ?
  273. ifdef WPF_SETMINPOSITION
  274. wp DB SIZE WINDOWPLACEMENT DUP (?)
  275. else
  276. wLength DW ?
  277. wShowFlags DW ?
  278. wShowCmd DW ?
  279. xMinimize DW ?
  280. yMinimize DW ?
  281. xMaximize DW ?
  282. yMaximize DW ?
  283. rcNormal DB SIZE RECT DUP (?)
  284. endif
  285. PROPWIN ENDS
  286. GROUP_ENV EQU 13
  287. ENV_DEFAULT EQU 0
  288. ENVINIT_DEFAULT EQU <(ENVINIT_INSTRUCTIONS)>
  289. ENVINIT_INSTRUCTIONS EQU 0001H
  290. ENVSIZE_MIN EQU 0
  291. ENVSIZE_DEFAULT EQU 0
  292. ENVSIZE_MAX EQU 4096
  293. PROPENV STRUC
  294. flEnv DW ?
  295. flEnvInit DW ?
  296. achBatchFile DB PIFDEFFILESIZE DUP (?)
  297. cbEnvironment DW ?
  298. ifdef JAPAN
  299. wCodePage DW ?
  300. wInitCodePage DW ?
  301. endif
  302. PROPENV ENDS
  303. MAX_GROUP EQU 0FFH
  304. MAX_VALID_GROUP EQU GROUP_ENV
  305. EXT_GROUP_QUERY EQU 100H
  306. EXT_GROUP_UPDATE EQU 200H
  307. PIFEXTSIGSIZE EQU 16
  308. MAX_GROUP_NAME EQU PIFEXTSIGSIZE
  309. STDHDRSIG EQU <"MICROSOFT PIFEX">
  310. LASTHDRPTR EQU 0FFFFH
  311. W286HDRSIG30 EQU <"WINDOWS 286 3.0">
  312. W386HDRSIG30 EQU <"WINDOWS 386 3.0">
  313. WENHHDRSIG40 EQU <"WINDOWS PIF.402">
  314. WENHICOSIG001 EQU <"WINDOWS ICO.001">
  315. PIFEXTHDR STRUC
  316. extsig DB PIFEXTSIGSIZE DUP (?)
  317. extnxthdrfloff DW ?
  318. extfileoffset DW ?
  319. extsizebytes DW ?
  320. PIFEXTHDR ENDS
  321. fResident EQU 01H
  322. fGraphics EQU 02H
  323. fNoSwitch EQU 04H
  324. fNoGrab EQU 08H
  325. fDestroy EQU 10H
  326. fCOM2 EQU 40H
  327. fCOM1 EQU 80H
  328. MEMMASK EQU fResident
  329. GRAPHMASK EQU fGraphics
  330. TEXTMASK EQU ((NOT GRAPHMASK))
  331. PSMASK EQU fNoSwitch
  332. SGMASK EQU fNoGrab
  333. EXITMASK EQU fDestroy
  334. COM2MASK EQU fCOM2
  335. COM1MASK EQU fCOM1
  336. fScreen EQU 80H
  337. fForeground EQU 40H
  338. f8087 EQU 20H
  339. fKeyboard EQU 10H
  340. SCRMASK EQU (fScreen+fForeground)
  341. MASK8087 EQU f8087
  342. KEYMASK EQU fKeyboard
  343. SWAPMASK EQU 20H
  344. PARMMASK EQU 40H
  345. STDPIF STRUC
  346. unknown DB ?
  347. id DB ?
  348. appname DB PIFNAMESIZE DUP (?)
  349. maxmem DW ?
  350. minmem DW ?
  351. startfile DB PIFSTARTLOCSIZE DUP (?)
  352. MSflags DB ?
  353. reserved DB ?
  354. defpath DB PIFDEFPATHSIZE DUP (?)
  355. params DB PIFPARAMSSIZE DUP (?)
  356. screen DB ?
  357. cPages DB ?
  358. lowVector DB ?
  359. highVector DB ?
  360. rows DB ?
  361. cols DB ?
  362. rowoff DB ?
  363. coloff DB ?
  364. sysmem DW ?
  365. shprog DB PIFSHPROGSIZE DUP (?)
  366. shdata DB PIFSHDATASIZE DUP (?)
  367. behavior DB ?
  368. sysflags DB ?
  369. STDPIF ENDS
  370. fALTTABdis286 EQU 0001H
  371. fALTESCdis286 EQU 0002H
  372. fALTPRTSCdis286 EQU 0004H
  373. fPRTSCdis286 EQU 0008H
  374. fCTRLESCdis286 EQU 0010H
  375. fNoSaveVid286 EQU 0020H
  376. fCOM3_286 EQU 4000H
  377. fCOM4_286 EQU 8000H
  378. W286PIF30 STRUC
  379. PfMaxXmsK DW ?
  380. PfMinXmsK DW ?
  381. PfW286Flags DW ?
  382. W286PIF30 ENDS
  383. fEnableClose EQU 00000001H
  384. fEnableCloseBit EQU 0
  385. fBackground EQU 00000002H
  386. fBackgroundBit EQU 1
  387. fExclusive EQU 00000004H
  388. fExclusiveBit EQU 2
  389. fFullScreen EQU 00000008H
  390. fFullScreenBit EQU 3
  391. fALTTABdis EQU 00000020H
  392. fALTTABdisBit EQU 5
  393. fALTESCdis EQU 00000040H
  394. fALTESCdisBit EQU 6
  395. fALTSPACEdis EQU 00000080H
  396. fALTSPACEdisBit EQU 7
  397. fALTENTERdis EQU 00000100H
  398. fALTENTERdisBit EQU 8
  399. fALTPRTSCdis EQU 00000200H
  400. fALTPRTSCdisBit EQU 9
  401. fPRTSCdis EQU 00000400H
  402. fPRTSCdisBit EQU 10
  403. fCTRLESCdis EQU 00000800H
  404. fCTRLESCdisBit EQU 11
  405. fPollingDetect EQU 00001000H
  406. fPollingDetectBit EQU 12
  407. fNoHMA EQU 00002000H
  408. fNoHMABit EQU 13
  409. fHasHotKey EQU 00004000H
  410. fHasHotKeyBit EQU 14
  411. fEMSLocked EQU 00008000H
  412. fEMSLockedBit EQU 15
  413. fXMSLocked EQU 00010000H
  414. fXMSLockedBit EQU 16
  415. fINT16Paste EQU 00020000H
  416. fINT16PasteBit EQU 17
  417. fVMLocked EQU 00040000H
  418. fVMLockedBit EQU 18
  419. fGlobalProtect EQU 00080000H
  420. fGlobalProtectBit EQU 19
  421. fMinimized EQU 00100000H
  422. fMinimizedBit EQU 20
  423. fMaximized EQU 00200000H
  424. fMaximizedBit EQU 21
  425. fRealMode EQU 00800000H
  426. fRealModeBit EQU 23
  427. fDisAutoWinExec EQU 01000000H
  428. fDisAutoWinExecBit EQU 24
  429. fStrayPtrDetect EQU 02000000H
  430. fStrayPtrDetectBit EQU 25
  431. fVDDMask EQU 0000FFFFH
  432. fVDDMinBit EQU 0
  433. fVDDMaxBit EQU 15
  434. fVidTxtEmulate EQU 00000001H
  435. fVidTxtEmulateBit EQU 0
  436. fVidNoTrpTxt EQU 00000002H
  437. fVidNoTrpTxtBit EQU 1
  438. fVidNoTrpLRGrfx EQU 00000004H
  439. fVidNoTrpLRGrfxBit EQU 2
  440. fVidNoTrpHRGrfx EQU 00000008H
  441. fVidNoTrpHRGrfxBit EQU 3
  442. fVidTextMd EQU 00000010H
  443. fVidTextMdBit EQU 4
  444. fVidLowRsGrfxMd EQU 00000020H
  445. fVidLowRsGrfxMdBit EQU 5
  446. fVidHghRsGrfxMd EQU 00000040H
  447. fVidHghRsGrfxMdBit EQU 6
  448. fVidRetainAllo EQU 00000080H
  449. fVidRetainAlloBit EQU 7
  450. PifDescMask EQU (fALTTABdis+fALTESCdis+fALTSPACEdis+fALTENTERdis+fALTPRTSCdis+fPRTSCdis+fCTRLESCdis+fPollingDetect+fNoHMA+fHasHotKey+fEMSLocked+fXMSLocked+fINT16Paste+fVMLocked)
  451. W386PIF30 STRUC
  452. PfW386maxmem DW ?
  453. PfW386minmem DW ?
  454. PfFPriority DW ?
  455. PfBPriority DW ?
  456. PfMaxEMMK DW ?
  457. PfMinEMMK DW ?
  458. PfMaxXmsK DW ?
  459. PfMinXmsK DW ?
  460. PfW386Flags DD ?
  461. PfW386Flags2 DD ?
  462. PfHotKeyScan DW ?
  463. PfHotKeyShVal DW ?
  464. PfHotKeyShMsk DW ?
  465. PfHotKeyVal DB ?
  466. PfHotKeyPad DB 9 DUP (?)
  467. PfW386params DB PIFPARAMSSIZE DUP (?)
  468. W386PIF30 ENDS
  469. HVM_ASSOCIATION EQU 1
  470. HWND_ASSOCIATION EQU 2
  471. SHEETTYPE_SIMPLE EQU 0
  472. SHEETTYPE_ADVANCED EQU 1
  473. ORD_OPENPROPERTIES EQU 2
  474. ORD_GETPROPERTIES EQU 3
  475. ORD_SETPROPERTIES EQU 4
  476. ORD_EDITPROPERTIES EQU 5
  477. ORD_FLUSHPROPERTIES EQU 6
  478. ORD_ENUMPROPERTIES EQU 7
  479. ORD_ASSOCIATEPROPERTIES EQU 8
  480. ORD_CLOSEPROPERTIES EQU 9
  481. ORD_LOADPROPERTYLIB EQU 10
  482. ORD_ENUMPROPERTYLIBS EQU 11
  483. ORD_FREEPROPERTYLIB EQU 12
  484. ORD_ADDPROPERTYSHEET EQU 13
  485. ORD_REMOVEPROPERTYSHEET EQU 14
  486. ORD_LOADPROPERTYSHEETS EQU 15
  487. ORD_ENUMPROPERTYSHEETS EQU 16
  488. ORD_FREEPROPERTYSHEETS EQU 17
  489. endif