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:
CreateFileTransacted
..msdn    Add comment     W32 Constants      Translate this page
Creates or opens a file, file stream, or directory as a transacted operation. The function returns a handle that can be used to access the object.
Code examples:
Declaration:
HANDLE WINAPI CreateFileTransacted(
    __in        LPCTSTR lpFileName,
    __in        DWORD dwDesiredAccess,
    __in        DWORD dwShareMode,
    __in_opt    LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    __in        DWORD dwCreationDisposition,
    __in        DWORD dwFlagsAndAttributes,
    __in_opt    HANDLE hTemplateFile,
    __in        HANDLE hTransaction,
    __in_opt    PUSHORT pusMiniVersion,
    __reserved  PVOID pExtendedParameter
);
FoxPro declaration:
DECLARE INTEGER CreateFileTransacted IN kernel32;
    STRING lpFileName,;
    LONG dwDesiredAccess,;
    LONG dwShareMode,;
    INTEGER lpSecurityAttributes,;
    LONG dwCreationDisposition,;
    LONG dwFlagsAndAttributes,;
    INTEGER hTemplateFile,;
    INTEGER hTransaction,;
    INTEGER pusMiniVersion,;
    INTEGER pExtendedParameter
Parameters:
lpFileName [in]
The name of an object to be created or opened.

dwDesiredAccess [in]
The access to the object, which can be summarized as read, write, both or neither (zero).

dwShareMode [in]
The sharing mode of an object, which can be read, write, both, delete, all of these, or none (refer to the following table).

lpSecurityAttributes [in, optional]
A pointer to a SECURITY_ATTRIBUTES structure that contains an optional security descriptor and also determines whether or not the returned handle can be inherited by child processes. The parameter can be NULL.

dwCreationDisposition [in]
An action to take on files that exist and do not exist.

dwFlagsAndAttributes [in]
The file attributes and flags, FILE_ATTRIBUTE_NORMAL being the most common default value.

hTemplateFile [in, optional]
A valid handle to a template file with the GENERIC_READ access right. This parameter can be NULL.

hTransaction [in]
A handle to the transaction. This handle is returned by the CreateTransaction function.

pusMiniVersion [in, optional]
The miniversion to be opened. If the transaction specified in hTransaction is not the transaction that is modifying the file, this parameter should be NULL.

pExtendedParameter
This parameter is reserved and must be NULL.
Return value:
If the function succeeds, the return value is an open handle to the specified file, device, named pipe, or mail slot.
My comment:
Minimal OS: Vista

To perform this operation as a nontransacted operation or to access objects other than files (for example, named pipes, physical devices, mailslots), use the CreateFile function.

See also: CreateTransaction, CommitTransaction, RollbackTransaction, CreateFile
Word Index links for the CreateFileTransacted :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2010-05-24 12:17:32
Modified: 2010-05-24 12:26:24
Visited in last 7 days: 60
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), 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.8.177)
10 sec.Function: 'CryptAcquireContext'
21 sec.Function: 'ExitWindows'
32 sec.Function: 'GdipTranslateWorldTransform'
42 sec.Function: 'CeGetStoreInformation'
53 sec.Function: 'GetClipboardOwner'
1.03 min.Function: 'CryptUnprotectData'
1.22 min.
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
1.38 min.
Function group: 'GDI+ Brush'
1.57 min.
Function group: 'Simple MAPI'
1.7 min.Function: 'GetEnhMetaFileHeader'
Google
Advertise here!