ReactOS 0.4.16-dev-1049-g378a335
SetEnvironmentVariableA.cpp
Go to the documentation of this file.
1//
2// SetEnvironmentVariableA.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Definition of __acrt_SetEnvironmentVariableA.
7//
8
10
12 LPCSTR const lpName,
13 LPCSTR const lpValue
14 )
15{
18
20 lpName,
21 wide_name,
23 );
24
25 if (cvt1 != 0) {
26 return FALSE;
27 }
28
30 lpValue,
31 wide_value,
33 );
34
35 if (cvt2 != 0) {
36 return FALSE;
37 }
38
39 return ::SetEnvironmentVariableW(wide_name.data(), wide_value.data());
40}
BOOL __cdecl __acrt_SetEnvironmentVariableA(LPCSTR const lpName, LPCSTR const lpValue)
#define __cdecl
Definition: accygwin.h:79
errno_t __acrt_mbs_to_wcs_cp(char const *const null_terminated_input_string, __crt_win32_buffer< wchar_t, ResizePolicy > &win32_buffer, unsigned int const code_page)
unsigned int __acrt_get_utf8_acp_compatibility_codepage()
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
errno_t const cvt2
Definition: strftime.cpp:161
errno_t const cvt1
Definition: strftime.cpp:139
int errno_t
Definition: corecrt.h:615
_In_ LPCSTR lpName
Definition: winbase.h:2820
const char * LPCSTR
Definition: xmlstorage.h:183