IInitializeNetworkFolder::Initialize method
Initializes a network folder, as specified.
Syntax
HRESULT Initialize( [in] PCIDLIST_ABSOLUTE pidl, [in] PCIDLIST_ABSOLUTE pidlTarget, [in] UINT uDisplayType, [in] LPCWSTR pszResName, [in, optional] LPCWSTR pszProvider );
Parameters
- pidl [in]
-
Type: PCIDLIST_ABSOLUTE
The Shell namespace location for this data source, as an IDList.
- pidlTarget [in]
-
Type: PCIDLIST_ABSOLUTE
The target namespace location, as an IDList. This is used when the data source is aliased into the namespace. This parameter specifies the location of the network item that the data source will represent. See InitializeEx and in PERSIST_FOLDER_TARGET_INFO see the pidlTargetFolder definition for more information.
- uDisplayType [in]
-
Type: UINT
The display type of the network resource this data source will represent. This is one of the RESOURCEDISPLAYTYPE_XXX values found in winnetwk.h.
- pszResName [in]
-
Type: LPCWSTR
The network resource name. for example, \\server or \\server\share. this is passed to the WNet in the NETRESOURCE.lpRemoteName field.
- pszProvider [in, optional]
-
Type: LPCWSTR
Optional network provider, as in the NETRESOURCE.lpProvider field.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also