Compartilhar via


ResourceRequestEx (Windows CE 5.0)

Send Feedback

This function allows devices to request exclusive access to shareable resources.

BOOL ResourceRequestEx (  DWORD dwResId,  DWORD dwId,  DWORD dwLen,  DWORD dwFlags);

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
  • dwId
    [in] Identifer of the resource to request exclusive access.

  • dwLen
    [in] Number of resources to request.

  • dwFlags
    [in] Set to RREXF_REQUEST_EXCLUSIVE to request exclusive access of the shareable resource.

Return Values

TRUE indicates success. FALSE indicates failure.

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

Remarks

Some devices are not capable of sharing resources. For example, some network cards need exclusive access to interrupt requests (IRQs) even when the IRQ is shareable. Bus drivers should make this request on behalf of the device drivers they load.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Winbase.h.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.