Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
C++ code below demonstrates how GCC 13 optimizes std::memcpy and a temporary std::array: #include <array> #include <cstddef> #include <cstdint> #include <cstring> #include <iomanip> #include <iostream> #include <new> #include <type_traits> template <class
-
Below I provided an example demonstrating how placement new creates multiple objects within the same byte storage.
-
From C++ standard: Attempting to read or modify the stored value through any other type results in undefined behavior.
-
The first simple example: #include <bit> #include <cstdint> #include <iomanip> #include <iostream> std::uint32_t badBits(const float value) { // const prevents writes, but reading a float through a uint32_t pointer // still violates the strict-aliasi…
-
Get-ChildItem ` 'HKCU:\Software\Microsoft\Terminal Server Client\Servers' | ForEach-Object { $p = Get-ItemProperty $_.PSPath [PSCustomObject]@{ Server = $_.PSChildName Username = $p.UsernameHint } } Server Username -…
-
The code below does not compile in C++: template <class Result, class...
-
I installed Remote Tools for Visual Studio 2022 and run: Started Remote Debugger as administrator on the remote machine: Visual Studio 2022 asked for credentials: and displayed the list of the processes: I built the project with static runtime: Visual Stu…
-
I registered a sample Credential Provider with the following .reg file: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{5fd3d285-0dd9-4362-8855-e0abaacd4af6}] @="Samp…
-
On DC with IP address 192.168.0.123: wevtutil sl Microsoft-Windows-NTLM/Operational /e:true wevtutil qe Microsoft-Windows-NTLM/Operational /q:"*[System[(EventID=8004 or EventID=8005)]]" /f:text net share Share name Resource Remark
-
Tools->Options: ConsoleApp.natvis: <?