Windows记录
HyperV
1 | dism.exe /Online /Disable-Feature /FeatureName:Microsoft-Hyper-V-All |
Message
PeekMessage和GetMessage函数的主要区别
https://blog.csdn.net/gencheng/article/details/9376881
InvalidateRect(HWND) 与 ValidateRect(HWND)的区别
http://t.zoukankan.com/renyuan-p-2746020.html
InvalidateRect标脏(dirty) ValidateRect表示已经处理好可以显示
https://www.codenong.com/62553819/
消息处理必须在WndProc中完成,而不是在”主循环”中完成
https://learn.microsoft.com/zh-cn/windows/win32/learnwin32/closing-the-window
WaitMessage
线程的消息队列中无其它消息时,该函数就将控制权交给另外的线程
https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-waitmessage
1 | MSG msg; |
https://jeffpar.github.io/kbarchive/kb/074/Q74042/
https://github.com/wch/r-source/blob/trunk/src/extra/graphapp/events.c
void waitevent(void)
1 | GetMessage差不多相当于PeekMessage + WaitMessage 🤔 |
MsgWaitForMultipleObjectsEx
https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-msgwaitformultipleobjectsex
WaitForMultipleObjectsEx
https://learn.microsoft.com/zh-cn/windows/win32/api/synchapi/nf-synchapi-waitformultipleobjectsex
如果你有创建窗口的线程,请使用 MsgWaitForMultipleObjects 或 MsgWaitForMultipleObjectsEx,而不是 WaitForMultipleObjectsEx。
Env
Windows设置环境变量
https://blog.csdn.net/uddiqpl/article/details/126391711
1 | set/setx/wmic都不合适 |
非Unicode程序的语言
https://www.cnblogs.com/rickerliang/p/3732027.html
https://www.zhihu.com/question/536400200
开启之后msvc cl就不会报936的4819问题 不然需要添加/utf-8标记
https://learn.microsoft.com/zh-cn/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8
http://www.dnxtc.net/zixun/WIN11yingyong/2021-08-16/9360.html
win11家庭版升级专业版详细步骤(多种方法)