我编写过滤系统并使用Winsock2 LSP
. 在WSPConnect
我需要将进程的可执行文件名与硬编码的 Unicode 字符串进行比较。我愿意:
LPWSTR moduleName = {0};
GetModuleFileNameEx (GetCurrentProcess(),0,moduleName,_MAX_FNAME );
LPWSTR mn = L"redirect.exe";
if (lstrcmp (moduleName, mn) == 0){ ...some code there...}
我做错了什么?