?
Solved

How to read a resource?

Posted on 2004-09-17
2
Medium Priority
?
415 Views
Last Modified: 2010-04-01
Hello...

I have an exe-file "C:\windows\system32\ntoskrnl.exe" and i like to read the Bitmap "1". But if I try to open the Bitmap from HINSTANCE = LoadLibrary("C:\\windows\\system32\\ntoskrnl.exe")        with ResName = "1" and ResType = RT_BITMAP... an error name "Resource 1 doesnt exists" appears.

How can i read an exchange the Bitmap "1" in the exe file?

Thanks for advance!
0
Comment
Question by:ChristopH1987
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 200 total points
ID: 12085167
resname is 1, and not "1", you must use MAKEINTRESOURCE macro to load it.
Something like:

LoadBitmap(hInst, MAKEINTRESOURCE(1));
0
 
LVL 86

Accepted Solution

by:
jkr earned 800 total points
ID: 12086139
>>How can i read an exchange the Bitmap "1" in the exe file?

You cannot exchange ist since ntoskernel.exe will most certainly be in use. Apart from that, any changes will be null and void since the SFP will revert them immediately.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question