RmCloseResource (Compact 7)
3/12/2014
This function terminates resource-wide notifications for a resource.
Syntax
RM_RESULT RmCloseResource(
__in HANDLE hId,
__in const RM_RESOURCE_ID* pResId
);
Parameters
- [in] hId
[in] An RM_RESOURCE_HANDLE returned by RmInitialize.
- [in] pResId
[in] An RM_RESOURCE_ID identifying the type of resource to close.
Return Value
The function returns the following values:
Value | Description |
---|---|
RMRE_SUCCESS |
The call succeeded. |
RMRE_INVALID_PARAMETER |
One of the input parameters is invalid. |
RMRE_NOT_INITIALIZED |
The hId parameter cannot be matched to an initialized resource. |
RMRE_UNEXPECTED |
An unexpected failure occurred. |
Remarks
This function does not affect notifications initiated by calls to RmAcquire.
Requirements
Header |
rmnet.h |
Library |
rmnet.lib |
See Also
Reference
Resource Manager Functions
RM_RESOURCE_HANDLE
RM_RESOURCE_ID
RmInitialize
RmAcquire
Resource Manager Service Provider Reference