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.

48 lines
1.3 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-2003 Microsoft Corporation. All Rights Reserved.
  7. //
  8. // FILE: TTYUD.H
  9. //
  10. //
  11. // PURPOSE: Define common data types, and external function prototypes
  12. // for TTYUD kernel mode Module.
  13. //
  14. // PLATFORMS:
  15. // Windows 2000, Windows XP, Windows Server 2003
  16. //
  17. //
  18. #ifndef _TTYUD_H
  19. #define _TTYUD_H
  20. ////////////////////////////////////////////////////////
  21. // TTY UD Defines
  22. ////////////////////////////////////////////////////////
  23. extern DWORD gdwDrvMemPoolTag;
  24. #define MemAlloc(size) EngAllocMem(0, size, gdwDrvMemPoolTag)
  25. #define MemAllocZ(size) EngAllocMem(FL_ZERO_MEMORY, size, gdwDrvMemPoolTag)
  26. #define MemFree(p) { if (p) EngFreeMem(p); }
  27. ////////////////////////////////////////////////////////
  28. // TTY UD Type Defines
  29. ////////////////////////////////////////////////////////
  30. ////////////////////////////////////////////////////////
  31. // TTY UD Prototypes
  32. ////////////////////////////////////////////////////////
  33. #endif