Fais au moins l'effort de te documenter !!!
Je te donne la fonction, tu peux au moins chercher les arguments.
J'ai jamais dit qu'il n'y en avait qu'un.
Déjà que si tu avais cherché sur le site tu aurais dû trouver.
Voilà ce que me donne la MSDN (documentation de microsoft) :
BOOL CreateDirectory(
LPCTSTR lpPathName, // pointer to directory path string
LPSECURITY_ATTRIBUTES lpSecurityAttributes // pointer to security descriptor
);
Parameters
- lpPathName
- Pointer to a null-terminated string that specifies the path of the directory
to be created.
There is a default string size limit for paths of MAX_PATH characters. This
limit is related to how the CreateDirectory function parses paths.
Windows NT: An application can transcend this limit and send in paths
longer than MAX_PATH characters by calling the wide (W) version of
CreateDirectory and prepending "\\?\" to the path. The
"\\?\" tells the function to turn off path parsing; it lets paths
longer than MAX_PATH be used with CreateDirectoryW. However, each
component in the path cannot be more than MAX_PATH characters long. This also
works with UNC names. The "\\?\" is ignored as part of the path.
For example, "\\?\C:\myworld\private" is seen as
"C:\myworld\private", and
"\\?\UNC\bill_g_1\hotstuff\coolapps" is seen as
"\\bill_g_1\hotstuff\coolapps".
- lpSecurityAttributes
- Windows NT: Pointer to a SECURITY_ATTRIBUTES structure. The
lpSecurityDescriptor member of the structure specifies a security
descriptor for the new directory. If lpSecurityAttributes is NULL, the
directory gets a default security descriptor. The target file system must
support security on files and directories for this parameter to have an effect.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Tu as tout ce qu'il te faut là-dedans.

Si tu veux des exemples, cherche un peu sur le site, c'est vraiment pas ce qui manque.
YOYO, @+.
"L'intelligence c'est comme un parachute, quand on en n'a pas...on s'écrase !"
____________________________________________
[Site officiel de YoyoCut, découpe fichiers open source]