Posted January 27, 201015 yr Hi FriendsHow To Use Register Of Dr0,..,Dr7 In Visual Basic And Set Hardware BreakPoint ?Thanks
January 28, 201015 yr 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
January 28, 201015 yr 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.
Create an account or sign in to comment