home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / win32asm.exe / Win32ASM / ASMInc / Win32Strs.equ < prev    next >
Encoding:
Text File  |  1997-09-02  |  19.6 KB  |  461 lines

  1. ; Various Windows structures.
  2. ;  19.JUN.96 : Philippe Auphelle.
  3. ;       Mostly derived from 03-14-1996 Sven B. Schreiber sbs@orgon.com
  4.  
  5. ; $Id: Win32Strs.equ 1.1 1997/09/02 09:51:15 Philippe Exp $
  6.  
  7. ; $Log: /Win32Equ/Win32Strs.equ $
  8. ; 1     18/09/97 14:24 Philippe
  9. ; Initial checkin into SourceSafe.
  10. ; Revision 1.1  1997/09/02 09:51:15  Philippe
  11. ; Initial revision
  12. ;
  13.  
  14.  
  15.  
  16. ;==============================================================================
  17. ;
  18. ;    STRUCTURES
  19. ;
  20. ;==============================================================================
  21.  
  22.  
  23. ;------------------------------------------------------------------------------
  24.  
  25. DLGTEMPLATE     macro _dtStyle, _dtItems, _dtX, _dtY, _dtCX, _dtCY, _dtText
  26. _ADDR_          = $
  27.                 DWORD _dtStyle, 0
  28.                 WORD _dtItems
  29.                 WORD _dtX, _dtY, _dtCX, _dtCY
  30.                 WORD 0
  31.                 WORD 0
  32.                 WSTRING <_dtText/0>
  33.                   if ($-_ADDR_) and 2
  34.                   WORD 0
  35.                   endif
  36.                endm
  37.  
  38. ;------------------------------------------------------------------------------
  39. ;
  40. DLGITEMTEMPLATE macro _ditStyle, _ditX, _ditY, _ditCX, _ditCY,\
  41.                       _ditId, _ditClass, _ditText, _ditResId
  42. ;
  43. _ADDR_          = $
  44.                 DWORD _ditStyle, 0
  45.                 WORD _ditX, _ditY, _ditCX, _ditCY
  46.                 WORD _ditId
  47.                 WORD -1, _ditClass
  48.                   ifb <_ditResId>
  49.                   WSTRING <_ditText/0>
  50.                   else
  51.                   WORD _ditText, _ditResId
  52.                   endif
  53.                 WORD 0
  54.                   if ($-_ADDR_) and 2
  55.                   WORD 0
  56.                   endif
  57.                 endm
  58.  
  59.  
  60.  
  61. BITMAPFILEHEADER STRUCT DWORD
  62. bfType          WORD 0                  ;file type
  63. bfSize          DWORD 0                 ;file size
  64. bfReserved1     WORD 0                  ;(reserved)
  65. bfReserved2     WORD 0                  ;(reserved)
  66. bfOffBits       DWORD 0                 ;data offset
  67. BITMAPFILEHEADER ends
  68.  
  69. ;------------------------------------------------------------------------------
  70.  
  71. BITMAPINFOHEADER STRUCT DWORD
  72. biSize          DWORD 0                 ;structure size
  73. biWidth         LONG 0                  ;bitmap width
  74. biHeight        LONG 0                  ;bitmap height
  75. biPlanes        WORD 0                  ;number of color planes
  76. biBitCount      WORD 0                  ;number of bits per pixel
  77. biCompression   DWORD 0                 ;compression type
  78. biSizeImage     DWORD 0                 ;number of data bytes
  79. biXPelsPerMeter LONG 0                  ;horizontal resolution
  80. biYPelsPerMeter LONG 0                  ;vertical resolution
  81. biClrUsed       DWORD 0                 ;number of used colors
  82. biClrImportant  DWORD 0                 ;number of important colors
  83. BITMAPINFOHEADER ends
  84.  
  85. ;------------------------------------------------------------------------------
  86.  
  87. BITMAP       STRUCT DWORD
  88. bmType       LONG 0                     ;bitmap type
  89. bmWidth      LONG 0                     ;bitmap width
  90. bmHeight     LONG 0                     ;bitmap height
  91. bmWidthBytes LONG 0                     ;bytes per scan line
  92. bmPlanes     WORD 0                     ;number of color planes
  93. bmBitsPixel  WORD 0                     ;number of bits per pixel
  94. bmBits       LPVOID 0                   ;data pointer
  95. BITMAP       ends
  96.  
  97. ;------------------------------------------------------------------------------
  98.  
  99. COPYDATASTRUCT  STRUCT DWORD
  100. dwData          DWORD 0                 ;32-bit data
  101. cbData          DWORD 0                 ;number of data bytes
  102. lpData          PVOID 0                 ;data bytes
  103. COPYDATASTRUCT  ends
  104.  
  105. ;------------------------------------------------------------------------------
  106.  
  107. CONTEXT         STRUCT DWORD
  108. cx_ContextFlags DWORD 0                 ;context flags
  109. ; CONTEXT_DEBUG_REGISTERS
  110. cx_Dr0          DWORD 0                 ;debug register #0
  111. cx_Dr1          DWORD 0                 ;debug register #1
  112. cx_Dr2          DWORD 0                 ;debug register #2
  113. cx_Dr3          DWORD 0                 ;debug register #3
  114. cx_Dr6          DWORD 0                 ;debug register #6
  115. cx_Dr7          DWORD 0                 ;debug register #7
  116. ; CONTEXT_FLOATING_POINT
  117. cx_ControlWord  DWORD 0                 ;fpu context
  118. cx_StatusWord   DWORD 0
  119. cx_TagWord      DWORD 0
  120. cx_ErrorOffset  DWORD 0
  121. cx_ErrorSelector DWORD 0
  122. cx_DataOffset   DWORD 0
  123. cx_DataSelector DWORD 0
  124. cx_RegisterArea BYTE SIZE_OF_80387_REGISTERS dup (0)
  125. cx_Cr0NpxState  DWORD 0
  126. ; CONTEXT_SEGMENTS
  127. cx_SegGs        DWORD 0                 ;gs register
  128. cx_SegFs        DWORD 0                 ;fs register
  129. cx_SegEs        DWORD 0                 ;es register
  130. cx_SegDs        DWORD 0                 ;ds register
  131. ; CONTEXT_INTEGER
  132. cx_Edi          DWORD 0                 ;edi register
  133. cx_Esi          DWORD 0                 ;esi register
  134. cx_Ebx          DWORD 0                 ;ebx register
  135. cx_Edx          DWORD 0                 ;edx register
  136. cx_Ecx          DWORD 0                 ;ecx register
  137. cx_Eax          DWORD 0                 ;eax register
  138. ; CONTEXT_CONTROL
  139. cx_Ebp          DWORD 0                 ;ebp register
  140. cx_Eip          DWORD 0                 ;eip register
  141. cx_SegCs        DWORD 0                 ;cs register
  142. cx_EFlags       DWORD 0                 ;eflags register
  143. cx_Esp          DWORD 0                 ;esp register
  144. cx_SegSs        DWORD 0                 ;ss register
  145. CONTEXT         ends
  146.  
  147. ;------------------------------------------------------------------------------
  148.  
  149. DOCINFO STRUCT DWORD                    ;Used by StartDoc function
  150.     cbSize       DWORD SIZEOF DOCINFO   ;Size of this structure
  151.     lpszDocName  LPCSTR 0               ;Null-terminated name of document
  152.     lpszOutput   LPCSTR 0               ;Null-terminated name of output file
  153.     lpszDatatype LPCSTR 0               ;Win95: Null-terminated type of data.
  154.                                         ;NT: Ignored.
  155.     fwType       DWORD 0                ;Win95 Additional info about print job.
  156.                                         ;NT: Ignored.
  157. DOCINFO ends
  158.  
  159. ;------------------------------------------------------------------------------
  160.  
  161. DIALOGATTRIBUTES STRUCT DWORD
  162. Palette         DWORD 0                 ;palette pointer
  163. TextBox         DWORD 0                 ;text box list pointer
  164. DIALOGATTRIBUTES ends
  165.  
  166. ;------------------------------------------------------------------------------
  167.  
  168. DIALOGPALETTE   STRUCT DWORD
  169. DlgText      COLORREF  0                ;dialog text color
  170. DlgBk        COLORREF  0                ;dialog background color
  171. StaticText   COLORREF  0                ;static text color
  172. StaticBk     COLORREF  0                ;static background color
  173. TextBoxText  COLORREF  0                ;text box text color
  174. TextBoxBk    COLORREF  0                ;text box background color
  175. EditText     COLORREF  0                ;edit text color
  176. EditBk       COLORREF  0                ;edit background color
  177. ListBoxText  COLORREF  0                ;list box text color
  178. ListBoxBk    COLORREF  0                ;list box background color
  179. DIALOGPALETTE   ends
  180.  
  181. ;------------------------------------------------------------------------------
  182.  
  183. DIALOGRECORD    STRUCT DWORD
  184. hWnd            HWND 0                  ;dialog window handle
  185. fModeless       BOOL FALSE              ;mode flag
  186. Attributes      DWORD 0                 ;dialog window attributes list
  187. Data            DWORD 0                 ;dialog data
  188. hDlgBrush       HBRUSH 0                ;dialog brush handle
  189. hStaticBrush    HBRUSH 0                ;static brush handle
  190. hTextBoxBrush   HBRUSH 0                ;text box brush handle
  191. hEditBrush      HBRUSH 0                ;edit brush handle
  192. hListBoxBrush   HBRUSH 0                ;list box brush handle
  193. DIALOGRECORD    ends
  194.  
  195. ;------------------------------------------------------------------------------
  196.  
  197. POINT           STRUCT DWORD
  198. x               LONGINT 0               ;x coordinate
  199. y               LONGINT 0               ;y coordinate
  200. POINT           ends
  201.  
  202.  
  203. ;------------------------------------------------------------------------------
  204.  
  205. MINMAXINFO STRUCT DWORD
  206. ptReserved      POINT <>                ;Reserved. Do not use.
  207. ptMaxSize       POINT <>                ;Maximized width and height of window
  208. ptMaxPosition   POINT <>                ;Left/Top position of maximized window
  209. ptMinTrackSize  POINT <>                ;Min tracking width and height of win
  210. ptMaxTrackSize  POINT <>                ;Max tracking width and height of win
  211. MINMAXINFO ends
  212.  
  213. ;------------------------------------------------------------------------------
  214.  
  215. MSG STRUCT DWORD
  216. hwnd            HWND 0                  ;window handle
  217. message         UINT 0                  ;message id
  218. wParam          WPARAM 0                ;additional parameter
  219. lParam          LPARAM 0                ;additional parameter
  220. time            DWORD  0                ;time stamp
  221. x               LONGINT 0               ;x coordinate
  222. y               LONGINT 0               ;y coordinate
  223. MSG             ends
  224.  
  225. ;------------------------------------------------------------------------------
  226.  
  227. NETRESOURCE     STRUCT DWORD
  228. dwScope         DWORD 0                 ;resource scope
  229. dwType          DWORD 0                 ;resource type
  230. dwDisplayType   DWORD 0                 ;display type
  231. dwUsage         DWORD 0                 ;resource usage
  232. lpLocalName     LPSTR 0                 ;redirected local device
  233. lpRemoteName    LPSTR 0                 ;remote name
  234. lpComment       LPSTR 0                 ;provider supplied comment
  235. lpProvider      LPSTR 0                 ;name of provider
  236. NETRESOURCE     ends
  237.  
  238. ;------------------------------------------------------------------------------
  239.  
  240. NMHDR STRUCT DWORD
  241. hwndFrom        HWND 0                  ;Window handle of control sending msg
  242. idFrom          UINT 0                  ;ID of control sending msg
  243. code            UINT 0                  ;Notification code.
  244. NMHDR ends
  245.  
  246. ;------------------------------------------------------------------------------
  247.  
  248. OPENFILENAME    STRUCT DWORD
  249. lStructSize       DWORD SIZEOF OPENFILENAME ;number of bytes
  250. hwndOwner         HWND 0                ;dialog box owner
  251. hInstance         HINSTANCE 0           ;dialog box template id
  252. lpstrFilter       LPCSTR 0              ;filter strings
  253. lpstrCustomFilter LPSTR 0               ;user-defined filter stings
  254. nMaxCustFilter    DWORD 0               ;size of custom filter buffer
  255. nFilterIndex      DWORD 0               ;index into the filter buffer
  256. lpstrFile         LPSTR 0               ;default file name buffer
  257. nMaxFile          DWORD 0               ;size of the file name buffer
  258. lpstrFileTitle    LPSTR 0               ;file title buffer
  259. nMaxFileTitle     DWORD 0               ;size of the file title buffer
  260. lpstrInitialDir   LPCSTR 0              ;initial directory
  261. lpstrTitle        LPCSTR 0              ;dialog box title
  262. Flags             DWORD 0               ;dialog box creation flags
  263. nFileOffset       WORD 0                ;file name offset in lpstrFile
  264. nFileExtension    WORD 0                ;file ext offset in lpstrFile
  265. lpstrDefExt       LPCSTR 0              ;default extension
  266. lCustData         LPARAM 0              ;application-defined hook data
  267. lpfnHook          LPFN 0                ;hook function
  268. lpTemplateName    LPCSTR 0              ;dialog box template name
  269. OPENFILENAME    ends
  270.  
  271.  
  272. ;------------------------------------------------------------------------------
  273.  
  274. PRINTDLG          STRUCT DWORD
  275. lStructSize         DWORD SIZEOF PRINTDLG  ;Size of this structure
  276. hwndOwner           HWND 0              ;Handle of window owning dialog box
  277. hDevMode            HANDLE 0            ;Handle to DEVMOVE structure
  278. hDevNames           HANDLE 0            ;Handle to DEVNAMES structure
  279. hDC                 HDC 0               ;Handle to Dev Context or InfoCOntext
  280. Flags               DWORD 0             ;Flag for Print common dialog
  281. nFromPage           WORD 0              ;Starting page
  282. nToPage             WORD 0              ;Ending page
  283. nMinPage            WORD 0              ;Min value in page range
  284. nMaxPage            WORD 0              ;Max value in page range
  285. nCopies             WORD 0              ;Initial number of copies
  286. hInstance           HINSTANCE 0         ;Handle to print dialog box
  287. lCustData           DWORD 0             ;Custom data passed to hook proc.
  288. lpfnPrintHook       DWORD 0             ;Pointer to a print hook function
  289. lpfnSetupHook       DWORD 0             ;Pointer to a setup hook function
  290. lpPrintTemplateName LPCTSTR 0           ;Name of print dialog replacement
  291. lpSetupTemplateName LPCTSTR 0           ;Name of print setup replacement
  292. hPrintTemplate      HANDLE 0            ;Handle to print dialog template
  293. hSetupTemplate      HANDLE 0            ;Handle to print setup dialog template
  294. PRINTDLG          ends
  295.  
  296.  
  297.  
  298. ;------------------------------------------------------------------------------
  299.  
  300. PAINTSTRUCT     STRUCT DWORD
  301. hdc          HDC 0                      ;device context handle
  302. fErase       BOOL FALSE                 ;background erase flag
  303. leftPaint    LONGINT 0                  ;left margin of clipping rect
  304. topPaint     LONGINT 0                  ;top margin of clipping rect
  305. rightPaint   LONGINT 0                  ;right margin of clipping rect
  306. bottomPaint  LONGINT 0                  ;bottom margin of clipping rect
  307. fRestore     BOOL FALSE                 ;(reserved)
  308. fIncUpdate   BOOL FALSE                 ;(reserved)
  309. rgbReserved  BYTE 32 dup (0)            ;(reserved)
  310. PAINTSTRUCT     ends
  311.  
  312. ;------------------------------------------------------------------------------
  313.  
  314. RECT            STRUCT DWORD
  315. left            LONGINT 0               ;left margin
  316. top             LONGINT 0               ;top margin
  317. right           LONGINT 0               ;right margin
  318. bottom          LONGINT 0               ;bottom margin
  319. RECT            ends
  320.  
  321. RECTL           TEXTEQU <RECT>
  322.  
  323. SIZEL           STRUCT DWORD
  324. _cx             LONGINT ?
  325. cy              LONGINT ?
  326. SIZEL           ENDS
  327.  
  328. ;------------------------------------------------------------------------------
  329.  
  330. RGBQUAD         STRUCT DWORD
  331. rgbBlue         BYTE 0                  ;intensity of blue component
  332. rgbGreen        BYTE 0                  ;intensity of green component
  333. rgbRed          BYTE 0                  ;intensity of red component
  334. rgbReserved     BYTE 0                  ;(reserved)
  335. RGBQUAD         ends
  336.  
  337. ;------------------------------------------------------------------------------
  338.  
  339. SECURITY_ATTRIBUTES STRUCT DWORD
  340. sa_nLength              DWORD SIZEOF SECURITY_ATTRIBUTES ;structure size
  341. sa_lpSecurityDescriptor LPVOID 0        ;security descriptor
  342. sa_bInheritHandle       BOOL FALSE      ;handle inheritance flag
  343. SECURITY_ATTRIBUTES ends
  344.  
  345.  
  346. ;------------------------------------------------------------------------------
  347.  
  348. TBADDBITMAP     STRUCT DWORD
  349. hInst           HINSTANCE 0             ;resource module instance
  350. nID             UINT      0             ;resource id
  351. TBADDBITMAP     ends
  352.  
  353. ;------------------------------------------------------------------------------
  354.  
  355. TBBUTTON        STRUCT DWORD
  356. iBitmap         INTEGER 0               ;zero-based button image index
  357. idCommand       INTEGER 0               ;button command id
  358. fsState         BYTE 0                  ;button state flags
  359. fsStyle         BYTE 0                  ;button style
  360. bReserved       WORD 0                  ;(reserved)
  361. dwData          DWORD 0                 ;application defined value
  362. iString         INTEGER 0               ;zero-based button string index
  363. TBBUTTON        ends
  364.  
  365. ;------------------------------------------------------------------------------
  366.  
  367. TEXTMETRIC      STRUCT DWORD
  368. tmHeight           LONGINT 0            ;char height (ascent+descent)
  369. tmAscent           LONGINT 0            ;units above baseline
  370. tmDescent          LONGINT 0            ;units below baseline
  371. tmInternalLeading  LONGINT 0            ;space included in tmHeight
  372. tmExternalLeading  LONGINT 0            ;extra space between rows
  373. tmAveCharWidth     LONGINT 0            ;average character width ('x')
  374. tmMaxCharWidth     LONGINT 0            ;maximum character width
  375. tmWeight           LONGINT 0            ;font weight
  376. tmOverhang         LONGINT 0            ;italic flag
  377. tmDigitizedAspectX LONGINT 0            ;horizontal device aspect
  378. tmDigitizedAspectY LONGINT 0            ;vertical device aspect
  379. tmFirstChar        CHAR 0               ;first font character value
  380. tmLastChar         CHAR 0               ;last font character value
  381. tmDefaultChar      CHAR 0               ;default substitution character
  382. tmBreakChar        CHAR 0               ;word break character
  383. tmItalic           BYTE 0               ;italic font
  384. tmUnderlined       BYTE 0               ;underline font
  385. tmStruckOut        BYTE 0               ;strikeout font
  386. tmPitchAndFamily   BYTE 0               ;font pitch/family
  387. tmCharSet          BYTE 0               ;font character set
  388. TEXTMETRIC      ends
  389.  
  390. ;------------------------------------------------------------------------------
  391.  
  392. TOOLTIPTEXT     STRUCT DWORD
  393. hdr             NMHDR <>                ;NMHDR structure
  394. lpszText        LPTSTR 0                ;Pointer to text for a tool
  395. szText          CHAR 80 dup(0)          ;Tooltip text
  396. hInst           HINSTANCE 0             ;Handle of instance of string resource
  397. uFlags          UINT 0                  ;Interpret idFrom of NMHDR struct
  398. TOOLTIPTEXT     ends
  399.  
  400. ;------------------------------------------------------------------------------
  401.  
  402. WNDCLASS        STRUCT DWORD
  403. style           UINT 0                 ;class style
  404. lpfnWndProc     WNDPROC 0              ;window procedure
  405. cbClsExtra      INTEGER 0              ;class extra data
  406. cbWndExtra      INTEGER 0              ;window extra data
  407. hInstance       HINSTANCE 0            ;class owner
  408. hIcon           HICON 0                ;icon handle
  409. hCursor         HCURSOR 0              ;cursor handle
  410. hbrBackground   HBRUSH 0               ;background color
  411. lpszMenuName    LPCSTR 0               ;menu name
  412. lpszClassName   LPCSTR 0               ;class name
  413. WNDCLASS        ends
  414.  
  415. ;------------------------------------------------------------------------------
  416.  
  417. WNDPARAMETERS   STRUCT DWORD
  418. hWnd            HWND 0                  ;window handle
  419. FontId          DWORD 0                 ;font id
  420. TextColor       COLORREF 0              ;text color
  421. BkColor         COLORREF 0              ;background color
  422. BkMode          DWORD 0                 ;background mode
  423. WNDPARAMETERS   ends
  424.  
  425. ;==============================================================================
  426. ;
  427. ;    DDE STRUCTURES
  428. ;
  429. ;==============================================================================
  430.  
  431. DDEACK          STRUCT DWORD
  432. ddeack_Status   WORD 0                  ;status
  433. DDEACK          ends
  434.  
  435. ;------------------------------------------------------------------------------
  436.  
  437. DDEADVISE       STRUCT DWORD
  438. ddeadvise_Status   WORD 0               ;status
  439. ddeadvise_cfFormat WORD 0               ;clipboard data format
  440. DDEADVISE       ends
  441.  
  442. ;------------------------------------------------------------------------------
  443.  
  444. DDEDATA         STRUCT DWORD
  445. ddedata_Status   WORD 0                 ;status
  446. ddedata_cfFormat WORD 0                 ;clipboard data format
  447. ddedata_Value    BYTE 0                 ;data item
  448. DDEDATA         ends
  449.  
  450. ;------------------------------------------------------------------------------
  451.  
  452. DDEPOKE         STRUCT DWORD
  453. ddepoke_Status   WORD 0                 ;status
  454. ddepoke_cfFormat WORD 0                 ;clipboard data format
  455. ddepoke_Value    BYTE 0                 ;data item
  456. DDEPOKE         ends
  457.  
  458. ;==============================================================================
  459.  
  460.