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.

25 lines
866 B

  1. #ifdef WIN32
  2. // These things have direct equivalents.
  3. // Shouldn't be using these things.
  4. #define _huge
  5. #define _export
  6. #define SELECTOROF(x) ((UINT_PTR)(x))
  7. #define OFFSETOF(x) ((UINT_PTR)(x))
  8. #define ISLPTR(pv) (pv)
  9. #define MAKELP(hmem,off) ((LPVOID)((LPBYTE)hmem+off))
  10. #define MAKELRESULTFROMUINT(i) ((LRESULT)i)
  11. #define ISVALIDHINSTANCE(hinst) (hinst)
  12. #define DATASEG_READONLY TEXT(".text")
  13. #define DATASEG_PERINSTANCE TEXT(".instanc")
  14. #define DATASEG_SHARED TEXT(".data")
  15. #define GetWindowInt GetWindowLong
  16. #define SetWindowInt SetWindowLong
  17. #define SetWindowID(hwnd,id) SetWindowLongPtr(hwnd, GWLP_ID, id)
  18. #define MCopyIconEx(hinst, hicon, cx, cy, flags) CopyIconEx(hicon, cx, cy, flags)
  19. #define MLoadIconEx(hinst1, hinst2, lpsz, cx, cy, flags) LoadIconEx(hinst2, lpsz, cx, cy, flags)
  20. #endif // WIN32