MCPcopy Create free account
hub / github.com/Neo-Maoku/SearchAvailableExe / wstring2string

Function wstring2string

SearchAvailableExe/Tools.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5std::mutex mtx;
6
7string wstring2string(wstring wstr)
8{
9 string result;
10 //��ȡ��������С��������ռ䣬��������С�°��ֽڼ����
11 int len = WideCharToMultiByte(CP_ACP, 0, wstr.c_str(), wstr.size(), NULL, 0, NULL, NULL);
12 char* buffer = new char[len + 1];
13 //���ֽڱ���ת���ɶ��ֽڱ���
14 WideCharToMultiByte(CP_ACP, 0, wstr.c_str(), wstr.size(), buffer, len, NULL, NULL);
15 buffer[len] = '\0';
16 //ɾ��������������ֵ
17 result.append(buffer);
18 delete[] buffer;
19 return result;
20}
21
22DWORD rvaToFOA(LPVOID buf, int rva)
23{

Callers 2

VerifyFileSignatureFunction · 0.85
MonitorThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected