摘要: wchar_t to char #include <comdef.h> const wchar_t* exepath = L"d:\\中文 路径\\中文 路径.exe"; _bstr_t b(exepath); const char* c = b; printf("%s\n", c); MultiB 阅读全文
posted @ 2020-08-30 17:09 Ajanuw 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 注意看备注 https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getmodulefilenameexa #include <iostream> #include <Windows.h> #include <TlHelp 阅读全文
posted @ 2020-08-30 11:21 Ajanuw 阅读(535) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <Windows.h> using namespace std; int main() { EnumWindows([](HWND hwnd, LPARAM lParam) { DWORD pid = 0; GetWindowThreadPr 阅读全文
posted @ 2020-08-30 11:03 Ajanuw 阅读(1883) 评论(0) 推荐(0) 编辑