DISCDLGSTRUCT (Windows Embedded CE 6.0)
1/6/2010
This structure is used in the WNetDisconnectDialog1 function to describe the required behavior for the disconnect attempt.
Syntax
typedef struct _wcesdk_win32_DISCDLGSTRUCT_str{
DWORD cbStructure;
HWND hwndOwner;
LPTSTR lpLocalName;
LPTSTR lpRemoteName;
DWORD dwFlags;
} DISCDLGSTRUCT;
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 lpLocalNameis 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.
Requirements
Header | winnetwk.h |
Windows Embedded CE | Windows CE 2.0 and later |
See Also
Reference
Windows Networking API/Redirector Structures
WNetDisconnectDialog1