i just found a little piece of code that let me create a directory with windows API without using system(). The only problem is that i can\'t create directory in subdirector
You need another backslash in there:
CreateDirectory ("C:\\Users\\morons", NULL);