Selects and calls the best matching function from a list based on the supportedOS guids in a manifest
Syntax
PVOID WINAPI SbExecuteProcedure (
ULONG signature,
ULONG unk,
const SWITCHBRANCH_SCENARIO_TABLE* pScenarioTable,
ULONG scenarioIndex,
PVOID pCtx
)
Parameters
- signature
- The value 0xABABABAB
- unk
- Unknown, always set to 1
- pScenarioTable
- The table describing various scenarios in this module
- scenarioIndex
- Which scenario in the table to pick the function for
- pCtx
- The context parameter to pass to the selected function
Return Value
The return value of the selected function or NULL on failure
Remarks
/* */See SbSelectProcedure for remarks and examples
SbExecuteProcedure combines calling SbSelectProcedure and immidiately calling the returned function