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.

27 lines
745 B

  1. #ifndef _PDEV_H
  2. #define _PDEV_H
  3. #include <minidrv.h>
  4. #include <stdio.h>
  5. #include <prcomoem.h>
  6. #include <strsafe.h> // For privention of security isusues.
  7. #define VALID_PDEVOBJ(pdevobj) \
  8. ((pdevobj) && (pdevobj)->dwSize >= sizeof(DEVOBJ) && \
  9. (pdevobj)->hEngine && (pdevobj)->hPrinter && \
  10. (pdevobj)->pPublicDM && (pdevobj)->pDrvProcs && \
  11. (pdevobj)->pdevOEM )
  12. #define ASSERT_VALID_PDEVOBJ(pdevobj) ASSERT(VALID_PDEVOBJ(pdevobj))
  13. //
  14. // OEM Signature and version.
  15. //
  16. #define OEM_SIGNATURE 'EPAG' // EPSPN ESC/Page series dll
  17. // #define DLLTEXT(s) __TEXT("EPAG: ") __TEXT(s)
  18. #define DLLTEXT(s) "EPAG: " s
  19. #define OEM_VERSION 0x00010000L
  20. #endif // _PDEV_H