Advertisement
illusive

readstringfunction

Dec 16th, 2014
2,893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
E 0.27 KB | None | 0 0
  1. myReadString proc
  2.  
  3. ;Assume edx has the offset and ecx has the size of the buffer
  4. Invoke, getSTDHandle, STD_INPUTHANDLE
  5. Mov StdInHandle,eax
  6. INVOKE ReadConsole, stdInHandle, edx ,
  7. ecx, Addr bytesRead,0
  8. ret
  9.  
  10. myreadString endp
  11.  
  12. StdInHandle Handle ?
  13.  bytesRead Dword ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement