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.

47 lines
1019 B

  1. /*++
  2. Copyright (C) 1997 - 1999 Microsoft Corporation
  3. --*/
  4. #ifndef _PDEV_H
  5. #define _PDEV_H
  6. #include <minidrv.h>
  7. //
  8. // Debug text.
  9. //
  10. #define ERRORTEXT(s) __TEXT("ERROR ") DLLTEXT(s)
  11. #define TESTSTRING "Callback for Declasers."
  12. typedef struct tag_OEMUD_EXTRADATA {
  13. OEM_DMEXTRAHEADER dmExtraHdr;
  14. BYTE cbTestString[sizeof(TESTSTRING)];
  15. } OEMUD_EXTRADATA, *POEMUD_EXTRADATA;
  16. //
  17. // OEM Signature and version.
  18. //
  19. #define OEM_SIGNATURE 'OKI9' // LG GDI x00 series dll
  20. #define DLLTEXT(s) __TEXT("OKI9RES: ") __TEXT(s)
  21. #define OEM_VERSION 0x00010000L
  22. //
  23. // Warning: the following enum order must match the order in OEMHookFuncs[].
  24. //
  25. //
  26. // Memory allocation
  27. //
  28. #define MemAlloc(size) ((PVOID) LocalAlloc(LMEM_FIXED, (size)))
  29. #define MemAllocZ(size) ((PVOID) LocalAlloc(LPTR, (size)))
  30. #define MemFree(p) { if (p) LocalFree((HLOCAL) (p)); }
  31. #ifdef DBG
  32. #define DebugMsg
  33. #else
  34. #define DebugMsg
  35. #endif
  36. #endif