Share via


CONNECTDLGSTRUCT

This structure is used in the WNetConnectionDialog1 function to specify the browsing dialog box parameters.

typedef struct {
  DWORD cbStructure;
  HWND hwndOwner;
  LPNETRESOURCE lpConnRes;
  DWORD dwFlags;
  DWORD dwDevNum;
} CONNECTDLGSTRUCT;

Members

  • cbStructure
    Size of this structure, in bytes.
  • hwndOwner
    Handle of the owning window.
  • lpConnRes
    Long pointer to a null-terminated string that specifies the path of a network resource to connect to. If the lpRemoteName member of the NETRESOURCE structure is specified, this member is entered into the path field of the dialog box. All other members must be set to NULL except **dwType****which specifies the type of resources of interest, and must be one of RESOURCETYPE_DISK.
  • dwFlags
    Specifies variations in the dialog display. This member must be set to zero or the following value.
    Value Description
    CONNDLG_RO_PATH Instead of enabling the user to type in a path, have a read-only path already inserted. This flag should be set only if lpRemoteName is not NULL or an empty string.
  • dwDevNum
    Unsupported.

Remarks

ERROR_SUCCESS indicates that the call is successful and displays the dialog. Typically, this function returns an error only if the dialog box could not be displayed because errors that occur after are reported directly to the user

The ERROR_INVALID_PARAMETER may mean that CONNDLG_RO_PATH is set and lpRemoteName does not point to a remote name.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Winnetwk.h.

See Also

NETRESOURCE | WNetConnectionDialog1

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.