getProcessName(void)
{
String path;
- size_t size = MAX_PATH;
+ DWORD size = MAX_PATH;
char *buf = path.buf(size);
DWORD nWritten = GetModuleFileNameA(NULL, buf, size);
getCurrentDir(void)
{
String path;
- size_t size = MAX_PATH;
+ DWORD size = MAX_PATH;
char *buf = path.buf(size);
DWORD ret = GetCurrentDirectoryA(size, buf);
return path;
}
+bool
+createDirectory(const String &path)
+{
+ return CreateDirectoryA(path, NULL);
+}
+
bool
String::exists(void) const
{