| 5 | std::mutex mtx; |
| 6 | |
| 7 | string 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 | |
| 22 | DWORD rvaToFOA(LPVOID buf, int rva) |
| 23 | { |
no outgoing calls
no test coverage detected