Share via


RmRemoveFromResource (Compact 7)

3/12/2014

This function removes an application from an acquired resource.

Syntax

RM_RESULT RmRemoveFromResource(
    __in HANDLE hId,
    __in RM_RESOURCE_HANDLE hAcquired,
    DWORD dwPriority
);

Parameters

  • [in] dwPriority
    Priority value with the same definition as the RmAcquire parameter dwPriority.

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.

Requirements

Header

rmnet.h

Library

rmnet.lib

See Also

Reference

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