The PFN_WdsTransportClientSessionCompete callback is used by the client to indicate that no more callbacks will be sent to the consumer and that the session either completed successfully or encountered a non-recoverable error.
Syntax
VOID CALLBACK PFN_WdsTransportClientSessionComplete(
__in HANDLE hSessionKey,
__in PVOID pCallerData,
__in DWORD dwError
);
Parameters
- hSessionKey [in]
-
The handle belonging to the session that is being started.
- pCallerData [in]
-
Pointer to the caller specific data for this session. This data was specified in the call to WdsTransportClientStartSession function.
- dwError [in]
-
The overall status of the file transfer. If the session succeeded, this value will be set to ERROR_SUCCESS. If the session did not succeed, the error code for the session will be set.
Return Value
This callback function does not return a value.
Remarks
This will be the last callback a consumer receives. The consumer will always receive this callback, even if the session is canceled.
Requirements
| Minimum supported client | Windows Vista with SP1 |
| Minimum supported server | Windows Server 2008 |
| Header | Wdstci.h |
Send comments about this topic to Microsoft
Build date: 12/11/2009