#ifndef _NTIOAPI_H
/**
* The FILE_STANDARD_LINK_INFORMATION structure contains standard information about a file link.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/ns-ntifs-file_standard_link_information
*/
typedef struct _FILE_STANDARD_LINK_INFORMATION
{
ULONG NumberOfAccessibleLinks;
ULONG TotalNumberOfLinks;
BOOLEAN DeletePending;
BOOLEAN Directory;
} FILE_STANDARD_LINK_INFORMATION, *PFILE_STANDARD_LINK_INFORMATION;
View code on GitHub
// ntifs.h
typedef struct _FILE_STANDARD_LINK_INFORMATION {
ULONG NumberOfAccessibleLinks;
ULONG TotalNumberOfLinks;
BOOLEAN DeletePending;
BOOLEAN Directory;
} FILE_STANDARD_LINK_INFORMATION, *PFILE_STANDARD_LINK_INFORMATION;
View the official Windows Driver Kit DDI reference
This structure is documented in Windows Driver Kit.
FILE_STANDARD_LINK_INFORMATION is used to query file link information.
NumberOfAccessibleLinks
Number of non-deleted links to this file.
TotalNumberOfLinks
Total number of links to this file, including links marked for delete.
DeletePending
Boolean value. This field must be set to TRUE to indicate that a file deletion has been requested; otherwise, set to FALSE.
Directory
Set to 1 to indicate that the file is a directory; otherwise, set to FALSE.