Home COM GDI+ WebBrowser Data Access

ICommand Interface

 

IID_ICommand

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

 

 

ICommand contains methods to execute commands. A command can be executed many times, and the parameter values can vary. This interface is mandatory on commands.

 

Documentation: ICommand

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ICommand Methods

Description

Cancel

Cancels the current command execution.

Execute

Executes the command.

GetDBSession

Returns an interface pointer to the session that created the command.

 

Cancel

 

FUNCTION ICommand_Cancel ( _
  BYVAL pthis AS DWORD PTR _

  ) AS LONG


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

END FUNCTION

 

 

Execute

 

FUNCTION ICommand_Execute ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pUnkOuter AS DWORD _

, BYREF riid AS GUID _

, BYREF pParams AS DBPARAMS _

, BYREF pcRowsAffected AS LONG _

, BYREF ppRowset AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ICommand_Execute (pthis, pUnkOuter, riid, pParams, pcRowsAffected, ppRowset) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetDBSession

 

FUNCTION ICommand_GetDBSession ( _
  BYVAL pthis AS DWORD PTR _

, BYREF riid AS GUID _

, BYREF ppSession AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING ICommand_GetDBSession (pthis, riid, ppSession) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Saturday, 11 November 2006 01:54:03 +0100