2018年6月13日 星期三

[C++] CreateDirectory




#include <windows.h>
 
if (CreateDirectory("Smart", NULL))
{
    // Directory created
}
else if (ERROR_ALREADY_EXISTS == GetLastError())
{
    // Directory already exists
}
else
{
    // Failed for some other reason
}

REF:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363855%28v=vs.85%29.aspx

沒有留言:

張貼留言