HackerTrans
TopNewTrendsCommentsPastAskShowJobs

CodeHz

no profile record

comments

CodeHz
·anno scorso·discuss
Actually, it won't compile in msvc (the linking phase, to be precise), MSVC uses different names for methods with different visibilities
CodeHz
·3 anni fa·discuss
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 anni fa·discuss
Funiest thing is, in win11, the notepad use RichEdit again (but use winui's richedit control, not win32
CodeHz
·3 anni fa·discuss
no, you can do it by define SQLITE_DEFAULT_FOREIGN_KEYS=1 while compiling sqlite3
CodeHz
·3 anni fa·discuss
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 anni fa·discuss
Maybe it just a transparent div that blocked all the pointer events?