Home COM GDI+ WebBrowser Data Access

IIndexDefinition Interface

 

IID_IIndexDefinition

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

 

 

IIndexDefinition exposes simple methods to create and drop indexes from the data store.

 

Documentation: IIndexDefinition

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IIndexDefinition Methods

Description

CreateIndex

Adds a new index to a base table.

DropIndex

Drops an index from a base table.

 

QueryInterface

 

FUNCTION IIndexDefinition_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 IIndexDefinition_QueryInterface (pthis, riid, ppvObj) TO HRESULT
  FUNCTION = HRESULT
 

END FUNCTION

 

 

AddRef

 

FUNCTION IIndexDefinition_AddRef ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

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

END FUNCTION

 

 

Release

 

FUNCTION IIndexDefinition_Release ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

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

END FUNCTION

 

 

CreateIndex

 

FUNCTION IIndexDefinition_CreateIndex ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pTableID AS DWORD _

, BYVAL pIndexID AS DWORD _

, BYVAL cIndexColumnDescs AS DWORD _

, BYVAL rgIndexColumnDescs AS DWORD _

, BYVAL cPropertySets AS DWORD _

, BYREF rgPropertySets AS DWORD _

, BYREF ppIndexID AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IIndexDefinition_CreateIndex (pthis, pTableID, pIndexID, cIndexColumnDescs, rgIndexColumnDescs, cPropertySets, rgPropertySets, ppIndexID) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

DropIndex

 

FUNCTION IIndexDefinition_DropIndex ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pTableID AS DWORD _

, BYVAL pIndexID AS DWORD _

  ) AS LONG


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

END FUNCTION

 

 

Page last updated on Wednesday, 15 February 2006 23:32:34 +0100