To open an existing directory, use CreateFile()
with the FILE_FLAG_BACKUP_SEMANTICS
attribute:
To create directory:
-
If you don't need to create intermediate directories, use
CreateDirectory()
: -
Otherwise, use
SHCreateDirectoryEx()
.In Visual C++ 6.0, you'll have to use
LoadLibrary()
andGetProcAddress()
withshell32.dll
; as a procedure name, specify eitherSHCreateDirectoryExW()
orSHCreateDirectoryExA()
, not justSHCreateDirectoryEx()
.
No comments:
Post a Comment