Home COM GDI+ WebBrowser Data Access

ICommandPersist Interface

 

IID_ICommandPersist

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

 

 

Command objects support ICommandPersist for persisting the state of a command object. Persisting a command object does not persist any active rowsets that may have resulted from the execution of the command object, nor does it persist accessors, property settings, or parameter information associated with the command object.

 

Documentation: ICommandPersist

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ICommandPersist Method

Description

DeleteCommand

Deletes a persisted command.

GetCurrentCommand

Returns the DBID of the current command.

LoadCommand

Loads a persisted command.

SaveCommand

Saves the current command.

 

DeleteCommand

 

FUNCTION ICommandPersist_DeleteCommand ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pCommandID AS DBID _

  ) AS LONG


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

END FUNCTION

 

 

GetCurrentCommand

 

FUNCTION ICommandPersist_GetCurrentCommand ( _
  BYVAL pthis AS DWORD PTR _

, BYREF ppCommandID AS DBID _

  ) AS LONG


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

END FUNCTION

 

 

LoadCommand

 

FUNCTION ICommandPersist_LoadCommand ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pCommandID AS DBID _

, BYVAL dwFlags AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING ICommandPersist_LoadCommand (pthis, pCommandID, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SaveCommand

 

FUNCTION ICommandPersist_SaveCommand ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pCommandID AS DBID _

, BYVAL dwFlags AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING ICommandPersist_SaveCommand (pthis, pCommandID, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Saturday, 11 November 2006 02:42:34 +0100