用createfile 就可以了,他是支持目录的 The CreateFile function creates or opens the following objects and returns a handle that can be used to access the object: files pipes mailslots communications resources disk devices (Windows NT only) consoles directories (open only) DirectoriesAn application cannot create a directory with CreateFile; it must call CreateDirectory or CreateDirectoryEx to create a directory.
The CreateFile function creates or opens the following objects and returns a handle that can be used to access the object:
files
pipes
mailslots
communications resources
disk devices (Windows NT only)
consoles
directories (open only)
DirectoriesAn application cannot create a directory with CreateFile; it must call CreateDirectory or CreateDirectoryEx to create a directory.
不可以包括 \/:*?"<>|