Source code of Windows XP (NT5)
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.

198 lines
4.9 KiB

  1. /*++ BUILD Version: 0001
  2. *
  3. * WOW v1.0
  4. *
  5. * Copyright (c) 1993, Microsoft Corporation
  6. *
  7. * WOWCMDLG.H
  8. * 16-bit Commdlg API argument structures
  9. *
  10. * History:
  11. * John Vert (jvert) 30-Dec-1992
  12. * Created
  13. --*/
  14. //#include <windows.h>
  15. //#include <winsock.h>
  16. /* XLATOFF */
  17. #pragma pack(2)
  18. /* XLATON */
  19. /*++
  20. *
  21. * Commdlg data structures
  22. *
  23. --*/
  24. typedef struct _FINDREPLACE16 { /* fr16 */
  25. DWORD lStructSize;
  26. HWND16 hwndOwner;
  27. HAND16 hInstance;
  28. DWORD Flags;
  29. VPSZ lpstrFindWhat;
  30. VPSZ lpstrReplaceWith;
  31. WORD wFindWhatLen;
  32. WORD wReplaceWithLen;
  33. LONG lCustData;
  34. VPPROC lpfnHook;
  35. VPCSTR lpTemplateName;
  36. } FINDREPLACE16;
  37. typedef FINDREPLACE16 UNALIGNED *PFINDREPLACE16;
  38. typedef VPVOID VPFINDREPLACE;
  39. typedef struct _OPENFILENAME16 { /* of16 */
  40. DWORD lStructSize;
  41. HWND16 hwndOwner;
  42. HAND16 hInstance;
  43. VPCSTR lpstrFilter;
  44. VPSZ lpstrCustomFilter;
  45. DWORD nMaxCustFilter;
  46. DWORD nFilterIndex;
  47. VPSZ lpstrFile;
  48. DWORD nMaxFile;
  49. VPSZ lpstrFileTitle;
  50. DWORD nMaxFileTitle;
  51. VPCSTR lpstrInitialDir;
  52. VPCSTR lpstrTitle;
  53. DWORD Flags;
  54. USHORT nFileOffset;
  55. USHORT nFileExtension;
  56. VPCSTR lpstrDefExt;
  57. LONG lCustData;
  58. VPPROC lpfnHook;
  59. VPCSTR lpTemplateName;
  60. } OPENFILENAME16;
  61. typedef OPENFILENAME16 UNALIGNED *POPENFILENAME16;
  62. typedef VPVOID VPOPENFILENAME;
  63. typedef struct _CHOOSECOLORDATA16 { /* cc16 */
  64. DWORD lStructSize;
  65. HWND16 hwndOwner;
  66. HAND16 hInstance;
  67. DWORD rgbResult;
  68. VPDWORD lpCustColors;
  69. DWORD Flags;
  70. LONG lCustData;
  71. VPPROC lpfnHook;
  72. VPCSTR lpTemplateName;
  73. } CHOOSECOLORDATA16;
  74. typedef CHOOSECOLORDATA16 UNALIGNED *PCHOOSECOLORDATA16;
  75. typedef VPVOID VPCHOOSECOLORDATA;
  76. typedef struct _CHOOSEFONTDATA16 { /* cf16 */
  77. DWORD lStructSize;
  78. HWND16 hwndOwner;
  79. HDC16 hDC;
  80. VPLOGFONT16 lpLogFont;
  81. SHORT iPointSize;
  82. DWORD Flags;
  83. DWORD rgbColors;
  84. LONG lCustData;
  85. VPPROC lpfnHook;
  86. VPCSTR lpTemplateName;
  87. HAND16 hInstance;
  88. VPSZ lpszStyle;
  89. WORD nFontType;
  90. SHORT nSizeMin;
  91. SHORT nSizeMax;
  92. } CHOOSEFONTDATA16;
  93. typedef CHOOSEFONTDATA16 UNALIGNED *PCHOOSEFONTDATA16;
  94. typedef VPVOID VPCHOOSEFONTDATA;
  95. typedef struct _PRINTDLGDATA16 { /* pd16 */
  96. DWORD lStructSize;
  97. HWND16 hwndOwner;
  98. HAND16 hDevMode;
  99. HAND16 hDevNames;
  100. HDC16 hDC;
  101. DWORD Flags;
  102. WORD nFromPage;
  103. WORD nToPage;
  104. WORD nMinPage;
  105. WORD nMaxPage;
  106. WORD nCopies;
  107. HAND16 hInstance;
  108. LONG lCustData;
  109. VPPROC lpfnPrintHook;
  110. VPPROC lpfnSetupHook;
  111. VPCSTR lpPrintTemplateName;
  112. VPCSTR lpSetupTemplateName;
  113. HAND16 hPrintTemplate;
  114. HAND16 hSetupTemplate;
  115. } PRINTDLGDATA16;
  116. typedef PRINTDLGDATA16 UNALIGNED *PPRINTDLGDATA16;
  117. typedef VPVOID VPPRINTDLGDATA;
  118. typedef struct _DEVNAMES16 { /* dn16 */
  119. WORD wDriverOffset;
  120. WORD wDeviceOffset;
  121. WORD wOutputOffset;
  122. WORD wDefault;
  123. } DEVNAMES16;
  124. typedef DEVNAMES16 UNALIGNED *PDEVNAMES16;
  125. typedef VPVOID VPDEVNAMES;
  126. /*++
  127. *
  128. * Commdlg API IDs (equal to ordinal numbers)
  129. *
  130. --*/
  131. #define FUN_GETOPENFILENAME 1
  132. #define FUN_GETSAVEFILENAME 2
  133. #define FUN_CHOOSECOLOR 5
  134. #define FUN_FINDTEXT 11
  135. #define FUN_REPLACETEXT 12
  136. #define FUN_CHOOSEFONT 15
  137. #define FUN_PRINTDLG 20
  138. #define FUN_WOWCOMMDLGEXTENDEDERROR 26
  139. #define FUN_GETFILETITLE 27
  140. /*++
  141. Commdlg function prototypes - the seemingly unimportant number in the
  142. comment on each function MUST match the ones in the list above!!!
  143. !! BE WARNED !!
  144. --*/
  145. typedef struct _GETOPENFILENAME16 { /* cd1 */
  146. VPOPENFILENAME lpof;
  147. } GETOPENFILENAME16;
  148. typedef GETOPENFILENAME16 UNALIGNED *PGETOPENFILENAME16;
  149. typedef struct _GETSAVEFILENAME16 { /* cd2 */
  150. VPOPENFILENAME lpcf;
  151. } GETSAVEFILENAME16;
  152. typedef GETSAVEFILENAME16 UNALIGNED *PGETSAVEFILENAME16;
  153. typedef struct _CHOOSECOLOR16 { /* cd5 */
  154. VPCHOOSECOLORDATA lpcc;
  155. } CHOOSECOLOR16;
  156. typedef CHOOSECOLOR16 UNALIGNED *PCHOOSECOLOR16;
  157. typedef struct _FINDTEXT16 { /* cd11 */
  158. VPFINDREPLACE lpfr;
  159. } FINDTEXT16;
  160. typedef FINDTEXT16 UNALIGNED *PFINDTEXT16;
  161. typedef struct _REPLACETEXT16 { /* cd12 */
  162. VPFINDREPLACE lpfr;
  163. } REPLACETEXT16;
  164. typedef REPLACETEXT16 UNALIGNED *PREPLACETEXT16;
  165. typedef struct _CHOOSEFONT16 { /* cd15 */
  166. VPCHOOSEFONTDATA lpcf;
  167. } CHOOSEFONT16;
  168. typedef CHOOSEFONT16 UNALIGNED *PCHOOSEFONT16;
  169. typedef struct _PRINTDLG16 { /* cd20 */
  170. VPPRINTDLGDATA lppd;
  171. } PRINTDLG16;
  172. typedef PRINTDLG16 UNALIGNED *PPRINTDLG16;
  173. /* XLATOFF */
  174. #pragma pack()
  175. /* XLATON */
  176.