Shell32SHSetInstanceExplorer Method

Provides 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", SetLastError = true)]
public static void SHSetInstanceExplorer(
	ref Object refPunk
)

Parameters

refPunk  Object
A pointer to a free-threaded IUnknown.

Components can use this interface (through SHGetInstanceExplorer(Object)) to prevent the host process from terminating.

This value can be , in which case the process reference is no longer made available to components.

Remarks

See Also