Contents Previous Page Next Page
IBindStatusCallback::GetBindInfo

An asynchronous moniker calls this method to obtain the bind information for the bind operation.

HRESULT GetBindInfo(

    DWORD *
pgrfBINDF,          //Pointer to BINDF value               
                                                                      
    BINDINFO *pbindinfo        //Pointer to BINDINFO structure        
                                                                      
   );                                                                 
                                                                      

Parameters

pgrfBINDF

[out] Pointer to a value taken from the BINDF enumeration indicating whether the bind should proceed synchronously or asynchronously.

pbindinfo

[in, out] Pointer to the BINDINFO structure which describes how the client wants the binding to occur.

Return Values

S_OK

The operation was successful.

E_INVALIDARG

One or more parameters are invalid.

Remarks

The moniker calls this method in its implementations of IMoniker::BindToObject and IMoniker::BindToStorage to obtain information about the specific bind operation. Note that even though multiple IBindStatusCallback interfaces can be registered in the bind context, only one moniker client actually receives the IBindStatusCallback::GetBindInfo callback.

See Also

BINDF, BINDINFO, RegisterBindStatusCallback