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.5 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1999
  3. Module Name:
  4. Misc
  5. Abstract:
  6. This header file describes the miscellaneous services of the Calais Library.
  7. Author:
  8. Doug Barlow (dbarlow) 7/16/1996
  9. Environment:
  10. Win32, C++ w/ Exceptions
  11. Notes:
  12. --*/
  13. #ifndef _MISC_H_b5e44dc6_36c5_4263_8c21_075223a270fa_
  14. #define _MISC_H_b5e44dc6_36c5_4263_8c21_075223a270fa_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define PLATFORM_UNKNOWN 0
  19. #define PLATFORM_WIN95 ((VER_PLATFORM_WIN32_WINDOWS << 16) + (4 << 8))
  20. #define PLATFORM_WIN98 ((VER_PLATFORM_WIN32_WINDOWS << 16) + (4 << 8)) + 10
  21. #define PLATFORM_WINNT40 ((VER_PLATFORM_WIN32_NT << 16) + (4 << 8))
  22. #define PLATFORM_WIN2K ((VER_PLATFORM_WIN32_NT << 16) + (5 << 8))
  23. #define IsWinNT (VER_PLATFORM_WIN32_NT == (GetPlatform() >> 16))
  24. //
  25. // Miscellaneous definitions.
  26. //
  27. extern DWORD
  28. GetPlatform( // Get the current operating system.
  29. void);
  30. extern DWORD
  31. SelectString( // Index a given string against a list of possible
  32. LPCTSTR szSource, // strings. Last parameter is NULL.
  33. ...);
  34. extern void
  35. StringFromGuid(
  36. IN LPCGUID pguidResult, // GUID to convert to text
  37. OUT LPTSTR szGuid); // 39+ character buffer to receive GUID as text.
  38. extern BOOL
  39. GuidFromString(
  40. IN LPCTSTR szGuid, // String that may be a GUID.
  41. OUT LPGUID pguidResult); // Resultant GUID.
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif // _MISC_H_b5e44dc6_36c5_4263_8c21_075223a270fa_