ReactOS
0.4.16-dev-732-g2d1144a
wmkdir.cpp
Go to the documentation of this file.
1
//
2
// wmkdir.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// The _wmkdir() function, which creates a directory.
7
//
8
#include <
corecrt_internal.h
>
9
#include <direct.h>
10
11
12
13
// Creates a directory. Returns 0 on success; returns -1 and sets errno and
14
// _doserrno on failure.
15
extern
"C"
int
__cdecl
_wmkdir
(
wchar_t
const
*
const
path
)
16
{
17
if
(!
CreateDirectoryW
(
path
,
nullptr
))
18
{
19
__acrt_errno_map_os_error
(
GetLastError
());
20
return
-1;
21
}
22
23
return
0;
24
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
corecrt_internal.h
__acrt_errno_map_os_error
void __cdecl __acrt_errno_map_os_error(unsigned long)
Definition:
errno.cpp:91
CreateDirectoryW
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition:
dir.c:90
path
Definition:
wbemprox_private.h:188
GetLastError
DWORD WINAPI GetLastError(void)
Definition:
except.c:1042
_wmkdir
int __cdecl _wmkdir(wchar_t const *const path)
Definition:
wmkdir.cpp:15
sdk
lib
ucrt
filesystem
wmkdir.cpp
Generated on Sat Feb 8 2025 06:14:37 for ReactOS by
1.9.6