visual studio - Inline assembly in C++ fail? -
alright wrote assembly function detect if process present during run-time. i'm not quite getting inline assembly point though wrapped assembly code asm wrapper still detects inner code c code ... goes little this:
__inline bool isprocloaded() { _asm { mov ah, 0x48 int 0x68 ; after compiling breaks on line, 'int' highlighted cmp ax ... } }
what issue here, , how can fix it?
that because int
interrupt instruction useful in user mode nowadays because interrupts privileged (related).
without more details can't tell trying achieve here, though after searching around beginning looks similar method detecting softice debugger , code pretty ancient (dos , windows era) seems reasonable on modern os 0xc0000005
status_access_violation
exception.
Comments
Post a Comment