ReactOS
0.4.16-dev-1505-g12fa72a
LoadLibraryExA.cpp
Go to the documentation of this file.
1
//
2
// LoadLibraryExA.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Definition of __acrt_LoadLibraryExA.
7
//
8
9
#include <
corecrt_internal_win32_buffer.h
>
10
11
HMODULE
__cdecl
__acrt_LoadLibraryExA
(
12
LPCSTR
const
lpFilename,
13
HANDLE
const
hFile
,
14
DWORD
const
dwFlags
15
)
16
{
17
__crt_internal_win32_buffer<wchar_t>
wide_file_name;
18
19
errno_t
const
cvt1
=
__acrt_mbs_to_wcs_cp
(
20
lpFilename,
21
wide_file_name,
22
__acrt_get_utf8_acp_compatibility_codepage
()
23
);
24
25
if
(
cvt1
!= 0) {
26
return
nullptr
;
27
}
28
29
return ::LoadLibraryExW(
30
wide_file_name.
data
(),
31
hFile
,
32
dwFlags
33
);
34
}
__acrt_LoadLibraryExA
HMODULE __cdecl __acrt_LoadLibraryExA(LPCSTR const lpFilename, HANDLE const hFile, DWORD const dwFlags)
Definition:
LoadLibraryExA.cpp:11
__cdecl
#define __cdecl
Definition:
accygwin.h:79
__crt_win32_buffer
Definition:
corecrt_internal_win32_buffer.h:152
__crt_win32_buffer::data
char_type * data()
Definition:
corecrt_internal_win32_buffer.h:246
corecrt_internal_win32_buffer.h
__acrt_mbs_to_wcs_cp
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)
Definition:
corecrt_internal_win32_buffer.h:619
__acrt_get_utf8_acp_compatibility_codepage
unsigned int __acrt_get_utf8_acp_compatibility_codepage()
Definition:
corecrt_internal_win32_buffer.h:422
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
dwFlags
LPCWSTR LPCWSTR LPCWSTR DWORD dwFlags
Definition:
env.c:37
hFile
_In_ HANDLE hFile
Definition:
mswsock.h:90
cvt1
errno_t const cvt1
Definition:
strftime.cpp:139
errno_t
int errno_t
Definition:
corecrt.h:615
LPCSTR
const char * LPCSTR
Definition:
xmlstorage.h:183
sdk
lib
ucrt
internal
LoadLibraryExA.cpp
Generated on Fri Jul 11 2025 06:15:22 for ReactOS by
1.9.6