OpenTable (ILLDataProvider)

Syntax:

HRESULT OpenTable(LPCWSTR pszTableName, IUnknown** ppUnkOfNewDP);

Task:

Only used at root level. Requests the creation of a new node below the root and returns the new interface to List & Label.

Parameter:

pszTableName: The requested table name

ppUnkOfNewDP: Target address for the new object

Return value:

E_NOTIMPL for node objects, otherwise S_OK or E_FAIL in case of an error

Hints:

Required as an entry point for the data provider. List & Label delegates the actual work to the created nodes and subnodes.

Example:

*ppUnkOfNewDataProvider = new DPNode(_hJob, pszTableName);

return S_OK;

See also:

OpenChildTable (ILLDataProvider)