10 #define _HAS_EXCEPTIONS 0 13 #pragma prefast(disable : 30030) 50 _In_ ULONG bug_check_code) {
53 #pragma warning(disable : 28159) 54 KeBugCheck(bug_check_code);
86 _IRQL_requires_max_(DISPATCH_LEVEL)
void *__cdecl
operator new(
92 const auto p = ExAllocatePoolWithTag(NonPagedPool, size,
kKstlpPoolTag);
100 _IRQL_requires_max_(DISPATCH_LEVEL)
void __cdecl
operator delete(_In_
void *p) {
107 _IRQL_requires_max_(DISPATCH_LEVEL)
void __cdecl
operator delete(
108 _In_
void *p, _In_
size_t size) {
109 UNREFERENCED_PARAMETER(size);
117 _In_
unsigned __int64 _Options, _Out_writes_z_(_BufferCount)
char *_Buffer,
118 _In_
size_t _BufferCount,
119 _In_z_ _Printf_format_string_params_(2)
char const *_Format,
120 _In_opt_ _locale_t _Locale, va_list _ArgList) {
121 UNREFERENCED_PARAMETER(_Options);
122 UNREFERENCED_PARAMETER(_Locale);
125 using _vsnprintf_type =
int __cdecl(
char *,
size_t,
const char *, va_list);
126 static _vsnprintf_type *local__vsnprintf =
nullptr;
127 if (!local__vsnprintf) {
128 UNICODE_STRING proc_name_U = {};
129 RtlInitUnicodeString(&proc_name_U, L
"_vsnprintf");
130 local__vsnprintf =
reinterpret_cast<_vsnprintf_type *
>(
131 MmGetSystemRoutineAddress(&proc_name_U));
134 return local__vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);
138 _Success_(
return >= 0) _Check_return_opt_ EXTERN_C
140 _In_
unsigned __int64 _Options,
141 _Out_writes_z_(_BufferCount)
wchar_t *_Buffer, _In_
size_t _BufferCount,
142 _In_z_ _Printf_format_string_params_(2)
wchar_t const *_Format,
143 _In_opt_ _locale_t _Locale, va_list _ArgList) {
144 UNREFERENCED_PARAMETER(_Options);
145 UNREFERENCED_PARAMETER(_Locale);
148 using _vsnwprintf_type =
149 int __cdecl(
wchar_t *,
size_t,
const wchar_t *, va_list);
150 static _vsnwprintf_type *local__vsnwprintf =
nullptr;
151 if (!local__vsnwprintf) {
152 UNICODE_STRING proc_name_U = {};
153 RtlInitUnicodeString(&proc_name_U, L
"_vsnwprintf");
154 local__vsnwprintf =
reinterpret_cast<_vsnwprintf_type *
>(
155 MmGetSystemRoutineAddress(&proc_name_U));
158 return local__vsnwprintf(_Buffer, _BufferCount, _Format, _ArgList);
_Check_return_opt_ EXTERN_C int __cdecl __stdio_common_vswprintf_s(_In_ unsigned __int64 _Options, _Out_writes_z_(_BufferCount) wchar_t *_Buffer, _In_ size_t _BufferCount, _In_z_ _Printf_format_string_params_(2) wchar_t const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
EXTERN_C int __cdecl __stdio_common_vsprintf_s(_In_ unsigned __int64 _Options, _Out_writes_z_(_BufferCount) char *_Buffer, _In_ size_t _BufferCount, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
DECLSPEC_NORETURN void __cdecl _Xlength_error(_In_z_ const char *)
DECLSPEC_NORETURN void __cdecl _Xout_of_range(_In_z_ const char *)
static const ULONG kKstlpPoolTag
A pool tag for this module.
DECLSPEC_NORETURN void __cdecl _invalid_parameter_noinfo_noreturn()
static DECLSPEC_NORETURN void KernelStlpRaiseException(_In_ ULONG bug_check_code)
DECLSPEC_NORETURN void __cdecl _Xbad_alloc()
DECLSPEC_NORETURN void __cdecl _Xruntime_error(_In_z_ const char *)
DECLSPEC_NORETURN void __cdecl _Xoverflow_error(_In_z_ const char *)
DECLSPEC_NORETURN void __cdecl _Xinvalid_argument(_In_z_ const char *)