Set callback function to be fired for the specified connection state. The callback routine must not use any DB functions, e.g. execute, read rows, etc.., it should do a quick operation like SetEvent()...
public: void SetConnectionStateCallback(
const CONNECTION_EVENT etype,
CONNECTION_STATE_CALLBACK * pcallback,
void * usercontext = 0
);public void SetConnectionStateCallback(
const CONNECTION_EVENT etype,
CONNECTION_STATE_CALLBACK * pcallback,
void * usercontext
);Public Function SetConnectionStateCallback(
etype As const CONNECTION_EVENT,
pcallback As CONNECTION_STATE_CALLBACK *,
usercontext As void * = 0
) As void|
Parameters |
Description |
|
etype |
Set QUERY_DONE event, which will be fired, when asynchronuos query completed |
|
pcallback |
Events callback routine address |
|
usercontext |
User defined key/value that will be passed to callback routine. |
do not call GetCompletionStatus() inside any callback functions.