An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Okay, after a little research, now I get it done:
1. Add FD_ATTRIBUTES=0x00000004 to [NativeMethods] value table;
See [MS-RDPECLIP]: File Descriptor (CLIPRDR_FILEDESCRIPTOR) | Microsoft Learn
2. Add a property to FileDescriptor class:
public bool IsDirectory { get; set; } = false;
3. Edit test code where new FileDescriptor,
set IsDirectory = true;
4. Add code to SetData{IEnumerable<FileDescriptor> fileDescriptors} method:
if (fileDescriptor.IsDirectory)
{
FILEDESCRIPTOR.dwFlags |= NativeMethods.FD_ATTRIBUTES;
FILEDESCRIPTOR.dwFileAttributes = 0x00000010; // value of FILE_ATTRIBUTE_DIRECTORY
}
5. Build and test run, working! Very nice. ;D