RspGetResourceInfo (Compact 7)
3/12/2014
This function retrieves the current state information of the resource.
Syntax
RM_RESULT RspGetResourceInfo(
__in const RM_RESOURCE_ID* pResId,
__out RM_RESOURCE_INFO* pResourceInfo,
DWORD cbResourceInfo
);
Parameters
- [in] pResId
[in] An RM_RESOURCE_ID identifying the resource to get information on.
[in,out] pResourceInfo
[in] Pointer to a storage area to place the output.[out] Pointer to a RM_RESOURCE_INFO structure.
- [in] cbResourceInfo
[in] Number of bytes in the pResourceInfo structure.
Return Value
The function returns the following values:
Value | Description |
---|---|
RMRE_SUCCESS |
The call succeeded. |
RMRE_INSUFFICIENT_BUFFER |
The cbResourceInfo output buffer is too small to contain the results of pResourceInfo. |
RMRE_INVALID_PARAMETER |
One of the input parameters is invalid. |
RMRE_UNEXPECTED |
An unexpected failure occurred. |
Remarks
The RM_RESOURCE_INFOdwVersion parameter is populated with RSP_CELLULAR_CURRENT_VERSION.
The RM_AVAILABILITY_INFO dwVersion parameter is populated with RSP_CELLULAR_CURRENT_VERSION.
Requirements
Header |
rmnet.h, |
Library |
RspCellular.lib |
See Also
Reference
Resource Manager Service Provider Functions
RM_RESOURCE_HANDLE
RM_RESOURCE_ID
RM_RESOURCE_INFO
RM_AVAILABILITY_INFO
Resource Manager Service Provider Reference