C/C++/MSVC programmers: how do I open and make use of file directories?

I want to write a quick application for home use that selects a random MP3 file from a directory on my PC, and copy it to my MP3 player. I think I want to open the directory itself to extract the file names and file sizes. I know I could do what I want by using system() and some DOS commands to write the data I want to a text file, but that’s too kludgey and too easy.

I’d like to use C/C++/MSVC functions to open the DIR directly, but I couldn’t find anything in the Visual Studio documentation under ‘file’ or ‘directory’ to support this. What should I look for?

I beieive FindFirstFile/FindNextFile in the PlatformSDK can be used to do this kind of thing.