NOTIFYCANCEL
The lpOperationInfo parameter of the notification function is a pointer to a NOTIFYCANCEL structure which contains the cancel connection specific information as follows:
typedef struct _NOTIFYCANCEL {
DWORD cbStructure;
LPTSTR lpName;
LPTSTR lpProvider;
DWORD dwFlags;
BOOL fForce;
} NOTIFYCANCEL, *LPNOTIFYCANCEL;
- cbStructure
- The size of the NOTIFYCANCEL structure in bytes.
- lpName
- The name of the local device or network resource whose connection is being canceled.
- lpProvider
- On pre-notification, not defined (MPR will try all valid providers). On post-notification, if the cancel operation was successful, specifies the name of the NP that canceled the connection.
- dwFlags
- Any combination of the following values:
CONNECT_UPDATE_PROFILE |
If the disconnection should remain persistent. If set, Windows will no longer restore this connection when the user logs on. |
- fForce
- Indicates if the disconnect should be done forcefully in the event of open files or jobs on the connection. If FALSE is specified, the cancel connection will not be done if there are open files or jobs.