public:
HRESULT Disconnect()
Type: HRESULTÂ
If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.
| Return code | Description |
|---|---|
| ACP_E_NOT_CONNECTED | This instance is not connected to the ACP. |
The only method that can be called after this is PopMessage. If a message queue was created during the Connect call, and the message type ACP_MESSAGE_TYPE_DISCONNECTED was registered for, it will be the last message sent by the ACP. When the disconnected message is received, the ACP will no longer reference any resources allocated by this instance.
Header: Declared in acphal.h.
Library: Use acphal.lib.