Shell32SHGetInstanceExplorer Method

Retrieves an interface that allows hosted Shell extensions and other components to prevent their host process from closing prematurely.

The host process is typically Windows Explorer or Windows Internet Explorer, but this function can also be used by other applications.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll")]
public static int SHGetInstanceExplorer(
	out Object refPunk
)

Parameters

refPunk  Object
When this function returns successfully, contains the address of the host process' IUnknown interface pointer.

This is a free-threaded interface used to prevent the host process from terminating.

If the function call fails, this value is set to .

Return Value

Int32
If this function succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

Remarks

See Also