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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Shell32.dll", SetLastError := true>]
Public Shared Sub SHSetInstanceExplorer (
ByRef refPunk As Object
)
Dim refPunk As Object
Shell32.SHSetInstanceExplorer(refPunk)
public:
[DllImportAttribute(L"Shell32.dll", SetLastError = true)]
static void SHSetInstanceExplorer(
Object^% refPunk
)
[<DllImportAttribute("Shell32.dll", SetLastError = true)>]
static member SHSetInstanceExplorer :
refPunk : Object byref -> unit
No code example is currently available or this language may not be supported.
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.