Sh4DoVV Posted January 27, 2010 Posted January 27, 2010 Hi FriendsHow To Use Register Of Dr0,..,Dr7 In Visual Basic And Set Hardware BreakPoint ?Thanks
Aguila Posted January 28, 2010 Posted January 28, 2010 Same as in any other language with SetThreadContext:Declare Function SetThreadContext Lib "kernel32.dll" _ Alias "SetThreadContext" ( _ ByVal hThread As Long, _ lpContext As CONTEXT) As LongPublic Type CONTEXT86 ContextFlags As Long Dr0 As Long Dr1 As Long Dr2 As Long Dr3 As Long Dr6 As Long Dr7 As Long FloatSave As FLOATING_SAVE_AREA SegGs As Long SegFs As Long SegEs As Long SegDs As Long Edi As Long Esi As Long Ebx As Long Edx As Long Ecx As Long Eax As Long Ebp As Long Eip As Long SegCs As Long EFlags As Long Esp As Long SegSs As LongEnd Type
metr0 Posted January 28, 2010 Posted January 28, 2010 But do not use this API on a running thread (e.g. the current), suspend it first. Dependent on VB's way to process exception you could give modifying the CONTEXT pointer in an exception handler a try.
Sh4DoVV Posted January 30, 2010 Author Posted January 30, 2010 May Attach An Example That Used Of Dr0..Dr7 ?
ahmadmansoor Posted February 1, 2010 Posted February 1, 2010 May Attach An Example That Used Of Dr0..Dr7 ? yes pls if that possible .....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now