Source code of Windows XP (NT5)
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.

66 lines
1.1 KiB

  1. /******************************************************************************
  2. *
  3. * Copyright (c) 1999 Microsoft Corporation
  4. *
  5. * Module Name:
  6. * Common.h
  7. *
  8. * Abstract:
  9. * This file common ring0 / ring3 definitions
  10. *
  11. * Revision History:
  12. * Kanwaljit S Marok ( kmarok ) 05/17/99
  13. * created
  14. *
  15. *****************************************************************************/
  16. #ifndef _COMMON_H_
  17. #define _COMMON_H_
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. //
  22. // Include for required definitions ...
  23. //
  24. #ifdef RING3
  25. #include <nt.h>
  26. #include <ntrtl.h>
  27. #include <nturtl.h>
  28. #include <windows.h>
  29. #include <stdio.h>
  30. #include <string.h>
  31. #define ALLOCATE(a) LocalAlloc( LPTR, a )
  32. #define FREE(a) LocalFree( a )
  33. #endif
  34. typedef __int64 INT64;
  35. #define PATH_SEPARATOR_STR "\\"
  36. #define PATH_SEPARATOR_CHAR '\\'
  37. #define ALL_FILES_WILDCARD "*.*"
  38. #define FILE_EXT_WCHAR L'.'
  39. #define FILE_EXT_CHAR '.'
  40. #define MAX_DRIVES 26
  41. enum NODE_TYPE
  42. {
  43. NODE_TYPE_UNKNOWN = 0,
  44. NODE_TYPE_INCLUDE = 1,
  45. NODE_TYPE_EXCLUDE = 2
  46. };
  47. #include "ppath.h"
  48. #include "blob.h"
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif // _COMMON_H_