HackerTrans
トップ新着トレンドコメント過去質問紹介求人

CodeHz

no profile record

コメント

CodeHz
·昨年·議論
Actually, it won't compile in msvc (the linking phase, to be precise), MSVC uses different names for methods with different visibilities
CodeHz
·3 年前·議論
Windows do have this API, NtDeleteFile, AND it could be used to delete current running exe. https://twitter.com/jonaslyk/status/1345167613643661312 but it is undocumented...
CodeHz
·3 年前·議論
Funiest thing is, in win11, the notepad use RichEdit again (but use winui's richedit control, not win32
CodeHz
·3 年前·議論
no, you can do it by define SQLITE_DEFAULT_FOREIGN_KEYS=1 while compiling sqlite3
CodeHz
·3 年前·議論
Btw, you can even run a executable file which has been renamed to any extension (.txt or .whatever) in command line. (See PATHEXT env) It just recognized by the explorer (and shellexecute api’ third parameter). So that’s mean all files have “executable” permission by default.
CodeHz
·3 年前·議論
Maybe it just a transparent div that blocked all the pointer events?