Click here to Skip to main content
11,716,938 members (86,499 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
I am able to hook a process with createremotethread for the first time but when i want to hook another instance of the same process with createremotethread then it is failing with error number 5 ?
Posted 12-Sep-12 2:36am
Sandeep Mewara at 12-Sep-12 8:52am
It would be good if you share more detail. Related code snippet and full error.
pasztorpisti at 12-Sep-12 9:03am
error 5 is "Permission Denied". Your process doesn't have the necessary privileges to mess around with the other process, or your process might have the privileges but they are just turned off.
armagedescu at 12-Sep-12 9:50am
You've probably forgotten to request permission for the other instance of the process

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 659
1 F-ES Sitecore 260
2 Maciej Los 185
3 OriginalGriff 175
4 Richard MacCutchan 140
0 Sergey Alexandrovich Kryukov 1,029
1 Maciej Los 464
2 Richard MacCutchan 430
3 CHill60 415
4 OriginalGriff 415

Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100