SHStartNetConnectionDialog function
[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.
Syntax
HRESULT SHStartNetConnectionDialog( _In_opt_ HWND hwnd, _In_opt_ LPCTSTR pszRemoteName, DWORD dwType );
Parameters
- hwnd [in, optional]
-
Type: HWND
A handle to the parent window.
- pszRemoteName [in, optional]
-
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:
Return value
Type: HRESULT
Always returns S_OK.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
End of client support |
Windows XP with SP2 |
|
End of server support |
Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
SHStartNetConnectionDialogW (Unicode) and SHStartNetConnectionDialogA (ANSI) |