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.

57 lines
760 B

  1. #define BOOL unsigned long
  2. #define HANDLE void *
  3. #define LPDWORD unsigned long *
  4. #define APIENTRY _pascal
  5. #define DWORD unsigned long
  6. #define PINPUT_RECORD void *
  7. #define LPSTR char *
  8. #define VOID void
  9. #define LPSTARTUPINFO void *
  10. #define PVOID void *
  11. DWORD
  12. APIENTRY
  13. HeapSize32(
  14. HANDLE hHeap,
  15. LPSTR lpMem
  16. );
  17. DWORD
  18. APIENTRY
  19. HeapSize(
  20. HANDLE hHeap,
  21. LPSTR lpMem
  22. )
  23. {
  24. return HeapSize32(hHeap,lpMem);
  25. }
  26. BOOL
  27. APIENTRY
  28. HEAPDESTROY(
  29. HANDLE hHeap
  30. );
  31. BOOL
  32. HeapDestroy(
  33. HANDLE hHeap
  34. )
  35. {
  36. return HEAPDESTROY(hHeap);
  37. }
  38. typedef int jmp_buf[6];
  39. int _setjmp(jmp_buf);
  40. int _cdecl setjmp(jmp_buf env)
  41. {
  42. int (*fxp)() = _setjmp;
  43. _asm {
  44. mov eax,fxp
  45. mov esp,ebp
  46. pop ebp
  47. jmp eax
  48. }
  49. }