Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. 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

  2. Below I provided an example demonstrating how placement new creates multiple objects within the same byte storage.

  3. From C++ standard: Attempting to read or modify the stored value through any other type results in undefined behavior.

  4. 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…

  5. Get-ChildItem ` 'HKCU:\Software\Microsoft\Terminal Server Client\Servers' | ForEach-Object { $p = Get-ItemProperty $_.PSPath [PSCustomObject]@{ Server = $_.PSChildName Username = $p.UsernameHint } } Server Username -…

  6. The code below does not compile in C++: template <class Result, class...

  7. 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…

  8. 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…

  9. 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

  10. Tools->Options: ConsoleApp.natvis: <?