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.

43 lines
908 B

  1. #pragma once
  2. // Get the public delay load stub definitions.
  3. //
  4. #include <dloaddef.h>
  5. // 'B' for both
  6. // 'P' for procname only
  7. // 'O' for ordinal only
  8. //
  9. #define DLDENTRYB(_dllbasename) \
  10. { #_dllbasename".dll", \
  11. &c_Pmap_##_dllbasename, \
  12. &c_Omap_##_dllbasename },
  13. #define DLDENTRYB_DRV(_dllbasename) \
  14. { #_dllbasename".drv", \
  15. &c_Pmap_##_dllbasename, \
  16. &c_Omap_##_dllbasename },
  17. #define DLDENTRYP(_dllbasename) \
  18. { #_dllbasename".dll", \
  19. &c_Pmap_##_dllbasename, \
  20. NULL },
  21. #define DLDENTRYP_DRV(_dllbasename) \
  22. { #_dllbasename".drv", \
  23. &c_Pmap_##_dllbasename, \
  24. NULL },
  25. #define DLDENTRYO(_dllbasename) \
  26. { #_dllbasename".dll", \
  27. NULL, \
  28. &c_Omap_##_dllbasename },
  29. extern const DLOAD_DLL_MAP g_DllMap;
  30. FARPROC
  31. LookupHandler (
  32. LPCSTR pszDllName,
  33. LPCSTR pszProcName
  34. );