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.

89 lines
2.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. ////
  23. // sys.h - interface for system functions in sys.c
  24. ////
  25. #ifndef __SYS_H__
  26. #define __SYS_H__
  27. #include "winlocal.h"
  28. #define SYS_VERSION 0x00000107
  29. // flags returned by SysGetWinFlags
  30. //
  31. #define SYS_WF_WIN3X 0x00000001
  32. #define SYS_WF_WINNT 0x00000002
  33. #define SYS_WF_WIN95 0x00000004
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. // SysGetWinFlags - get system information
  38. // return flags
  39. // SYS_WF_WIN3X Windows 3.x
  40. // SYS_WF_WINNT Windows NT
  41. // SYS_WF_WIN95 Windows 95
  42. //
  43. DWORD DLLEXPORT WINAPI SysGetWinFlags(void);
  44. // SysGetWindowsVersion - get version of Microsoft Windows
  45. // return version (v3.10 = 310, etc.)
  46. //
  47. UINT DLLEXPORT WINAPI SysGetWindowsVersion(void);
  48. // SysGetDOSVersion - get version of Microsoft DOS
  49. // return version (v6.20 = 620, etc.)
  50. //
  51. UINT DLLEXPORT WINAPI SysGetDOSVersion(void);
  52. // SysGetTimerCount - get elapsed time since Windows started
  53. // return milleseconds
  54. //
  55. #ifdef _WIN32
  56. #define SysGetTimerCount() GetTickCount()
  57. #else
  58. DWORD DLLEXPORT WINAPI SysGetTimerCount(void);
  59. #endif
  60. // SysGetTaskInstance - get instance handle of specified task
  61. // <hTask> (i) specified task
  62. // NULL current task
  63. // returns instance handle (NULL if error)
  64. //
  65. // NOTE: under WIN32, <hTask> must be NULL
  66. //
  67. #ifdef _WIN32
  68. #define SysGetTaskInstance(hTask) \
  69. (hTask == NULL ? GetModuleHandle(NULL) : NULL)
  70. #else
  71. HINSTANCE DLLEXPORT WINAPI SysGetTaskInstance(HTASK hTask);
  72. #endif
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #endif // __SYS_H__