Share via


CComUnkArray::GetCookie

Call this method to get the cookie associated with a given IUnknown pointer.

DWORD WINAPI GetCookie( 
   IUnknown** ppFind  
);

Parameters

  • ppFind
    The IUnknown pointer for which the associated cookie is required.

Return Value

Returns the cookie associated with the IUnknown pointer, or 0 if no matching IUnknown pointer is found.

Remarks

If there is more than one instance of the same IUnknown pointer, this function returns the cookie for the first one.

Requirements

Header: atlcom.h

See Also

Reference

CComUnkArray Class

CComUnkArray::GetUnknown