Page History
...
1 If the path points to a valid directory with no filefiles.
Remarks
The IsDirectoryEmpty service determines if the directory is both valid and devoid of any files. This is includes invisible system files. So, even if a directory appears empty in Windows Explorer, this will return 0 if there are any files whatsoever in the directory.
...