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.

45 lines
911 B

  1. #ifndef H__api1632
  2. #define H__api1632
  3. /* Wonderware additions.... */
  4. #ifdef WIN32
  5. // ignore nb30.h
  6. #define NCB_INCLUDED
  7. // ignore wwheap.h
  8. #define H__wwheap
  9. typedef unsigned long HHEAP;
  10. #define hmemcpy(d,s,l) memcpy(d,s,l)
  11. #define GlobalPtrHandle(x) \
  12. (GlobalHandle(x))
  13. #define HeapAllocPtr(x,y,z) \
  14. (GlobalLock(GlobalAlloc(y,z)))
  15. #define HeapFreePtr(p) \
  16. (GlobalUnlock(GlobalHandle(p)), GlobalFree(GlobalHandle(p)))
  17. #define HeapInit() (1)
  18. #define _fstrncpy strncpy
  19. #define _fstrcpy strcpy
  20. #define _fstrncmp strncmp
  21. #define _fstrnicmp _strnicmp
  22. #define _fstricmp _stricmp
  23. #define _fstrupr _strupr
  24. #define _fstrchr strchr
  25. #define _fstrrchr strrchr
  26. #define _fstrcat strcat
  27. #define _fstrlen strlen
  28. #define _fmemcpy memcpy
  29. #define _fmemset memset
  30. #define _fstrstr strstr
  31. #define _fstrpbrk strpbrk
  32. #define MoveTo(h,x,y) MoveToEx(h,x,y,NULL)
  33. #endif
  34. #endif