HlinkCreateBrowseContext function
[HlinkCreateBrowseContext may be altered or unavailable in subsequent versions of the operating system or product.]
Creates an empty, default instance of the system browse context object.
Syntax
HRESULT HlinkCreateBrowseContext(
_In_ IUnknown *piunkOuter,
_In_ REFIID riid,
_Out_ void **ppvObj
);
Parameters
- piunkOuter [in]
-
The address of the controlling IUnknown interface for the new browse context. This is typically NULL, and the new browse context is not aggregated. This interface must be derived from IUnknown.
- riid [in]
-
The interface to return on the new browse context. This is typically IID_IHlinkBrowseContext, although it must be IID_IUnknown when piunkOuter is non-NULL, so that the aggregator can retrieve the new browse context inner IUnknown for delegation of QueryInterface.
- ppvObj [out]
-
The location to return the riid interface.
Return value
Returns S_OK if the browse context was created and the interface pointer retrieved.
Examples
This function is identical to the following call.
coCreateInstance(CLSID_StdHlinkBrowseContext, piunkOuter, CLSCTX_SERVER, riid, ppv)
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also