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.

161 lines
3.4 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. // winlocal.h - local windows include umbrella
  24. ////
  25. #ifndef __WINLOCAL_H__
  26. #define __WINLOCAL_H__
  27. #ifndef STRICT
  28. #define STRICT
  29. #endif
  30. #ifndef WINVER
  31. #ifndef _WIN32
  32. #define WINVER 0x030A
  33. #endif
  34. #endif
  35. #ifndef _MFC_VER
  36. #include <windows.h>
  37. #include <windowsx.h>
  38. #endif
  39. #ifndef EXPORT
  40. #ifdef _WIN32
  41. #define EXPORT
  42. #else
  43. #define EXPORT __export
  44. #endif
  45. #endif
  46. #ifndef DLLEXPORT
  47. #ifdef _WIN32
  48. #define DLLEXPORT __declspec(dllexport)
  49. #else
  50. #define DLLEXPORT __export
  51. #endif
  52. #endif
  53. #ifndef DLLIMPORT
  54. #ifdef _WIN32
  55. #define DLLIMPORT __declspec(dllimport)
  56. #else
  57. #define DLLIMPORT __export
  58. #endif
  59. #endif
  60. ////
  61. // scalar types containing specific number of bits
  62. ////
  63. #if 0
  64. #ifndef INT8
  65. typedef signed char INT8;
  66. typedef INT8 FAR * LPINT8;
  67. #endif
  68. #ifndef UINT8
  69. typedef unsigned char UINT8;
  70. typedef UINT8 FAR * LPUINT8;
  71. #endif
  72. #ifndef INT16
  73. typedef signed short INT16;
  74. typedef INT16 FAR * LPINT16;
  75. #endif
  76. #ifndef UINT16
  77. typedef unsigned short UINT16;
  78. typedef UINT16 FAR * LPUINT16;
  79. #endif
  80. #ifndef INT32
  81. typedef signed long INT32;
  82. typedef INT32 FAR * LPINT32;
  83. #endif
  84. #ifndef UINT32
  85. typedef unsigned long UINT32;
  86. typedef UINT32 FAR * LPUINT32;
  87. #endif
  88. #endif
  89. ////
  90. // misc macros
  91. ////
  92. #ifndef SIZEOFARRAY
  93. #define SIZEOFARRAY(a) (sizeof(a) / sizeof(a[0]))
  94. #endif
  95. #ifndef NOREF
  96. #define NOREF(p) p
  97. #endif
  98. #ifndef MAKEWORD
  99. #define MAKEWORD(low, high) ((WORD)(((BYTE)(low)) | (((WORD)((BYTE)(high))) << 8)))
  100. #endif
  101. ////
  102. // _WIN32 portability stuff
  103. ////
  104. #ifdef _WIN32
  105. #define _huge
  106. #define GetCurrentTask() ((HTASK) GetCurrentProcess())
  107. #ifndef DECLARE_HANDLE32
  108. #define DECLARE_HANDLE32 DECLARE_HANDLE
  109. #endif
  110. #else // #ifndef _WIN32
  111. #ifndef TEXT
  112. #define TEXT(s) s
  113. #endif
  114. #if 0
  115. #define RegOpenKeyEx(hKey, lpSubKey, ulOptions, samDesired, phkResult) \
  116. RegOpenKey(HKEY_CLASSES_ROOT, lpSubKey, phkResult)
  117. #define RegCreateKeyEx(hKey, lpSubKey, Reserved, lpClass, dwOptions, \
  118. samDesired, lpSecurityAttributes, phkResult, lpdwDisposition) \
  119. RegCreateKey(HKEY_CLASSES_ROOT, lpSubKey, phkResult)
  120. #define RegQueryValueEx(hKey, lpValueName, lpReserved, lpType, lpData, lpcbData) \
  121. RegQueryValue(hKey, lpValueName, lpData, lpcbData)
  122. #define RegSetValueEx(hKey, lpValueName, Reserved, dwType, lpData, cbData) \
  123. RegSetValue(hKey, lpValueName, REG_SZ, lpData, cbData)
  124. #endif
  125. #endif
  126. #endif // __WINLOCAL_H__