Advertisement
Guest User

error

a guest
Aug 30th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1.  
  2. FILE *f = fopen("C:\test.txt","w");
  3.  
  4. Process32First(_processsnap,&processinfo);
  5. while
  6. (Process32Next(_processsnap,&processinfo))
  7. {
  8.  
  9. char pid[10];
  10. sprintf(pid,"%d",processinfo.th32ProcessID);//used to convert the dword into char array
  11. printf(pid);
  12. printf("\n");
  13. int results = fputs(pid,f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement