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.

77 lines
1.8 KiB

  1. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright 1997, 1998 Microsoft Corporation. All Rights Reserved.
  7. // Copyright (C) 1999 NEC Technologies, Inc. All Rights Reserved.
  8. //
  9. // FILE: OEMPS.H
  10. //
  11. //
  12. // PURPOSE: Define common data types, and external function prototypes
  13. // for debug.cpp.
  14. //
  15. // PLATFORMS:
  16. // Windows NT
  17. //
  18. //
  19. #ifndef _OEMPS_H
  20. #define _OEMPS_H
  21. //#include "OEM.H"
  22. //#include "DEVMODE.H"
  23. #define NEC_DOCNAME_BUF_LEN 256
  24. ////////////////////////////////////////////////////////
  25. // OEM Defines
  26. ////////////////////////////////////////////////////////
  27. //#define DLLTEXT(s) __TEXT("OEMPS: ") __TEXT(s)
  28. //#define ERRORTEXT(s) __TEXT("ERROR ") DLLTEXT(s)
  29. ///////////////////////////////////////////////////////
  30. // Warning: the following enum order must match the
  31. // order in OEMHookFuncs[].
  32. ///////////////////////////////////////////////////////
  33. typedef enum tag_Hooks {
  34. UD_DrvStartDoc,
  35. UD_DrvEndDoc,
  36. MAX_DDI_HOOKS,
  37. } ENUMHOOKS;
  38. typedef struct _OEMPDEV {
  39. //
  40. // define whatever needed, such as working buffers, tracking information,
  41. // etc.
  42. //
  43. // This test DLL hooks out every drawing DDI. So it needs to remember
  44. // PS's hook function pointer so it call back.
  45. //
  46. PFN pfnPS[MAX_DDI_HOOKS];
  47. //
  48. // define whatever needed, such as working buffers, tracking information,
  49. // etc.
  50. //
  51. char *szDocName;
  52. PWSTR pPrinterName; /* MMM */
  53. DWORD dwReserved[1];
  54. } OEMPDEV, *POEMPDEV;
  55. #endif