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.

80 lines
2.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // INTEL CORPORATION PROPRIETARY INFORMATION
  4. //
  5. // This source is supplied under the terms of a licence agreement or
  6. // non-disclosure statement with Intel Corporation and may not be copied
  7. // nor disclosed except in accordance with the terms of that agreement.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //////////////////////////////////////////////////////////////////////////////
  11. // PORT32.H
  12. // Stuff to make porting from Win3.1 to Win32 a little less hellish.
  13. //////////////////////////////////////////////////////////////////////////////
  14. #ifndef PORT32_H
  15. #define PORT32_H
  16. //////////////////////////////////////////////////////////////////////////////
  17. // some convenient, explicit types
  18. //////////////////////////////////////////////////////////////////////////////
  19. typedef short INTEGER_16;
  20. typedef int INTEGER_32;
  21. typedef unsigned short UINTEGER_16;
  22. typedef unsigned int UINTEGER_32;
  23. typedef short BOOLEAN_16;
  24. #ifndef _BASETSD_H_
  25. typedef short INT16;
  26. typedef int INT32;
  27. typedef unsigned short UINT16;
  28. typedef unsigned int UINT32;
  29. #endif
  30. typedef short BOOL16;
  31. //////////////////////////////////////////////////////////////////////////////
  32. // macros to make old keywords go away
  33. //////////////////////////////////////////////////////////////////////////////
  34. #define __pascal
  35. #define _pascal
  36. #define _far
  37. #define __far
  38. #define _export
  39. #define __export
  40. #define _huge
  41. #define huge
  42. #define __huge
  43. #define __segment
  44. #define _HFAR_
  45. #define _loadds
  46. #define __loadds
  47. //////////////////////////////////////////////////////////////////////////////
  48. // other macros that may or may not be handy
  49. //////////////////////////////////////////////////////////////////////////////
  50. #define WRITE OF_WRITE
  51. #define OFFSETOF(lp) (int) (lp)
  52. #define SELECTOROF
  53. #define GLOBALHANDLE(lp) GlobalHandle(lp)
  54. #define GLOBALHANDLEFUNC(lp) GlobalHandle(lp)
  55. #define LOCALHANDLE(lp) LocalHandle(lp)
  56. #define LOCALHANDLEFUNC(lp) LocalHandle(lp)
  57. #define _AfxGetPtrFromFarPtr(p) ((void*)(p))
  58. #define GETWINDOWHINSTANCE(hWnd) GetWindowLong(hWnd ,GWL_HINSTANCE)
  59. #define GETWINDOWHPARENT(hWnd) GetWindowLong(hWnd, GWL_HWNDPARENT)
  60. #define GETWINDOWID(hWnd) GetWindowLong(hWnd, GWL_ID)
  61. #define SETCLASSCURSOR(hWnd,NewVal) SetClassLong(hWnd ,GCL_HCURSOR,NewVal)
  62. //////////////////////////////////////////////////////////////////////////////
  63. // Name of shared mutex for serializing access to 16-bit data stack
  64. //////////////////////////////////////////////////////////////////////////////
  65. #define STR_DATASTACKMUX "_mux_DataStack"
  66. #endif // PORT32_H