Is it possible to get the handle of a 64-bit process by a 32-bit app? I get GetLastError 5 which is Access Denied.
Get handle of 64-bit process by 32-bit app
Page 1 of 17 Replies - 402 Views - Last Post: 05 February 2012 - 06:49 PM
Replies To: Get handle of 64-bit process by 32-bit app
#2
Re: Get handle of 64-bit process by 32-bit app
Posted 04 February 2012 - 07:18 AM
This might sound silly but... If you're on a 64bit OS, why don't you make a 64bit version of your application - if only to test with?
If it works then you know the answer.
If it doesn't, then you know your code is fraked someplace and you need to debug it.
If it works then you know the answer.
If it doesn't, then you know your code is fraked someplace and you need to debug it.
#3
Re: Get handle of 64-bit process by 32-bit app
Posted 04 February 2012 - 08:17 AM
Yah, i know that. I have a reason why i don't want to make it into 64-bit app. And i'm using 32-bit OS. But if in 32-bit app, is it possible?
This post has been edited by krizjaz: 04 February 2012 - 08:19 AM
#4
Re: Get handle of 64-bit process by 32-bit app
Posted 04 February 2012 - 08:22 AM
Ya got me. I've never had a need.
But like I said, I'd just do my own test. I mean you already have everything set up. Just throw together a quickie test utility using the code you've already worked out.
In the time you've waited for someone else to give you the answer, you could have done the test yourself.
You don't need all of the functionality of the full application.
Just a button and a label for the response after you try to get the handle.
But like I said, I'd just do my own test. I mean you already have everything set up. Just throw together a quickie test utility using the code you've already worked out.
In the time you've waited for someone else to give you the answer, you could have done the test yourself.
You don't need all of the functionality of the full application.
Just a button and a label for the response after you try to get the handle.
#5
Re: Get handle of 64-bit process by 32-bit app
Posted 04 February 2012 - 10:34 AM
Was already testing it with a friend who has 64-bit and now GetLastError is giving him Invalid Handle, 6, using OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid).
#6
Re: Get handle of 64-bit process by 32-bit app
Posted 04 February 2012 - 10:42 AM
What application are you trying to get the handle of?
And can we see your code for obtaining that handle?
And can we see your code for obtaining that handle?
#7
Re: Get handle of 64-bit process by 32-bit app
Posted 04 February 2012 - 06:45 PM
If it is for code injection, then NO a 32 bit app cannot inject/read/write into a 64 bit process AFAIK. Now, if you say "Well, it works on XP" then as a programmer, you need a slap upside the head because Vista and Windows 7 ARE NOT XP.
Does your program have the proper SE_* privileges?
Either way, there are many things a 32 bit app CANNOT do because when you run a 32 bit app on a 64 bit OS, it is not running natively but instead it is running in an emulator (WOW64)
Does your program have the proper SE_* privileges?
Either way, there are many things a 32 bit app CANNOT do because when you run a 32 bit app on a 64 bit OS, it is not running natively but instead it is running in an emulator (WOW64)
#8
Re: Get handle of 64-bit process by 32-bit app
Posted 05 February 2012 - 06:49 PM
Yah, as what it is in my mind. All i need is that answer. And that satisfies me. Thanks! So, going to the last option, make a 64-bit app. . ~sigh
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote







|