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.

44 lines
1.3 KiB

  1. /***************************************************************************
  2. **
  3. ** File: genthk.h
  4. ** Purpose: Prototypes for Generic Thunk API's.
  5. ** Notes:
  6. ** These API's (exported from the NT Kernel) allow 16-bit
  7. ** apps to call 32-bit DLL's when running under Windows NT WOW
  8. ** (Windows on Windows). This interface is called 'Generic
  9. ** Thunking,' not to be confused with Win32s Universal Thunks,
  10. ** which provides this functionality under Window 3.1.
  11. **
  12. ****************************************************************************/
  13. #ifndef GENTHK_H
  14. #define GENTHK_H
  15. #ifdef __cplusplus
  16. extern "C" { /* Assume C declarations for C++ */
  17. #endif
  18. DWORD FAR PASCAL LoadLibraryEx32W ( LPCSTR, DWORD, DWORD );
  19. DWORD FAR PASCAL GetProcAddress32W ( DWORD, LPCSTR );
  20. DWORD FAR PASCAL GetVDMPointer32W ( LPVOID, UINT );
  21. BOOL FAR PASCAL FreeLibrary32W ( DWORD );
  22. /* NOTE: CallProc32W can take a variable number of
  23. * parameters. The prototype below is for calling
  24. * a Win32 API which takes no arguments.
  25. */
  26. DWORD FAR PASCAL CallProc32W ( LPVOID, DWORD, DWORD );
  27. typedef DWORD (FAR PASCAL * PFNGETVERSION32) ();
  28. #define CallGetVersion32(hProc) \
  29. ((*((PFNGETVERSION32) hProc)) ())
  30. #ifdef __cplusplus
  31. } /* End of extern "C" { */
  32. #endif
  33. #endif /* GENTHK_H */