[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
class CTXStringW { public: wchar_t *pdata; LPVOID unused[3]; }; typedef CTXStringW (__cdecl *pGetPublicName)(unsigned long num);//获取用户名 HMODULE hDLL = GetModuleHandleA("KernelUtil.dll"); pGetPublicName TrueGetPublicName = (pGetPublicName)GetProcAddress(hDLL,"?GetPublicName@Contact@Util@@YA?AVCTXStringW@@K@Z"); CTXStringW tx_nick_name = TrueGetPublicName(src_qq); wstring str_nick_name = tx_nick_name.pdata;