Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generated when an existing resource is allocated.
Syntax
HRESULT OnResourceAllocate(
[in] COMSVCSEVENTINFO *pInfo,
[in] ULONG64 ObjectID,
[in] LPCOLESTR pszType,
[in] ULONG64 resId,
[in] BOOL enlisted,
[in] DWORD NumRated,
[in] DWORD Rating
);
Parameters
[in] pInfo
A pointer to a COMSVCSEVENTINFO structure.
[in] ObjectID
The just-in-time activated object.
[in] pszType
A description of the resource.
[in] resId
The unique identifier for the resource.
[in] enlisted
Indicates whether the resource is enlisted in a transaction.
[in] NumRated
The number of possible resources evaluated for a match.
[in] Rating
The rating of the resource actually selected.
Return value
The user verifies the return values from this method.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | comsvcs.h |