SuspendThread 暫停指定執行緒 怎么總是不成功》?要提權么 有哪個給個原始碼觀摩

對宿主注入DLL 后 SuspendThread也是不成功的
threadbool:=Thread32First(snaphwd,te32);
ThreadCount:=0;
while threadbool do
begin
if te32.th32OwnerProcessID=pid then
begin
ThreadBuff[ThreadCount]:=te32.th32ThreadID;
ThreadCount:=ThreadCount+1;
end;
threadbool:=Thread32Next(snaphwd,te32);
end;
for I := 0 to ThreadCount do
begin
lasserror:=SuspendThread( ThreadBuff[I ] );
Form1.mmo2.Lines.Add('錯誤: '+inttohex(lasserror,8));
Form1.mmo1.Lines.Add('執行緒: '+inttohex(threadbuff[i],8));
end;
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/71386.html
標籤:語言基礎/算法/系統設計
上一篇:這兩句怎么理解?
