Source code of Windows XP (NT5)
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.

50 lines
1.1 KiB

  1. #ifndef __OLEPORT_H__
  2. #define __OLEPORT_H__
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #ifdef __cplusplus
  6. // BUGBUG: This definition is here to ease porting. In the future
  7. // it s/b removed to use the single official definition along
  8. // with all the changes that will be required in the code.
  9. #define GUID_DEFINED
  10. struct GUID
  11. {
  12. unsigned long Data1;
  13. unsigned short Data2;
  14. unsigned short Data3;
  15. unsigned char Data4[8];
  16. int operator==(const GUID& iidOther) const
  17. { return !memcmp(&Data1, &iidOther.Data1, sizeof(GUID)); }
  18. int operator!=(const GUID& iidOther) const
  19. { return !((*this) == iidOther); }
  20. };
  21. #endif // __cplusplus
  22. #include <windows.h>
  23. // Handle port problems easily
  24. #define WIN32
  25. #ifdef _NTIDW340
  26. #ifdef __cplusplus
  27. #define jmp_buf int
  28. #endif // __cplusplus
  29. #endif // _NTIDW340
  30. // PORT: HTASK no longer seems to be defined in Win32
  31. #define HTASK DWORD
  32. #define HINSTANCE_ERROR 32
  33. #define __loadds
  34. #define __segname
  35. #define BASED_CODE
  36. #define HUGE
  37. #define _ffree free
  38. #define __based(x)
  39. #include <port1632.h>
  40. #endif // __OLEPORT_H__