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.

52 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. --*/
  4. #ifndef _PDEV_H
  5. #define _PDEV_H
  6. // NTRAID#NTBUG9-553896-2002/03/19-yasuho-: mandatory changes
  7. #include <minidrv.h>
  8. #include <stdio.h>
  9. #include <prcomoem.h>
  10. #include <strsafe.h>
  11. #include "lgcomp.h"
  12. #define VALID_PDEVOBJ(pdevobj) \
  13. ((pdevobj) && (pdevobj)->dwSize >= sizeof(DEVOBJ) && \
  14. (pdevobj)->hEngine && (pdevobj)->hPrinter && \
  15. (pdevobj)->pPublicDM && (pdevobj)->pDrvProcs )
  16. #define ASSERT_VALID_PDEVOBJ(pdevobj) \
  17. ASSERT(VALID_PDEVOBJ(pdevobj))
  18. // Debug text.
  19. #define ERRORTEXT(s) "ERROR " s
  20. //
  21. // OEM Signature and version.
  22. //
  23. #define OEM_SIGNATURE 'LGGD' // LG GDI x00 series dll
  24. #define DLLTEXT(s) "LGGD: " s
  25. #define OEM_VERSION 0x00010000L
  26. ////////////////////////////////////////////////////////
  27. // OEM UD Type Defines
  28. ////////////////////////////////////////////////////////
  29. typedef struct tag_OEMUD_EXTRADATA {
  30. OEM_DMEXTRAHEADER dmExtraHdr;
  31. // Private extention
  32. INT bComp;
  33. } OEMUD_EXTRADATA, *POEMUD_EXTRADATA;
  34. extern BOOL BInitOEMExtraData(POEMUD_EXTRADATA pOEMExtra);
  35. extern BMergeOEMExtraData(POEMUD_EXTRADATA pdmIn, POEMUD_EXTRADATA pdmOut);
  36. #endif // _PDEV_H