SHStartNetConnectionDialogA function (shlobj_core.h)
[SHStartNetConnectionDialog is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Displays a general browsing dialog box for a network resource connection.
SHSTDAPI SHStartNetConnectionDialogA(
[in, optional] HWND hwnd,
[in, optional] LPCSTR pszRemoteName,
DWORD dwType
);
[in, optional] hwnd
Type: HWND
A handle to the parent window.
[in, optional] pszRemoteName
Type: LPCTSTR
A pointer to a null-terminated character string that specifies the remote network name. This value can be set to NULL.
dwType
Type: DWORD
A bitfield that contains a set of flags that identify the type of resource that the dialog box is set to find. This value can contain one of the following values, defined in Winnetwk.h:
All resources
Disk resources
Print resources
Type: HRESULT
Always returns S_OK.
Note
The shlobj_core.h header defines SHStartNetConnectionDialog as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlobj_core.h (include Shlobj.h, Shlobj_core.h) |
Library | Shell32.lib |
DLL | Shell32.dll (version 5.0 or later) |