PrjFileNameCompare function (projectedfslib.h)
Compares two file names and returns a value that indicates their relative collation order.
int PrjFileNameCompare(
[in] PCWSTR fileName1,
[in] PCWSTR fileName2
);
[in] fileName1
A null-terminated Unicode string specifying the first name to compare.
[in] fileName2
A null-terminated Unicode string specifying the second name to compare.
- <0 indicates fileName1 is before fileName2 in collation order
- 0 indicates fileName1 is equal to fileName2
- >0 indicates fileName1 is after fileName2 in collation order
The provider may use this routine to determine how to sort file names in the same order that the file system does.
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 [desktop apps only] |
Minimum supported server | Windows Server [desktop apps only] |
Target Platform | Windows |
Header | projectedfslib.h |