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:
Locking and unlocking file of a VFP table
UnlockFile
..msdn    Add comment     W32 Constants      Translate this page
Unlocks a region in an open file. Unlocking a region enables other processes to access the region.
Code examples:
Locking and unlocking file of a VFP table
Declaration:
BOOL UnlockFile(
  HANDLE hFile,                    // handle to file
  DWORD dwFileOffsetLow,           // low-order word of start
  DWORD dwFileOffsetHigh,          // high-order word of start
  DWORD nNumberOfBytesToUnlockLow, // low-order word of length
  DWORD nNumberOfBytesToUnlockHigh // high-order word of length
);
FoxPro declaration:
DECLARE INTEGER UnlockFile IN kernel32;
    INTEGER hFile,;
    INTEGER dwFileOffsetLow,;
    INTEGER dwFileOffsetHigh,;
    INTEGER nNumberOfBytesToUnlockLow,;
    INTEGER nNumberOfBytesToUnlockHigh
Parameters:
hFile
[in] Handle to a file that contains a region locked with LockFile. The file handle must have been created with either GENERIC_READ or GENERIC_WRITE access to the file.

dwFileOffsetLow
[in] Specifies the low-order word of the starting byte offset in the file where the locked region begins.

dwFileOffsetHigh
[in] Specifies the high-order word of the starting byte offset in the file where the locked region begins.

nNumberOfBytesToUnlockLow
[in] Specifies the low-order word of the length of the byte range to be unlocked.

nNumberOfBytesToUnlockHigh
[in] Specifies the high-order word of the length of the byte range to be unlocked.
Return value:
If the function succeeds, the return value is nonzero.
Word Index links for the UnlockFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-18 12:00:00
Modified: 2001-11-26 16:03:42
Visited in last 7 days: 23
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.72.162)
11 sec.Function: 'waveInAddBuffer'
22 sec.
Function group: 'Atom'
33 sec.Function: 'WTSEnumerateProcesses'
44 sec.Function: 'CeDeleteDatabase'
55 sec.Function: 'GetDlgCtrlID'
1.12 min.Function: 'WNetGetNetworkInformation'
1.32 min.Function: 'AttachVirtualDisk'
1.53 min.
Function group: 'IP Helper'
1.75 min.Function: 'IsClipboardFormatAvailable'
1.97 min.Function: 'GdipDrawPieI'
Google
Advertise here!