全
全文检索
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么每次获得的数据全是 0000000<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> cont:_CONTEXT;<br> MyFloatSave:_FLOATING_SAVE_AREA;<br>begin<br>if GetThreadContext(GetCurrentThread,cont)=false then exit;<br>memo1.Lines.Clear;<br>memo1.Lines.Add('ContextFlags:'+inttohex(cont.ContextFlags,8));<br>memo1.Lines.Add('Dr0: '+inttohex(cont.Dr0,8));;<br>memo1.Lines.Add('Dr1: '+inttohex(cont.Dr1,8));<br>memo1.Lines.Add('Dr2: '+inttohex(cont.Dr2,8));<br>memo1.Lines.Add('Dr3: '+inttohex(cont.Dr3,8));<br>memo1.Lines.Add('Dr6: '+inttohex(cont.Dr6,8));<br>memo1.Lines.Add('Dr7: '+inttohex(cont.Dr7,8));<br>memo1.Lines.Add('------------cont.FloatSave---------------');<br>MyFloatSave:=cont.FloatSave;<br>memo1.Lines.Add('MyFloatSave.ControlWord: '+inttohex(MyFloatSave.ControlWord,8));<br>memo1.Lines.Add('MyFloatSave.StatusWord: '+inttohex(MyFloatSave.StatusWord,8));<br>memo1.Lines.Add('MyFloatSave.TagWord: '+inttohex(MyFloatSave.TagWord,8));<br>memo1.Lines.Add('MyFloatSave.ErrorOffset: '+inttohex(MyFloatSave.ErrorOffset,8));<br>memo1.Lines.Add('MyFloatSave.ErrorSelector: '+inttohex(MyFloatSave.ErrorSelector,8));<br>memo1.Lines.Add('MyFloatSave.DataOffset: '+inttohex(MyFloatSave.DataOffset,8));<br>memo1.Lines.Add('MyFloatSave.DataSelector: '+inttohex(MyFloatSave.DataSelector,8));<br>memo1.Lines.Add('MyFloatSave.RegisterArea: 寄存器区域');<br>memo1.Lines.Add('MyFloatSave.Cr0NpxState: '+inttohex(MyFloatSave.Cr0NpxState,8));<br>memo1.Lines.Add('---------------------------');<br>memo1.Lines.Add('cont.SegGs: '+inttohex(cont.SegGs,8));<br>memo1.Lines.Add('cont.SegFs: '+inttohex(cont.SegFs,8));<br>memo1.Lines.Add('cont.SegEs: '+inttohex(cont.SegEs,8));<br>memo1.Lines.Add('cont.SegDs: '+inttohex(cont.SegDs,8));<br>memo1.Lines.Add('cont.SegCs: '+inttohex(cont.SegCs,8));<br>memo1.Lines.Add('---------------------------');<br><br>memo1.Lines.Add('cont.Edi: '+inttohex(cont.Edi,8));<br>memo1.Lines.Add('cont.Esi: '+inttohex(cont.Esi,8));<br>memo1.Lines.Add('cont.Ebx: '+inttohex(cont.Ebx,8));<br>memo1.Lines.Add('cont.Edx: '+inttohex(cont.Edx,8));<br>memo1.Lines.Add('cont.Ecx: '+inttohex(cont.Ecx,8));<br>memo1.Lines.Add('cont.EAx: '+inttohex(cont.EAx,8));<br>memo1.Lines.Add('cont.Ebp: '+inttohex( cont.Ebp,8));<br>memo1.Lines.Add('cont.Eip: '+inttohex(cont.Eip,8));<br>memo1.Lines.Add('cont.SegCs: '+inttohex(cont.SegCs,8));<br>memo1.Lines.Add('cont.EFlags: '+inttohex(cont.EFlags,8));<br>memo1.Lines.Add('cont.EFlags: '+inttohex(cont.EFlags,8));<br>memo1.Lines.Add('cont.Esp: '+inttohex(cont.Esp,8));<br>memo1.Lines.Add('cont.SegSs: '+inttohex(cont.SegSs,8));<br><br>end;