FindFirstFile() malfunctions when first operand ends with "\My Documents\"

I am building Win32 apps using MS VS 2010 C++ Express on a HP laptop running 64-bit Win 7 Professional.

I have a utility that creates directory trees and file lists using
FindFirstFile(). The Utility ALWAYS works as desired EXCEPT when the operand directory string ends with "\My Documents\"

I.e., when wchar_t wcFspecTemplate[512] == "c:\Users\Robert\My Documents\"

the statement

hFind = FindFirstFile((LPCWSTR)wcFspecTemplate,&ffd);

ALWAYS returns hFind == 0xffffffff == INVALID_HANDLE_VALUE

I find it absolutely amazing that no else appears to have complained about this, leading me to conclude that there must be a straightforward work-around that I have yet to discover. Can anyone enlighten me?
Thanks for attending to this.
Win7's Document structure is stupid. The actual directory name is "Documents", not "My Documents".

"My Documents" is sort of like a virtual directory that merges files stored in several different places.
Topic archived. No new replies allowed.