Hello all,
Say i want to create a file called "slash0r.cfg" in the directory "main\config\slash0r". That isn't directly possible with CreateFile, so i should use CreateDirectory first, but i have no clue how to create the directory structure, so can anybody help me with that problem?
tia
Create Directory doesn't ask for a structure:
BOOL CreateDirectory(
LPCTSTR lpPathName, // pointer to directory path string
LPSECURITY_ATTRIBUTES lpSecurityAttributes // pointer to security descriptor
);
I think, the question is, how to create more then one directory.
CreateDirectory cannot make two dirs at once, you first have to
create "main", then goto "main", then "config", goto "config"
and make "slash0r".
You can dive into dirs with the SetCurrentDir function.