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.

38 lines
834 B

  1. #pragma once
  2. typedef struct SXPE_APPLY_SHIMS_IN
  3. {
  4. SIZE_T Size;
  5. ULONG Flags;
  6. HMODULE DllToRedirectFrom;
  7. struct
  8. {
  9. PCWSTR Path;
  10. HMODULE DllHandle;
  11. } DllToRedirectTo;
  12. PCSTR Prefix; // for packaging multiple shimsets in one .dll
  13. } SXPE_APPLY_SHIMS_IN, *PSXPE_APPLY_SHIMS_IN;
  14. typedef const SXPE_APPLY_SHIMS_IN* PCSXPE_APPLY_SHIMS_IN;
  15. typedef struct SXPE_APPLY_SHIMS_OUT
  16. {
  17. SIZE_T Size;
  18. ULONG Flags;
  19. struct
  20. {
  21. PCWSTR Path;
  22. HMODULE DllHandle;
  23. } DllToRedirectTo;
  24. } SXPE_APPLY_SHIMS_OUT, *PSXPE_APPLY_SHIMS_OUT;
  25. typedef const SXPE_APPLY_SHIMS_OUT* PCSXPE_APPLY_SHIMS_OUT;
  26. BOOL
  27. SxPepApplyShims(
  28. PCSXPE_APPLY_SHIMS_IN in,
  29. PSXPE_APPLY_SHIMS_OUT out
  30. );
  31. BOOL
  32. SxPepRevokeShims(
  33. HMODULE DllHandle
  34. );