ICreateDeviceAccessAsync::Close method (deviceaccess.h)
The Close method performs cleanup after the asynchronous operation is completed and you retrieve the results.
Syntax
HRESULT Close();
Return value
This method supports standard return values, in addition to these:
Return code | Description |
---|---|
|
The property value was retrieved successfully. |
|
The operation did not finish. |
Remarks
If the binding is successful, it doesn't invalidate the interface that the GetResult method returns.
It isn't strictly necessary to call this method, because resources are cleaned up when the underlying object is deleted. But doing so allows the system to free up resources that are associated with the asynchronous binding. As such, it's good practice to call Close after you retrieve the results.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | deviceaccess.h |
Library | Deviceaccess.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for