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.

42 lines
1.0 KiB

  1. /****************************************************************************
  2. *
  3. * thunk.h
  4. *
  5. * macros, defines, prototypes for avicap 16:32 thunks
  6. *
  7. * Copyright (c) 1994 Microsoft Corporation. All Rights Reserved.
  8. *
  9. ***************************************************************************/
  10. typedef LPVOID P16VOID;
  11. typedef DWORD P32VOID;
  12. //#define P16VOID LPVOID
  13. //#define P32VOID DWORD
  14. // thunk helpers exported from the kernel
  15. //
  16. DWORD WINAPI GetCurrentProcessID(void); // KERNEL
  17. DWORD WINAPI SetWin32Event(DWORD hEvent); // KERNEL
  18. P16VOID WINAPI MapLS(P32VOID);
  19. P16VOID WINAPI UnMapLS(P16VOID);
  20. P32VOID WINAPI MapSL(P16VOID);
  21. // generated by thunk compiler from avicapf.thk
  22. //
  23. BOOL FAR PASCAL avicapf_ThunkConnect16 (
  24. LPCSTR pszDll16,
  25. LPCSTR pszDll32,
  26. HINSTANCE hinst,
  27. DWORD dwReason);
  28. // thunk helpers in thunka.asm
  29. //
  30. DWORD FAR PASCAL capTileBuffer (
  31. DWORD dwLinear,
  32. DWORD dwSize);
  33. #define PTR_FROM_TILE(dwTile) (LPVOID)(dwTile & 0xFFFF0000)
  34. void FAR PASCAL capUnTileBuffer (
  35. DWORD dwTileInfo);