Microsoft DirectX 9.0 |
The AcquireResource method notifies the resource consumer that a resource might be acquired.
Syntax
HRESULT AcquireResource(
LONG idResource
);
Parameters
idResource
[in] Resource identifier of the resource to be acquired.
Return Value
Returns an HRESULT value. Possible values include the following:
Return code | Description |
S_OK | Consumer has successfully acquired the resource. |
S_FALSE | Consumer has not acquired the resource but will use IResourceManager::NotifyAcquire when it does. |
VFW_S_RESOURCE_NOT_NEEDED | Consumer no longer needs the resource. |
The method may return some other error code, if the consumer fails to acquire the resource.
See Also