This structure is used in the WNetDisconnectDialog1 function to describe the required behavior for the disconnect attempt.
At a Glance
Header file: | Winnetwk.h |
Windows CE versions: | 2.0 and later |
Syntax
typedef struct _wcesdk_win32_DISCDLGSTRUCT_str{
DWORD cbStructure;
HWND hwndOwner;
LPTSTR lpLocalName;
LPTSTR lpRemoteName;
DWORD dwFlags;
} DISCDLGSTRUCT, *LPDISCDLGSTRUCT;
Members
cbStructure
Size, in bytes, of the DISCDLGSTRUCT structure. This structure is filled in by the caller to indicate the size of the structure passed in.
hwndOwner
Handle to the owning window.
lpRemoteName
Long pointer to the network resource to disconnect. This member can be set to NULL if lpLocalName is specified. When this occurs, the connection to the resource redirected from lpLocalName is disconnected.
lpLocalName
Long pointer to the local name that is redirected to the network resource, such as "myShare.”
dwFlags
Must be set to the following flag:
Value | Description |
DISC_NO_FORCE | If this value is not set, a forced disconnect will occur—typically because the user has open files. The user will be informed if there are open files to the connection and offered the option to disconnect. |