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.

66 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. cmnhdr.h
  5. Abstract:
  6. common header class for the SAC session project
  7. Author:
  8. Brian Guarraci (briangu), 2001
  9. Revision History:
  10. --*/
  11. #if !defined ( _CMNHDR_H_ )
  12. #define _CMNHDR_H_
  13. #pragma warning(disable:4127) // condition expression is constant
  14. #include <nt.h>
  15. #include <ntrtl.h>
  16. #include <nturtl.h>
  17. #include <windows.h>
  18. #include <Shlwapi.h>
  19. // Windows Version Build Option
  20. #ifdef _WIN32_WINNT
  21. #undef _WIN32_WINNT
  22. #endif
  23. #define _WIN32_WINNT 0x0500
  24. // Force all EXEs/DLLs to use STRICT type checking
  25. #ifndef STRICT
  26. #define STRICT
  27. #endif
  28. // Unicode Build Option
  29. #ifndef UNICODE
  30. #define UNICODE
  31. #endif
  32. //When using Unicode Win32 functions, use Unicode C-Runtime functions, too
  33. #ifndef _UNICODE
  34. #ifdef UNICODE
  35. #define _UNICODE
  36. #endif
  37. #endif
  38. #define ASSERT_STATUS(_C, _S)\
  39. ASSERT((_C));\
  40. if (!(_C)) {\
  41. return(_S);\
  42. }
  43. #define SACSVR_PARAMETERS_KEY L"System\\CurrentControlSet\\Services\\Sacsvr\\Parameters"
  44. #define SACSVR_TIMEOUT_INTERVAL_VALUE TEXT("TimeOutInterval")
  45. #define SACSVR_TIMEOUT_DISABLED_VALUE TEXT("TimeOutDisabled")
  46. #define SACSVR_LOAD_PROFILES_DISABLED_VALUE TEXT("LoadProfilesDisabled")
  47. #endif // _CMNHDR_H_