Home COM GDI+ WebBrowser Data Access

ITransaction Interface

 

IID_ITransaction

{0FB15084-AF41-11CE-BD2B-204C4F4F5020}

 

 

The ITransaction interface is used to commit, abort, and obtain status information about transactions. For more information about transactions, see Chapter 15: Transactions.

 

Documentation: ITransaction

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ITransaction Methods

Description

Commit

Commits a transaction.

Abort

Aborts a transaction.

GetTransactionInfo

Returns information about a transaction.

 

QueryInterface

 

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

END FUNCTION

 

 

AddRef

 

FUNCTION ITransaction_AddRef ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

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

END FUNCTION

 

 

Release

 

FUNCTION ITransaction_Release ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

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

END FUNCTION

 

 

Commit

 

FUNCTION ITransaction_Commit ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL fRetaining AS LONG _

, BYVAL grfTC AS DWORD _

, BYVAL grfRM AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ITransaction_Commit (pthis, fRetaining, grfTC, grfRM) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Abort

 

FUNCTION ITransaction_Abort ( _
  BYVAL pthis AS DWORD PTR _

, BYREF pboidReason AS GUID _

, BYVAL fRetaining AS LONG _

, BYVAL fAsync AS LONG _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ITransaction_Abort (pthis, pboidReason, fRetaining, fAsync) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetTransactionInfo

 

FUNCTION ITransaction_GetTransactionInfo ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pInfo AS XACTTRANSINFO _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING ITransaction_GetTransactionInfo (pthis, pInfo) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Tuesday, 12 September 2006 22:50:35 +0200