S
sy0116
Unregistered / Unconfirmed
GUEST, unregistred user!
windowhld:=GetForegroundWindow;<br> threadld:=GetWindowThreadProcessId(Windowhld,nil);<br> AttachThreadInput(GetCurrentThreadId,threadld,true);<br> Focushld:=getfocus;<br> AttachThreadInput(GetCurrentThreadId,threadld,false);<br> st:=GetWindowLong(focushld,GWL_STYLE);<br> MessageBox(0, PChar(IntToStr(st)), 'My DLL ', MB_OK);<br> Memo1.Lines.Add(IntToStr(inttostr(focushld));<br>我发现把这段代码写到DLL里好像有点问题,找到的handle和Style和Spy++都不同,而写在EXE中却是相同的