Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: graphic editor Pin
Peter Molnar17-Nov-03 13:08
Peter Molnar17-Nov-03 13:08 
GeneralKernel32.dll Pin
hph16-Nov-03 23:36
hph16-Nov-03 23:36 
GeneralRe: Kernel32.dll Pin
Prakash Nadar16-Nov-03 23:51
Prakash Nadar16-Nov-03 23:51 
GeneralRe: Kernel32.dll Pin
hph16-Nov-03 23:55
hph16-Nov-03 23:55 
GeneralRe: Kernel32.dll Pin
Prakash Nadar17-Nov-03 0:29
Prakash Nadar17-Nov-03 0:29 
GeneralRe: Kernel32.dll Pin
Mike Dimmick17-Nov-03 0:33
Mike Dimmick17-Nov-03 0:33 
GeneralRe: Kernel32.dll Pin
hph17-Nov-03 1:50
hph17-Nov-03 1:50 
GeneralRe: Kernel32.dll Pin
Daniel Turini17-Nov-03 2:20
Daniel Turini17-Nov-03 2:20 
hph wrote:
good! here's what i want to do:

I have written a program which injects some code into a .exe or .dll file to make them depended on a additional dll! It works great with nearly every .exe and .dll file but my goal is to reach this result also with the kernel32.dll! So the problem is that i can't simply replace my kernel32.dll with the original one, because it's not allowed!

Exactly: Kernel32.dll is part of the OS. You can't use another one. You'd only be able to do this by bundling the whole OS with your app. That's it. Also, several other DLLs won't work too, although they may seem to work at first sight: all related to winsock, printing, GDI, sound subsystem, DirectX, etc.
There is a place (sorry, I don't recall where right now) on MSDN that lists which DLLs you shouldn't mess with.
What you want could theoretically be accomplished with Linux, but not with Windows.

Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier


By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
GeneralRe: Kernel32.dll Pin
Mike Dimmick17-Nov-03 2:26
Mike Dimmick17-Nov-03 2:26 
GeneralRe: Kernel32.dll Pin
Ceri17-Nov-03 0:42
Ceri17-Nov-03 0:42 
GeneralNamed Pipe access problems across network Pin
Ceri16-Nov-03 22:40
Ceri16-Nov-03 22:40 
Generalconvert Pin
styve16-Nov-03 22:34
styve16-Nov-03 22:34 
Generalconvert modify Pin
styve16-Nov-03 22:37
styve16-Nov-03 22:37 
GeneralRe: convert Pin
Prakash Nadar16-Nov-03 23:48
Prakash Nadar16-Nov-03 23:48 
GeneralRe: convert Pin
Michael P Butler16-Nov-03 23:58
Michael P Butler16-Nov-03 23:58 
GeneralMci32.ocx Pin
Prakash Nadar16-Nov-03 22:13
Prakash Nadar16-Nov-03 22:13 
Generalnetbios getting related info Pin
Member 65664816-Nov-03 19:35
Member 65664816-Nov-03 19:35 
GeneralRe: netbios getting related info Pin
David Crow17-Nov-03 4:19
David Crow17-Nov-03 4:19 
Generalshell32.dll version 5 - download! Pin
Member 70440716-Nov-03 19:33
Member 70440716-Nov-03 19:33 
GeneralRe: shell32.dll version 5 - download! Pin
Michael Dunn17-Nov-03 4:40
sitebuilderMichael Dunn17-Nov-03 4:40 
GeneralRe: shell32.dll version 5 - download! Pin
Member 70440718-Nov-03 23:22
Member 70440718-Nov-03 23:22 
GeneralBSTR FAR* : Help needed Immediately Pin
Member 65260616-Nov-03 17:59
Member 65260616-Nov-03 17:59 
GeneralRe: BSTR FAR* : Help needed Immediately Pin
paulb16-Nov-03 18:11
paulb16-Nov-03 18:11 
GeneralRe: BSTR FAR* : Help needed Immediately Pin
Member 65260616-Nov-03 18:17
Member 65260616-Nov-03 18:17 
Generalconverting char to wchar Pin
georgiek5016-Nov-03 17:37
georgiek5016-Nov-03 17:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.