This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define UNICODE | |
#define _UNICODE | |
#include <Windows.h> | |
#include <string> | |
#include <string_view> | |
#include <sstream> | |
#ifndef ENABLE_AUTO_POSITION | |
#define ENABLE_AUTO_POSITION 0x100 | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0:005> !analyze -v | |
******************************************************************************* | |
* * | |
* Exception Analysis * | |
* * | |
******************************************************************************* | |
GetUrlPageData2 (WinHttp) failed: 12002. | |
KEY_VALUES_STRING: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
class ModeRestore { | |
HANDLE in, out; | |
DWORD inmode, outmode; | |
public: | |
ModeRestore(HANDLE in, DWORD inmode, HANDLE out, DWORD outmode) : in(in), out(out) { | |
DWORD written; | |
if (GetConsoleMode(in, &this->inmode)) { | |
SetConsoleMode(in, inmode); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
class PartialEq { | |
public: | |
virtual bool eq(PartialEq *const) const = 0; | |
}; | |
class PartialOrd { | |
public: | |
virtual int partial_cmp(PartialOrd *const) const = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\> with RUST_BACKTRACE=1 cargo init --name foo | |
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\libcore\option.rs:335 | |
stack backtrace: | |
0: git_reference_type | |
1: git_reference_type | |
2: git_reference_type | |
3: git_reference_type | |
4: git_reference_type | |
5: git_reference_type | |
6: git_reference_type |