Using Win32 functions in Visual FoxPro Image Gallery
Kernel Transaction Manager
CommitTransaction
CreateTransaction
RollbackTransaction
Code examples:
Copying files as a transacted operation (Vista)
RollbackTransaction
..msdn    Add comment     W32 Constants      Translate this page
Requests that the specified transaction be rolled back. This function is synchronous.
Code examples:
Copying files as a transacted operation (Vista)
Declaration:
BOOL WINAPI RollbackTransaction(
  __in  HANDLE TransactionHandle
);

FoxPro declaration:
DECLARE INTEGER RollbackTransaction IN KtmW32;
    INTEGER TransactionHandle
Parameters:
TransactionHandle
A handle to the transaction.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
LOCAL hTrans

hTrans = CreateTransaction(0, 0, 0, 0, 0, 1000, NULL)

IF hTrans = INVALID_HANDLE_VALUE
    ? "CreateTransaction call failed:", GetLastError()
    RETURN
ENDIF

* . . .

= RollbackTransaction(m.hTrans)
= CloseHandle(m.hTrans)

My comment:
Requires Windows Vista.

See also: CreateTransaction, CommitTransaction
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-04 15:51:13
Modified: 2008-12-04 15:57:20
Visited in last 7 days: 19
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.204.42)
19 sec.Example: 'Using an Event Object. Part B: running an application responding to events'
51 sec.Example: 'Displaying the main Dial-Up Networking dialog box'
2 day(s)Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
 Function: 'NetScheduleJobEnum'
Function group: 'Network Management'
 Function: 'SetMonitorContrast'
 Function: 'CryptGetProvParam'
Function group: 'Cryptography Reference'
Google
Advertise here!