#include <stdarg.h>
#include <internal/tls.h>
#include <internal/wine/msvcrt.h>
#include <internal/locale.h>
#include <wine/debug.h>
Go to the source code of this file.
◆ _CRT_PRECOMP_H
◆ WIN32_NO_STATUS
◆ BlockEnvToEnvironA()
Definition at line 34 of file environ.c.
35{
36 char *
ptr, *environment_strings;
37 char **envptr;
40
41 TRACE(
"BlockEnvToEnvironA()\n");
42
44 if (environment_strings ==
NULL) {
45 return -1;
46 }
47
49 {
51
54 }
55
58 {
60 {
62
64 {
66 {
67 for (envptr--; envptr >=
_environ; envptr--)
72 return -1;
73 }
76 }
77 }
78
80 }
81
84}
ACPI_SIZE strlen(const char *String)
BOOL WINAPI FreeEnvironmentStringsA(IN LPSTR EnvironmentStrings)
GLuint GLuint GLsizei count
#define memcpy(s1, s2, n)
#define GetEnvironmentStringsA
Referenced by DllMain().
◆ BlockEnvToEnvironW()
Definition at line 86 of file environ.c.
87{
88 wchar_t *
ptr, *environment_strings;
89 wchar_t **envptr;
92
93 TRACE(
"BlockEnvToEnvironW()\n");
94
96 if (environment_strings ==
NULL) {
97 return -1;
98 }
99
101 {
103
106 }
107
110 {
112 {
114
116 {
118 {
119 for (envptr--; envptr >=
_wenviron; envptr--)
124 return -1;
125 }
128 }
129 }
130
132 }
133
136}
BOOL WINAPI FreeEnvironmentStringsW(IN LPWSTR EnvironmentStrings)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
LPWSTR WINAPI GetEnvironmentStringsW(void)
Referenced by DllMain().
◆ DllMain()
Definition at line 63 of file msvcrt40.c.
64{
67 {
69
70 TRACE(
"Process Attach\n");
78
79
82
85
88
90 {
93 }
94
97
98
100
102
103
104
105 TRACE(
"Attach done\n");
106 break;
107
109
110 break;
111
114 break;
115
118
123
124
125
131
136
141
142 TRACE(
"Detach done\n");
143 break;
144 }
145
147}
#define DLL_THREAD_DETACH
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define DLL_THREAD_ATTACH
LPSTR WINAPI GetCommandLineA(VOID)
LPWSTR WINAPI GetCommandLineW(VOID)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
MSVCRT__locale_t global_locale
void msvcrt_init_io(void)
void msvcrt_init_mt_locks(void)
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
void msvcrt_free_mt_locks(void)
void msvcrt_free_io(void)
int BlockEnvToEnvironA(void)
void FreeEnvironment(char **environment)
BOOL msvcrt_init_heap(void)
int BlockEnvToEnvironW(void)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
void msvcrt_free_tls_mem(void)
BOOL msvcrt_free_tls(void)
BOOL msvcrt_init_tls(void)
void msvcrt_free_popen_data(void)
ULONG dwOSVersionInfoSize
struct _OSVERSIONINFOW OSVERSIONINFOW
◆ FreeEnvironment()
void FreeEnvironment |
( |
char ** |
environment | ) |
|
Internal function to deallocate environment block. Although it's parameter are defined as char**, it's able to work also with wide character environment block which are of type wchar_t**.
- Parameters
-
environment | Environment to free. |
Definition at line 190 of file environ.c.
191{
192 char **envptr;
193 for (envptr = environment; *envptr !=
NULL; envptr++)
196}
Referenced by DllMain().
◆ msvcrt_init_heap()
Definition at line 889 of file heap.c.
890{
891#ifdef __REACTOS__
893#else
895#endif
897}
HANDLE WINAPI HeapCreate(DWORD flOptions, SIZE_T dwInitialSize, SIZE_T dwMaximumSize)
Referenced by DllMain().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
msvcrt |
| ) |
|
◆ __initenv
◆ __winitenv
◆ _acmdln
◆ _environ
◆ _osplatform
◆ _osver
◆ _wcmdln
◆ _wenviron
◆ _winmajor
◆ _winminor
◆ _winver