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.

84 lines
3.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : thunk1632.c //
  3. // //
  4. // DESCRIPTION : Thunk script for 16 to 32 thunk calls //
  5. // This file declares all the types used in the thunk - // //
  6. // prototypes included by it. //
  7. // This file is preprocessed and its output is the thunk //
  8. // script compiled by the thunk compiler. //
  9. // //
  10. // AUTHOR : DanL. //
  11. // //
  12. // HISTORY : //
  13. // Oct 19 1999 DannyL Creation. //
  14. // //
  15. // Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #define _THUNK
  18. enablemapdirect1632 = true; // Creates 16->32 thunks.
  19. win31compat = true;
  20. ///////////////////////////////////////////////////////////////////////////////////////
  21. // windows.h
  22. typedef unsigned char BYTE,*PBYTE,*LPBYTE;
  23. typedef char *LPSTR,*LPCSTR,CHAR;
  24. typedef unsigned long *LPDWORD,DWORD;
  25. typedef unsigned short WORD,*LPWORD;
  26. typedef void VOID,*PVOID,*LPVOID;
  27. typedef WORD HWND;
  28. ///////////////////////////////////////////////////////////////////////////////////////
  29. // wingdi.h
  30. #define CCHDEVICENAME 32
  31. #define CCHFORMNAME 32
  32. typedef struct _devicemode
  33. {
  34. BYTE dmDeviceName[CCHDEVICENAME];
  35. WORD dmSpecVersion;
  36. WORD dmDriverVersion;
  37. WORD dmSize;
  38. WORD dmDriverExtra;
  39. DWORD dmFields;
  40. short dmOrientation;
  41. short dmPaperSize;
  42. short dmPaperLength;
  43. short dmPaperWidth;
  44. short dmScale;
  45. short dmCopies;
  46. short dmDefaultSource;
  47. short dmPrintQuality;
  48. short dmColor;
  49. short dmDuplex;
  50. short dmYResolution;
  51. short dmTTOption;
  52. short dmCollate;
  53. BYTE dmFormName[CCHFORMNAME];
  54. WORD dmLogPixels;
  55. DWORD dmBitsPerPel;
  56. DWORD dmPelsWidth;
  57. DWORD dmPelsHeight;
  58. DWORD dmDisplayFlags;
  59. DWORD dmDisplayFrequency;
  60. DWORD dmICMMethod;
  61. DWORD dmICMIntent;
  62. DWORD dmMediaType;
  63. DWORD dmDitherType;
  64. DWORD dmReserved1;
  65. DWORD dmReserved2;
  66. } DEVMODE, *PDEVMODE, *LPDEVMODE;
  67. typedef struct _DOCINFOA {
  68. short cbSize;
  69. LPCSTR lpszDocName;
  70. LPCSTR lpszOutput;
  71. LPCSTR lpszDatatype;
  72. DWORD fwType;
  73. } DOCINFO, *LPDOCINFO;
  74. /////////////////////////////////////////////////////////////////////////////////////////
  75. // faxdrv32 thunks
  76. #include "faxdrv32.h"