Expand Minimize
This topic has not yet been rated - Rate this topic

CancelConnectNotify function

The Multiple Provider Router (MPR) calls CancelConnectNotify before and after each cancel connection operation (WNetCancelConnection and WNetCancelConnection2).

Syntax


DWORD APIENTRY CancelConnectNotify(
  _Inout_  LPNOTIFYINFO lpNotifyInfo,
  _In_     LPNOTIFYCANCEL lpCancelInfo
);

Parameters

lpNotifyInfo [in, out]

A pointer to a NOTIFYINFO structure that contains information about the notification.

lpCancelInfo [in]

A pointer to a NOTIFYCANCEL structure that contains the cancel connection specific information.

Return value

If the function succeeds, the function should return WN_SUCCESS.

If the function fails, it should return an error code. This can be any of the error codes specified in Network Security Return Values.

Remarks

The CancelConnectNotify function is implemented by applications that need to receive notification from the MPR when a network resource is connected or disconnected. For more information about how to write an application that receives such notifications, see Receiving Connection Notifications.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Npapi.h

See also

AddConnectNotify

 

 

Send comments about this topic to Microsoft

Build date: 1/2/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.