Using Win32 functions in Visual FoxPro Image Gallery
File Management
..msdn
CopyFile
CopyFileTransacted
CreateDirectory
CreateFile
CreateFileTransacted
CreateHardLink
CreateSymbolicLink
DeleteFile
DeleteFileTransacted
FindClose
FindCloseChangeNotification
FindFirstChangeNotification
FindFirstFile
FindNextChangeNotification
FindNextFile
FlushFileBuffers
GetBinaryType
GetCurrentDirectory
GetDriveType
GetFileAttributes
GetFileAttributesEx
GetFileInformationByHandle
GetFileType
GetFullPathName
GetLongPathName
GetShortPathName
GetTempFileName
GetTempPath
LockFile
MoveFile
MoveFileTransacted
OpenFile
QueryDosDevice
ReadDirectoryChangesW
ReadFile
RemoveDirectory
RemoveDirectoryTransacted
ReplaceFile
SearchPath
SetCurrentDirectory
SetEndOfFile
SetFileAttributes
SetFilePointer
SetFilePointerEx
SetSearchPathMode
UnlockFile
WriteFile
_lclose
_lopen
Code examples:
DeleteFileTransacted
..msdn    Add comment     W32 Constants      Translate this page
Deletes an existing file as a transacted operation.
Code examples:
Declaration:
BOOL WINAPI DeleteFileTransacted(
    __in  LPCTSTR lpFileName,
    __in  HANDLE hTransaction
);
FoxPro declaration:
DECLARE INTEGER DeleteFileTransacted IN kernel32;
    STRING lpFileName,;
    INTEGER hTransaction
Parameters:
lpFileName [in]
The name of the file to be deleted.

hTransaction [in]
A handle to the transaction. This handle is returned by the CreateTransaction function.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
nResult = DeleteFileTransacted( m.cFilename,;
    m.hTransaction )

IF nResult = 0
    RollbackTransaction( m.hTransaction )
ELSE
    CommitTransaction( m.hTransaction )
ENDIF
My comment:
Minimal OS: Vista

See also: RemoveDirectoryTransacted, CreateTransaction, CommitTransaction, RollbackTransaction, DeleteFile
Word Index links for the DeleteFileTransacted :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2010-05-24 12:02:07
Modified: 2010-05-24 12:07:31
Visited in last 7 days: 12
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.161.145.251)
2 sec.Function: 'NetShareEnum'
1.38 min.Function: 'Shell_NotifyIcon'
Function group: 'Shell Functions'
Google
Advertise here!