Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. int Process::ReadStream(int stream,void* pData,uint uMaxLen) const
  2. {
  3.     DWORD dwRead = 0;
  4.     return ReadFile(GetIO()[stream],pData,uMaxLen,&dwRead,NULL) ? dwRead : -1;
  5. }
  6.  
  7. int Process::WriteStream(int stream,const void* pData,uint uLen) const
  8. {
  9.     DWORD dwWritten = 0;
  10.     return WriteFile(GetIO()[stream],pData,uLen,&dwWritten,NULL) ? dwWritten : -1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement