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

#pragma once
typedef struct SXPE_APPLY_SHIMS_IN
{
SIZE_T Size;
ULONG Flags;
HMODULE DllToRedirectFrom;
struct
{
PCWSTR Path;
HMODULE DllHandle;
} DllToRedirectTo;
PCSTR Prefix; // for packaging multiple shimsets in one .dll
} SXPE_APPLY_SHIMS_IN, *PSXPE_APPLY_SHIMS_IN;
typedef const SXPE_APPLY_SHIMS_IN* PCSXPE_APPLY_SHIMS_IN;
typedef struct SXPE_APPLY_SHIMS_OUT
{
SIZE_T Size;
ULONG Flags;
struct
{
PCWSTR Path;
HMODULE DllHandle;
} DllToRedirectTo;
} SXPE_APPLY_SHIMS_OUT, *PSXPE_APPLY_SHIMS_OUT;
typedef const SXPE_APPLY_SHIMS_OUT* PCSXPE_APPLY_SHIMS_OUT;
BOOL
SxPepApplyShims(
PCSXPE_APPLY_SHIMS_IN in,
PSXPE_APPLY_SHIMS_OUT out
);
BOOL
SxPepRevokeShims(
HMODULE DllHandle
);