Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This structure is used in the WNetDisconnectDialog1function 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 DISCDLGSTRUCTstructure. 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 lpLocalNameis 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 |
Windows Mobile | Windows Mobile Version 5.0 and later |