[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3

Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3
License: MIT
This commit is contained in:
Timo Kreuzer 2024-05-11 07:03:12 +02:00
parent f1b60c66f0
commit 04e0dc4a7a
568 changed files with 115483 additions and 0 deletions

View file

@ -0,0 +1,29 @@
//
// debug_fill_threshold.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Functions to control the debug fill threshold used by the secure string
// functions. A threshold of 0 disables filling; a threshold of SIZE_MAX
// means to always fill to the maximum.
//
#include <corecrt_internal.h>
#include <stdint.h>
static size_t __acrt_debug_fill_threshold = SIZE_MAX;
extern "C" size_t __cdecl _CrtSetDebugFillThreshold(size_t const new_threshold)
{
size_t const old_threshold{__acrt_debug_fill_threshold};
__acrt_debug_fill_threshold = new_threshold;
return old_threshold;
}
extern "C" size_t __cdecl _CrtGetDebugFillThreshold()
{
return __acrt_debug_fill_threshold;
}