Compartilhar via


CComDynamicUnkArray::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 zero 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

CComDynamicUnkArray Class

CComDynamicUnkArray::Add

CComDynamicUnkArray::Remove

CComDynamicUnkArray::GetUnknown