diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/AclUI.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/AclUI.Lib new file mode 100644 index 0000000000000000000000000000000000000000..4e035a0cd002c3eb5a866dbc886236891c96dadd Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/AclUI.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/ActiveDS.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/ActiveDS.Lib new file mode 100644 index 0000000000000000000000000000000000000000..078b5d0e5d5b6da9a04fb5ec30b44a64bd04423e Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/ActiveDS.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/AuthZ.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/AuthZ.Lib new file mode 100644 index 0000000000000000000000000000000000000000..347531131352804fb1d59077d2bd77bc5708bbc6 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/AuthZ.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/BluetoothApis.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/BluetoothApis.lib new file mode 100644 index 0000000000000000000000000000000000000000..8a25ad84540b70cb1ec7309d09cc0f5e847397d1 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/BluetoothApis.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/Cabinet.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/Cabinet.Lib new file mode 100644 index 0000000000000000000000000000000000000000..c9e70bfab62cf478cae66239286bc44ebe7ee4c7 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/Cabinet.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/advpack.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/advpack.Lib new file mode 100644 index 0000000000000000000000000000000000000000..8a1095dd644c3de88ec3b64435cb5766a7762041 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/advpack.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/ahadmin.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/ahadmin.lib new file mode 100644 index 0000000000000000000000000000000000000000..203a74a5eddc0ef82ffca0f3ff7fe076fc5e2262 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/ahadmin.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/amsi.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/amsi.lib new file mode 100644 index 0000000000000000000000000000000000000000..2af6fd4e27cd8f68bc7261e8566cdef55d094fe3 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/amsi.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appmgmts.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appmgmts.lib new file mode 100644 index 0000000000000000000000000000000000000000..0e44e541717c1aafe6e5d42acf8467c2235f6287 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appmgmts.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appmgr.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appmgr.lib new file mode 100644 index 0000000000000000000000000000000000000000..423b9ac13ceea9c81d494bf903946bb9cf4c1d25 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appmgr.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appnotify.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appnotify.lib new file mode 100644 index 0000000000000000000000000000000000000000..0a95f83f6e7898880abdddaeb68265e3105f2b34 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/appnotify.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/audioeng.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/audioeng.lib new file mode 100644 index 0000000000000000000000000000000000000000..86b8d23003c1147cf4209ef444cab95e38bbc64d Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/audioeng.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/avifil32.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/avifil32.Lib new file mode 100644 index 0000000000000000000000000000000000000000..b2bdcfb256081421f1e8e871e6498a8786f30dce Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/avifil32.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/avrt.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/avrt.lib new file mode 100644 index 0000000000000000000000000000000000000000..7bc76f6d301532d5bdb74f5b366a8a0e7b981933 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/avrt.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/basesrv.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/basesrv.lib new file mode 100644 index 0000000000000000000000000000000000000000..8a8b11dd40cd47738f05daba437e878d11cffeba Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/basesrv.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bcp47mrm.Lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bcp47mrm.Lib new file mode 100644 index 0000000000000000000000000000000000000000..b6af3dbc9c9a8558cd7e64ee3e20087f3b56f808 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bcp47mrm.Lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bcrypt.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bcrypt.lib new file mode 100644 index 0000000000000000000000000000000000000000..0fce72eaaff6f189b04fd07fa315f9aa0cc58ec2 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bcrypt.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bindlink.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bindlink.lib new file mode 100644 index 0000000000000000000000000000000000000000..247c488f784b35ff7c1e5bb5ffaff5fb49004117 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bindlink.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bthprops.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bthprops.lib new file mode 100644 index 0000000000000000000000000000000000000000..9f6568ab9572dc43f01505032f3f0187306332f8 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/bthprops.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/certadm.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/certadm.lib new file mode 100644 index 0000000000000000000000000000000000000000..bdc8add33b6659f797d67a9dca565a697c946af6 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/certadm.lib differ diff --git a/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/certca.lib b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/certca.lib new file mode 100644 index 0000000000000000000000000000000000000000..2feada019f9794bb73e730441282125fee731929 Binary files /dev/null and b/msvc/Windows Kits/10/Lib/10.0.26100.0/um/x64/certca.lib differ diff --git a/msvc/Windows Kits/10/Redist/MBN/arm64/microsoft.mbn.dll b/msvc/Windows Kits/10/Redist/MBN/arm64/microsoft.mbn.dll new file mode 100644 index 0000000000000000000000000000000000000000..85a6e6afc257434a7e9e36a1f3bed06325733943 Binary files /dev/null and b/msvc/Windows Kits/10/Redist/MBN/arm64/microsoft.mbn.dll differ diff --git a/msvc/Windows Kits/10/Redist/MBN/x64/microsoft.mbn.dll b/msvc/Windows Kits/10/Redist/MBN/x64/microsoft.mbn.dll new file mode 100644 index 0000000000000000000000000000000000000000..b96b4726f9529bd7e83e97a735d10f8e95a2e14a Binary files /dev/null and b/msvc/Windows Kits/10/Redist/MBN/x64/microsoft.mbn.dll differ diff --git a/msvc/Windows Kits/10/Redist/MBN/x86/microsoft.mbn.dll b/msvc/Windows Kits/10/Redist/MBN/x86/microsoft.mbn.dll new file mode 100644 index 0000000000000000000000000000000000000000..29ca9dcbfe6c1e8d548f492edd6dd7bc6331f580 Binary files /dev/null and b/msvc/Windows Kits/10/Redist/MBN/x86/microsoft.mbn.dll differ diff --git a/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cgets.cpp b/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cgets.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2e25ff3e4dba17054d610ae58756812aef3cf442 --- /dev/null +++ b/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cgets.cpp @@ -0,0 +1,128 @@ +// +// cgets.cpp +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Defines _cgets() and _cgets_s(), which read a string from the console. +// +#include +#include +#include + + + +extern "C" extern intptr_t __dcrt_lowio_console_input_handle; + + + +// Use of the following buffer variables is primarily for syncronizing with +// _cgets_s. _cget_s fills the MBCS buffer and if the user passes in single +// character buffer and the unicode character is not converted to single byte +// MBC, then _cget_s should buffer that character so that next call to +// _cgetws_s can return the same character. +extern "C" extern wchar_t __console_wchar_buffer; +extern "C" extern int __console_wchar_buffer_used; + + + +// Reads a string from the console; always null-terminates the buffer. Returns +// 0 on success; returns an errno error code on failure. +extern "C" errno_t __cdecl _cgets_s(char* const source_string, size_t const size_in_bytes, size_t* const size_read) +{ + _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(source_string != nullptr, EINVAL); + _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(size_in_bytes > 0, EINVAL); + _RESET_STRING(source_string, size_in_bytes); + + _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(size_read != nullptr, EINVAL); + + errno_t error = 0; + char* string = source_string; + + __acrt_lock(__acrt_conio_lock); + __try + { + // The implementation of cgets is slightly tricky. The reason being, + // the code page for console is different from the CRT code page. + // What this means is the program may interpret character + // differently from it's acctual value. To fix this, what we really + // want to do is read the input as unicode string and then convert + // it to proper MBCS representation. + // + // This fix this we are really converting from Unicode to MBCS. + // This adds performance problem as we may endup doing this + // character by character. The basic problem here is that we have + // no way to know how many UNICODE characters will be needed to fit + // them in given size of MBCS buffer. To fix this issue we will be + // converting one Unicode character at a time to MBCS. This makes + // this slow, but then this is already console input, + *size_read = 0; + + size_t available = size_in_bytes - 1; + do + { + wchar_t wchar_buff[2]; + size_t sizeRead = 0; + + error = _cgetws_s(wchar_buff, _countof(wchar_buff), &sizeRead); + if (error != 0) + break; + + if (wchar_buff[0] == '\0') + break; + + int size_converted = 0; + errno_t const wctomb_result = wctomb_s(&size_converted, string, available, wchar_buff[0]); + if (wctomb_result != 0) + { + // Put the wide character back in the buffer so that the + // unutilized wide character is still in the stream: + __console_wchar_buffer = wchar_buff[0]; + __console_wchar_buffer_used = 1; + break; + } + + string += size_converted; + *size_read += size_converted; + available -= size_converted; + } + while (available > 0); + } + __finally + { + __acrt_unlock(__acrt_conio_lock); + } + + *string++ = '\0'; + + if (error != 0) + errno = error; + + return error; +} + + + +// Reads a string from the console via ReadConsole on a cooked console handle. +// string[0] must contain the maximum length of the string. The number of +// characters written is stored in string[1]. The return value is a pointer to +// string[2] on success; nullptr on failure. +extern "C" char* __cdecl _cgets(_Inout_z_ char* const string) +{ + _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, nullptr); + _VALIDATE_CLEAR_OSSERR_RETURN(string[0] > 0, EINVAL, nullptr); + + size_t const size_in_bytes = static_cast(string[0]); + + size_t size_read = 0; + // warning 26018: Potential overflow of null terminated buffer using expression string+2 + // Suppressing warning since _cgets is purposefully unsafe. +#pragma warning(suppress:__WARNING_POTENTIAL_BUFFER_OVERFLOW_NULLTERMINATED) + errno_t const result = _cgets_s(string + 2, size_in_bytes, &size_read); + + // warning 26018: Potential overflow of null terminated buffer using expression string[1] + // Suppressing warning since _cgets is purposefully unsafe. +#pragma warning(suppress:__WARNING_POTENTIAL_BUFFER_OVERFLOW_NULLTERMINATED) + string[1] = static_cast(size_read); + + return result == 0 ? string + 2 : nullptr; +} diff --git a/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cgetws.cpp b/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cgetws.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a8e5205b678b5044b7d6f74325e7a8e51f4b188d --- /dev/null +++ b/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cgetws.cpp @@ -0,0 +1,156 @@ +// +// cgetws.cpp +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Defines _cgetws() and _cgetws_s(), which read a wide string from the console. +// +#include +#include +#include +#include + +// Use of the following buffer variables is primarily for syncronizing with +// _cgets_s. _cget_s fills the MBCS buffer and if the user passes in single +// character buffer and the unicode character is not converted to single byte +// MBC, then _cget_s should buffer that character so that next call to +// _cgetws_s can return the same character. +extern "C" wchar_t __console_wchar_buffer = 0; +extern "C" int __console_wchar_buffer_used = 0; + + + +// Reads a string from the console; always null-terminates the buffer. Returns +// 0 on success; returns an errno error code on failure. +extern "C" errno_t __cdecl _cgetws_s(wchar_t* const string_buffer, size_t const size_in_words, size_t* const size_read) +{ + _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(string_buffer != nullptr, EINVAL); + _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(size_in_words > 0, EINVAL); + _RESET_STRING(string_buffer, size_in_words); + + _VALIDATE_CLEAR_OSSERR_RETURN_ERRCODE(size_read != nullptr, EINVAL); + + __acrt_lock(__acrt_conio_lock); + errno_t retval = 0; + __try + { + wchar_t* string = string_buffer; + + // We need to decrement size_in_words because ReadConsole reads as many + // characters as the parameter passed. It doesn't null-terminate: + size_t size_remaining = size_in_words - 1; + *size_read = 0; + + // If size_in_words was 1, then there's only room for the null terminator: + if (size_remaining == 0) + __leave; + + // If there is a buffered character, first fill with the buffered + // character then proceed with reading from the console: + if (__console_wchar_buffer_used != 0) + { + *string++ = __console_wchar_buffer; + --size_remaining; + (*size_read)++; + + if (__console_wchar_buffer == L'\0') + size_remaining = 0; + + __console_wchar_buffer = 0; + } + + if (size_remaining == 0) + __leave; + + /* + * __dcrt_lowio_console_input_handle, the handle to the console input, is created the first + * time that either _getch() or _cgets() or _kbhit() is called. + */ + + if (__dcrt_lowio_ensure_console_input_initialized() == FALSE) + { + __acrt_errno_map_os_error(GetLastError()); + retval = errno; + __leave; + } + + ULONG old_state; + __dcrt_get_input_console_mode(&old_state); + __dcrt_set_input_console_mode(ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT | ENABLE_ECHO_INPUT); + + ULONG wchars_read; + BOOL read_console_result = __dcrt_read_console( + string, + static_cast(size_remaining), + &wchars_read); + + if (!read_console_result) + { + __acrt_errno_map_os_error(GetLastError()); + retval = errno; + __leave; + } + + // Set the length of the string and null terminate it: + if (wchars_read >= 2 && string[wchars_read - 2] == L'\r') + { + *size_read += wchars_read - 2; + string[wchars_read - 2] = L'\0'; + } + else if (wchars_read == size_remaining && string[wchars_read - 1] == L'\r') + { + // Special case 1: \r\n straddles the boundary: + string[wchars_read - 1] = L'\0'; + *size_read += wchars_read - 1; + } + else if (wchars_read == 1 && string[0] == L'\n') + { + // Special case 2: Read a single \n: + string[0] = L'\0'; + *size_read += 0; + } + else + { + *size_read += wchars_read; + string[wchars_read] = L'\0'; + } + + __dcrt_set_input_console_mode(old_state); + } + __finally + { + __acrt_unlock(__acrt_conio_lock); + } + + return retval; +} + + + +// Reads a string from the console via ReadConsole on a cooked console handle. +// string[0] must contain the maximum length of the string. The number of +// characters written is stored in string[1]. The return value is a pointer to +// string[2] on success; nullptr on failure. +// +// Note that _cgetws() does NOT check the pushback character buffer, so it will +// not return any character that is pushed back by a call to _ungetwch(). +extern "C" wchar_t* __cdecl _cgetws(_Inout_z_ wchar_t* const string) +{ + _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, nullptr); + _VALIDATE_CLEAR_OSSERR_RETURN(string[0] > 0, EINVAL, nullptr); + + size_t const size_in_words = static_cast(string[0]); + + size_t size_read = 0; + // warning 26018: Potential overflow of null terminated buffer using expression string+2 + // Suppressing warning since _cgetws is purposefully unsafe. +#pragma warning(suppress:__WARNING_POTENTIAL_BUFFER_OVERFLOW_NULLTERMINATED) + errno_t const result = _cgetws_s(string + 2, size_in_words, &size_read); + + // warning 26018: Potential overflow of null terminated buffer using expression string[1] + // Suppressing warning since _cgetws is purposefully unsafe. +#pragma warning(suppress:__WARNING_POTENTIAL_BUFFER_OVERFLOW_NULLTERMINATED) + string[1] = static_cast(size_read); + + return result == 0 ? string + 2 : nullptr; +} diff --git a/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cprintf.cpp b/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cprintf.cpp new file mode 100644 index 0000000000000000000000000000000000000000..98993fb707511766e3e51f6be2903564bffb1d86 --- /dev/null +++ b/msvc/Windows Kits/10/Source/10.0.26100.0/ucrt/conio/cprintf.cpp @@ -0,0 +1,104 @@ +// +// cprintf.cpp +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The standard output functions, which perform formatted output to the +// console. +// +#include + + +using namespace __crt_stdio_output; + + + +template