Home COM GDI+ WebBrowser Data Access

ITableCreation Interface

 

IID_ITableCreation

{0C733ABC-2A1C-11CE-ADE5-00AA0044773D}

 

 

The ITableCreation extends ITableDefinition to provide a full set of methods to create or describe the complete set of table definition information.

 

Documentation: ITableCreation

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ITableDefinition Methods

Description

CreateTable

Creates a new base table in the data store.

DropTable

Drops a base table in the data store.

AddColumn

Adds a new column to a base table.

DropColumn

Drops a column from a base table.

ITableCreation Methods

Description

GetTableDefinition

Adds a new column to a base table.

 

QueryInterface

 

FUNCTION ITableCreation_QueryInterface ( _

  BYVAL pthis AS DWORD PTR _

, BYREF riid AS GUID _

, BYREF ppvObj AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[0] USING ITableCreation_QueryInterface (pthis, riid, ppvObj) TO HRESULT
  FUNCTION = HRESULT
 

END FUNCTION

 

 

AddRef

 

FUNCTION ITableCreation_AddRef ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

  LOCAL DWRESULT AS LONG
  CALL DWORD @@pthis[1] USING ITableCreation_AddRef (pthis) TO DWRESULT
  FUNCTION = DWRESULT
 

END FUNCTION

 

 

Release

 

FUNCTION ITableCreation_Release ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

  LOCAL DWRESULT AS DWORD
  CALL DWORD @@pthis[2] USING ITableCreation_Release (pthis) TO DWRESULT
  FUNCTION = DWRESULT
 

END FUNCTION

 

 

CreateTable

 

FUNCTION ITableCreation_CreateTable ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pUnkOuter AS DWORD _

, BYREF pTableID AS DBID _

, BYVAL cColumnDescs AS DWORD _

, BYVAL rgColumnDescs AS DWORD _

, BYREF riid AS GUID _

, BYVAL cPropertySets AS DWORD _

, BYREF rgPropertySets AS DWORD _

, BYREF ppTableID AS DBID _

, BYREF ppRowset AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ITableCreation_CreateTable (pthis, pUnkOuter, pTableID, cColumnDescs, rgColumnDescs, riid, cPropertySets, rgPropertySets, ppTableID, ppRowset) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

DropTable

 

FUNCTION ITableCreation_DropTable ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pTableID AS DBID _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ITableCreation_DropTable (pthis, pTableID) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

AddColumn

 

FUNCTION ITableCreation_AddColumn ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pTableID AS DBID _

, BYREF pColumnDesc AS DWORD _

, BYREF ppColumnID AS DBID _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING ITableCreation_AddColumn (pthis, pTableID, pColumnDesc, ppColumnID) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

DropColumn

 

FUNCTION ITableCreation_DropColumn ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pTableID AS DBID _

, BYREF pColumnID AS DBID _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING ITableCreation_DropColumn (pthis, pTableID, pColumnID) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetTableDefinition

 

FUNCTION ITableCreation_GetTableDefinition ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pTableID AS DBID _

, BYVAL pColumnDescs AS DWORD _

, BYREF prgColumnDescs AS DWORD _

, BYREF pcPropertySets AS DWORD _

, BYREF prgPropertySets AS DWORD _

, BYREF pcConstrainDescs AS DWORD _

, BYREF prgConstrainDescs AS DWORD _

, BYREF ppwszStringBuffer AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING ITableCreation_GetTableDefinition (pthis, pTableID, pColumnDescs, prgColumnDescs, pcPropertySets, prgPropertySets, pcConstrainDescs, prgConstrainDescs, ppwszStringBuffer) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Wednesday, 15 February 2006 23:51:46 +0100