GetBindings

HRESULT GetBindings(
HACCESSOR haccessor, 
DBBINDING*& pBindings, 
ULONG& cBinds, 
DBACCESSORFLAGS& dwFlags);

Parameters

haccessor

Handle to accessor.

pBindings

Reference to buffer to receive callee-allocated DBBINDING array. This array must be freed using CoTaskMemFree.

cBinds

Reference to buffer to receive the number of bindings in the array.

dwFlags

Reference to buffer to receive the DBACCESSORFLAGS used to create the accessor handle.

Return Code

S_OK

Method succeeded.

E_FAIL
Returned if the object is not attached.

Comments

Uses IAccessor::GetBindings to retrieve the binding information that was used to create the accessor. The bindings array returned must be freed using CoTaskMemFree.