Home COM GDI+ WebBrowser Data Access

ICommandPrepare Interface

 

IID_ICommandPrepare

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

 

 

This optional interface encapsulates command optimization, a separation of compile time and run time, as found in traditional relational database systems.

 

Documentation: ICommandPrepare

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ICommandPrepare Method

Description

Prepare

Validates and optimizes the current command.

Unprepare

Discards the current command execution plan.

 

QueryInterface

 

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

END FUNCTION

 

 

AddRef

 

FUNCTION ICommandPrepare_AddRef ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

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

END FUNCTION

 

 

Release

 

FUNCTION ICommandPrepare_Release ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

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

END FUNCTION

 

 

ICommandPrepare_Prepare

 

FUNCTION ICommandPrepare_Prepare ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL cExpectedRuns AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ICommandPrepare_Prepare (pthis, cExpectedRuns) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

ICommandPrepare_Unprepare

 

FUNCTION ICommandPrepare_Unprepare ( _
  BYVAL pthis AS DWORD PTR _

  ) AS LONG

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

END FUNCTION

 

 

Page last updated on Wednesday, 15 February 2006 23:19:10 +0100