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:
How to access a file using not its name but an alias (hard link)
CreateHardLink
..msdn    Add comment     W32 Constants      Translate this page
Establishes a hard link between an existing file and a new file. This function is only supported on the NTFS file system.
Code examples:
How to access a file using not its name but an alias (hard link)
Declaration:
BOOL CreateHardLink(
    LPCTSTR lpFileName,
    LPCTSTR lpExistingFileName,
    LPSECURITY_ATTRIBUTES lpSecurityAttributes
);
FoxPro declaration:
DECLARE INTEGER CreateHardLink IN kernel32;
    STRING  lpFileName,;
    STRING  lpExistingFileName,;
    INTEGER lpSecurityAttributes
Parameters:
lpFileName
[in] A pointer to the name of a new file.
This parameter cannot specify the name of a directory.

lpExistingFileName
[in] A pointer to the name of an existing file to which a link points.

lpSecurityAttributes
Reserved; must be NULL.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
An additional hard link that is created with the CreateHardLink function allows you to have multiple directory entries for a file, that is, multiple hard links to the same file, which can be different names in the same directory, or the same or different names in different directories.

However, all hard links to a file must be on the same volume. Also lpFileName cannot specify the name of a directory.

Hard link on Wikipedia

See also: CreateSymbolicLink
Word Index links for the CreateHardLink :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-04-23 22:39:28
Modified: 2008-12-05 10:47:12
Visited in last 7 days: 20
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.224.75.202)
9 sec.Function: 'GetDriveType'
18 sec.Function: 'GetCurrentProcess'
28 sec.Function: 'GdipCreateFont'
37 sec.Function: 'AddPrinter'
47 sec.Function: 'EndPage'
57 sec.Function: 'GetEnhMetaFile'
1.1 min.Function: 'capGetDriverDescription'
1.25 min.Function: 'CeRemoveDirectory'
1.42 min.Function: 'FtpRemoveDirectory'
1.57 min.Function: 'GdipSetTextRenderingHint'
Google
Advertise here!