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?