4.4 S_DSBeginDeleteNotification, S_DSNotifyDelete, and S_DSEndDeleteNotification

Collectively, the S_DSBeginDeleteNotification, S_DSNotifyDelete, and S_DSEndDeleteNotification methods are used by the client to notify the server that a queue or machine has been deleted by the client.

This protocol exchange begins when the client calls S_DSBeginDeleteNotification specifying either the machine or queue to be deleted. The server obtains information on this machine or queue and retains it for later use, associating it with a delete context handle. The server returns the delete context handle to the client. The client calls S_DSNotifyDelete (specifying the delete context handle) after it has deleted the machine or queue. The client then calls S_DSEndDeleteNotification (specifying the delete context handle), which indicates to the server that it is to clean up the state retained from the call to S_DSBeginDeleteNotification.

The S_DSBeginDeleteNotification method

Figure 6: The S_DSBeginDeleteNotification method