Creating directory preserving name case

MSDN:

Windows limitations on file and path name

The limitations have been pulled from Windows SDK header file

Determine Invalid Characters in File Name and Path

This is sample code. Add error handling and adjust to your requirements as necessary.