 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-04-23 22:39:28 | | Modified: | 2008-12-05 10:47:12 | Visited in last 7 days: 10 |