| 269 | } |
| 270 | |
| 271 | std::wstring CSSDTHookTable::GetSingleSSDTInfo(SystemServiceInfo& info) { |
| 272 | CString text; |
| 273 | CString s; |
| 274 | |
| 275 | s.Format(L"%d (0x%-x)", info.ServiceNumber, info.ServiceNumber); |
| 276 | s += L"\t"; |
| 277 | text += s; |
| 278 | |
| 279 | s = Helpers::StringToWstring(info.ServiceFunctionName).c_str(); |
| 280 | s += L"\t"; |
| 281 | text += s; |
| 282 | |
| 283 | s.Format(L"0x%p", info.OriginalAddress); |
| 284 | s += L"\t"; |
| 285 | text += s; |
| 286 | |
| 287 | s = Helpers::StringToWstring(info.HookType).c_str(); |
| 288 | s += L"\t"; |
| 289 | text += s; |
| 290 | |
| 291 | s.Format(L"0x%p", info.CurrentAddress); |
| 292 | s += L"\t"; |
| 293 | text += s; |
| 294 | |
| 295 | s = Helpers::StringToWstring(info.TargetModule).c_str(); |
| 296 | s += L"\t"; |
| 297 | text += s; |
| 298 | |
| 299 | text += L"\r\n"; |
| 300 | |
| 301 | return text.GetString(); |
| 302 | } |