OLE DB Simple Provider Toolkit

OLEDBSimpleProvider::isAsync

Indicates whether provider data will populate the consumer application or control asynchronously.

HRESULT isAsync (
   BOOL    *pbAsynch);

Parameter

*pbAsynch
[out]
Boolean value indicating whether data is returned asynchronously (1) or not (0).

Return Codes

S_OK
The method succeeded.
E_FAIL
A provider-specific error occurred.

Comments

OLEDBSimpleProvider::isAsync should always return the appropriate state; it should never block.

In Java, IOLEDBSimpleProvider::isAsync returns type int instead of Boolean because of how the interface definition is generated. Developers should return 0 for false and a nonzero integer for true.