PrjFileNameCompare function (projectedfslib.h)

Compares two file names and returns a value that indicates their relative collation order.

Syntax

int PrjFileNameCompare(
  PCWSTR fileName1,
  PCWSTR fileName2
);

Parameters

fileName1

A null-terminated Unicode string specifying the first name to compare.

fileName2

A null-terminated Unicode string specifying the second name to compare.

Return value

  • <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

Remarks

The provider may use this routine to determine how to sort file names in the same order that the file system does.

Requirements

   
Minimum supported client Windows 10, version 1809 [desktop apps only]
Minimum supported server Windows Server [desktop apps only]
Target Platform Windows
Header projectedfslib.h