Share via


ResourceRequest

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/28/2008

This function allows drivers to use the resources made available by ResourceRelease.

Syntax

BOOL ResourceRequest(
  DWORD dwResId, 
  DWORD dwBase, 
  DWORD dwLen
);

Parameters

  • dwResId
    [in] Resource identifier, which is a label for a set of numbers. The following table shows the existing resource identifiers and their values, which are defined in Resmgr.h.

    Resource identifier Value

    RESMGR_IRQ

    0x00001

    RESMGR_IOSPACE

    0x00002

    Although some resource identifiers are for your use, values below RESMGR_BASE_OEM are reserved. Values greater than RESMGR_MAX_OEM are reserved for future use. The following table shows the resource identifiers that you can use and their values, which are defined in Resmgr.h.

    Resource identifier Value

    RESMGR_BASE_OEM

    0x00080000

    RESMGR_MAX_OEM

    0x000FFFFF

  • dwBase
    [in] Smallest numbered resource to request.
  • dwLen
    [in] Number of resources to request. The range of resources requested is dwBase + dwLen – 1.

Return Value

TRUE indicates success. FALSE indicates failure.

You cannot have a partial allocation or a partial release of resources.

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ResourceCreateList
ResourceRelease