Share via


RmRelease (Compact 7)

3/12/2014

This function releases a resource, making it available to subsequent calls to RmAcquire.

Syntax

RM_RESULT RmRelease(
    __in HANDLE hId,
    __in RM_RESOURCE_HANDLE hAcquired
);

Parameters

Return Value

The function returns the following values:

Value Description

RMRE_SUCCESS

The call succeeded.

RMRE_CONFLICT

The resource is in use by a higher priority application.

RMRE_EXTERNAL_CONFLICT

A resource is not available due to an external condition. For example, a data call was requested and no data network is available.

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.

Requirements

Header

rmnet.h

Library

rmnet.lib

See Also

Reference

Resource Manager Functions
RM_RESOURCE_HANDLE
RM_RESOURCE_ID
RmInitialize
RmAcquire
RmAddToResource
RmRemoveFromResource
Resource Manager Service Provider Reference