◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── WORD WNetBrowseDialog(hParent, nType, szPath) HWND hParent; WORD nType; LPSTR szPath; The WNetBrowseDialog function displays one or more dialog boxes that enable the user to select a network resource. Parameter Description ──────────────────────────────────────────────────────────────────────────── hParent Identifies the window that should be specified as the parent of the new dialog box. nType Specifies what kind of resource to look for; possible values include WNBD_CONN_DISKTREE and WNBD_CONN_PRINTQ. szPath Points to the buffer to receive the network path of the selected resource. Return Value The return value is one of the following values. Value Meaning ──────────────────────────────────────────────────────────────────────────── WN_BAD_POINTER Invalid pointer. WN_BAD_VALUE Invalid nType parameter value. WN_CANCELLED Cancelled at user's request. WN_NET_ERROR Network error. WN_NOT_SUPPORTED Function not supported. WN_OUT_OF_MEMORY Out of memory. WN_SUCCESS Success. WN_WINDOWS_ERROR Windows function failed. Comments The export ordinal for this function is 15. The function returns a string containing the complete network path selected. It should be formatted so that it can be passed unaltered to the WNetAddConnection function. Programs that call this function must allocate a buffer of at least 128 characters in length. ♦