In VC++, how to check if a directory is empty?

visual-c++

Solution

Use PathIsDirectoryEmpty method.

Problem

In VC++, how should I check if a directory is empty? Is there any function? I am a novice here.

Original source