[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
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;