Contents Index Topic Contents | ||
Previous Topic: IShellExecuteHook Next Topic: IShellExtInit |
IShellExecuteHook::Execute
HRESULT Execute( LPSHELLEXECUTEINFO pei );Called when ShellExecute or ShellExecuteEx is called for an object that is registered.
- Returns one of the following values or an OLE-defined error value.
S_OK The hook processed the execution. ShellExecute or ShellExecuteEx should not perform any other processing. S_FALSE The hook is installed but did not process the execution. ShellExecute or ShellExecuteEx should perform the default processing.
- pei
- Address of a SHELLEXECUTEINFO structure that contains information about the object being executed. On successful completion of the hook, the hInstApp member will be filled in by the hook.
This method provides an opportunity for the application to hook the execution of an object and change the default execution or perform some other action before the object is executed.
See also IShellExecuteHook
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.