摘要:
1、获取当前ProcessID。 GetCurrentProcess 2、执行cmd或PowerShell cmd:wmic process where "processid=15844" get /format:list PowerShell:Get-Process -id 15844 | For 阅读全文
摘要:
std::string bytes2string(const char* bytes, const int length) { std::stringstream ss; ss << "\n"; for (int i = 0; i < length; ++i) { ss << std::hex << 阅读全文
摘要:
Pimpl(Pointer to implementation)是一种C++编程技术,用于将类的实现细节与其接口分离。通常情况下,类的实现细节会暴露在类的头文件中,这会增加代码的复杂性并使得类的修改和维护变得困难。使用Pimpl技术,可以在类的头文件中只暴露必要的接口,而将具体实现细节放在单独的实现 阅读全文