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.

91 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: struct16.hxx
  7. //
  8. // Contents: 16-bit structures for use in 32-bit code
  9. //
  10. // History: 01-Mar-94 DrewB Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef __STRUCT16_HXX__
  14. #define __STRUCT16_HXX__
  15. #pragma pack(2)
  16. typedef struct tagRECT16
  17. {
  18. SHORT left;
  19. SHORT top;
  20. SHORT right;
  21. SHORT bottom;
  22. } RECT16;
  23. typedef RECT16 UNALIGNED FAR *LPRECT16;
  24. typedef struct tagFORMATETC16
  25. {
  26. CLIPFORMAT cfFormat;
  27. VPVOID ptd;
  28. DWORD dwAspect;
  29. LONG lindex;
  30. DWORD tymed;
  31. } FORMATETC16;
  32. typedef FORMATETC16 UNALIGNED FAR* LPFORMATETC16;
  33. typedef struct tagOIFI16
  34. {
  35. WORD cb;
  36. WORD fMDIApp;
  37. HAND16 hwndFrame;
  38. HAND16 haccel;
  39. SHORT cAccelEntries;
  40. } OIFI16;
  41. typedef OIFI16 UNALIGNED FAR* LPOIFI16;
  42. typedef struct tagSTATDATA16
  43. { // field used by:
  44. FORMATETC16 formatetc; // EnumAdvise, EnumData (cache),
  45. // EnumFormats
  46. DWORD advf; // EnumAdvise, EnumData (cache)
  47. VPVOID pAdvSink; // EnumAdvise
  48. DWORD dwConnection; // EnumAdvise
  49. } STATDATA16;
  50. typedef STATDATA16 UNALIGNED FAR * LPSTATDATA16;
  51. typedef struct tagMSG16
  52. {
  53. HWND16 hwnd;
  54. WORD message;
  55. WORD wParam;
  56. LONG lParam;
  57. DWORD time;
  58. ULONG pt;
  59. } MSG16;
  60. typedef MSG16 UNALIGNED FAR *LPMSG16;
  61. typedef struct tagSIZE16
  62. {
  63. SHORT cx;
  64. SHORT cy;
  65. } SIZE16;
  66. typedef struct tagMETAFILEPICT16
  67. {
  68. SHORT mm;
  69. SHORT xExt;
  70. SHORT yExt;
  71. HMETAFILE16 hMF;
  72. } METAFILEPICT16;
  73. typedef struct tagINTERFACEINFO16
  74. {
  75. VPVOID pUnk;
  76. IID iid;
  77. WORD wMethod;
  78. } INTERFACEINFO16;
  79. #pragma pack()
  80. #endif // #ifndef __STRUCT16_HXX__