Log in

View Full Version : Attaching a .res file to a process


Quell
December 29th, 2004, 13:14
hey.
i was wondering if anyone knows how to load a .res file inot a running process so it would show it?
i want to do this programeticly/
any ideas?
thx

JMI
December 29th, 2004, 13:18
Yes. Read the Damn FAQ and provide the information that your are supposed to provide about what you have done to try to solve your own problem, such as whether you have attempted to search, both here and on the net for answers, and what you have actually tried to do YOURSELF, besides ask a question here, without actually reading the FAQ.


Regards,

Quell
December 29th, 2004, 13:40
fine i read the faq, here is modified post:
1. What is the problem.:
I need to load a .res file into a process.
2. What is the protection.
None, this is just a programming quesiotion.
3. What tools are you using.
A c compiler.
4. What tutorials have you read.
Read tutorial on injection.
5. Show your output listing WITH comments.
No output so far. I can laod teh dll correctly inot a process.
6. NOW ask your question
How do i load a .res to show teh dialog box etc.....
I was going to do this using a dll injecting inot the process, then load teh .;res file from the dll.
I have the injectiong code done, and i have a skeleton of the dll to be injected.
The only problems is how do i load a .res file.
Is this posted in a correct manager?
P.S. i ahve searched teh google, foudn nothing on loading .res files with c/c++.

JMI
December 29th, 2004, 14:24
Point two:

ACTUALLY READ your post and LOOK for OBVIOUS spelling/typing errors.

"No output so far. I can laod teh dll correctly inot a process."

"How do i load a .res to show teh dialog box etc.....
I was going to do this using a dll injecting inot the process, then load teh .;res file from the dll."

"P.S. i ahve searched teh google, foudn nothing on loading .res files with c/c++."

These are SIMPLE typing errors caused by NOT PAYING ATTENTION TO WHAT YOU TYPE. USE A SPELL CHECKER. There is an EDIT BUTTON you can use to correct these errors. You spoil the whole effect of your question by not caring enough to catch these errors and you turn off many of those who might otherwise attempt to help you.

Regards,

Kayaker
December 29th, 2004, 14:27
Hello ReVeR...

JMI
December 29th, 2004, 14:29
Good call. Forgot to check. Looks like he's about to get deleted again.

Regards,

Quell
December 29th, 2004, 14:31
sorry for the above crap,will not happen again.Another repost:
fine i read the FAQ, here is modified post:
1. What is the problem.:
I need to load a .res file into a process.
2. What is the protection.
None, this is just a programming question.
3. What tools are you using.
A c compiler.
4. What tutorials have you read.
Read tutorial on injection.
5. Show your output listing WITH comments.
No output so far. I can load the dll correctly into a process.
6. NOW ask your question
How do i load a .res to show the dialog box etc.....
I was going to do this using a dll injecting into the process, then load the .;res file from the dll.
I have the injection code done, and i have a skeleton of the dll to be injected.
The only problems is how do i load a .res file.
Is this posted in a correct manager?
P.S. i have searched the google, found nothing on loading .res files with c/c++.

Quell
December 29th, 2004, 14:32
dam it, will need a new e mail.....:P oh wtf, will get me another proxy as well

JMI
December 29th, 2004, 14:36
Point three:

PAY ATTENTION. I clearly stated that you could use the edit button to correct your typing errors. There was NO NEED to type the whole damn thing again. That's how one makes corrections. Hit the edit button and correct any obvious errors. I make typing errors all the time and try to catch and correct them by editing what I post.

Since you have a history here, you will be watched carefully for further blatant failures to conform to the minimum expected from posters here. And we know about your proxies. The problem is that you can't disguise that you simply chose to ignore the rules and that your questions, themselves, give you away.

Regards,

Kayaker
December 29th, 2004, 19:52
Oh My Gosh, do I detect a readable sentence and semi-comprehensible question?

Having understood the words, I'm not sure exactly what you're trying to do. From your other posts it sounds like you extracted a .res dialog from some program and you're trying to get it to "show" through an injected dll? Since you're writing the dll itself you should be able to import the dialog .res file as a new resource, same as a bitmap or icon. Recompile the dll and you should see the new resource in Reshacker say. Now you need to make use of the res binary.

I'm not sure why you'd want use an external dialog box when you can recreate it any way you wish, including duplicating resource Ids. All it is is a shell with buttons you press. If you're trying to duplicate a dialog so you can enter data from your injected dll, you still need dialog box procedure code to tie it to, which was presumably in your target program.

I'm lost as to the purpose of this, but look into using either a CreateDialog* routine, or the sequence FindResource, LoadResource, LockResource to make programmatic use of resources. There are examples in the Asm forums, I'd search there for examples. Search, and please don't ask them.

Kayaker

Aimless
December 30th, 2004, 00:13
1. Create a new resource
2. Put the resource in a dll file
3. Run your application
4. Inject the dll into the memory space of that application (You'll have to find out how...but many tuts available on google if you search for: dll injection)
5. Modify the application space so that the call points to the call in your injected dll which uses the resource.
6. Enjoy.

Have Phun

Aimless
December 30th, 2004, 00:14
Don't forget to return back to your application from the dll call you just made, LOL.

Have Phun

Quell
December 30th, 2004, 01:21
thx all, i got it now.

Fake51
December 30th, 2004, 07:25
Quote:
[Originally Posted by JMI]Point two:

ACTUALLY READ your post and LOOK for OBVIOUS spelling/typing errors.

Damn, posting around here is gettin real hard.

Quote:

You spoil the whole effect of your question by not caring enough to catch these errors and you trun off many of those who might otherwise attempt to help you.

Heh, couldn't help myself. Did you do that on purpose?

Fake

JMI
December 30th, 2004, 13:36
Nope. But that one was probably an "eyesight" problem. When the eyes get tired, the vision is more blurred.

But remember I also stated: "I make typing errors all the time and try to catch and correct them by editing what I post." That one I missed, but I did correct a couple of others in that post.

Regards,

Fake51
December 31st, 2004, 07:08
Basically I agree with you, and in the case of born englishspeakers it's sad to see a neglect of the language (as in examples of what you're talking about). The only thing to consider, ofcourse, is that this board attracts quite a few nationalities, many of which don't use english as a first language.

Basically, it just seemed funny that standards are going up up up No longer enough just to read the faq and behave accordingly

Fake