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.
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")]
public static int SHGetInstanceExplorer(
out Object refPunk
)
<DllImportAttribute("Shell32.dll">]
Public Shared Function SHGetInstanceExplorer (
<OutAttribute> ByRef refPunk As Object
) As Integer
Dim refPunk As Object
Dim returnValue As Integer
returnValue = Shell32.SHGetInstanceExplorer(refPunk)
public:
[DllImportAttribute(L"Shell32.dll")]
static int SHGetInstanceExplorer(
[OutAttribute] Object^% refPunk
)
[<DllImportAttribute("Shell32.dll")>]
static member SHGetInstanceExplorer :
refPunk : Object byref -> int
No code example is currently available or this language may not be supported.
- 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 .
Int32
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.