Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Third party file protection? Pin
Maximilien17-Aug-03 4:19
Maximilien17-Aug-03 4:19 
AnswerRe: Third party file protection? Pin
Neville Franks17-Aug-03 10:36
Neville Franks17-Aug-03 10:36 
GeneralRe: Third party file protection? Pin
Kayembi17-Aug-03 11:14
Kayembi17-Aug-03 11:14 
GeneralRe: Third party file protection? Pin
Terry O'Nolley17-Aug-03 17:40
Terry O'Nolley17-Aug-03 17:40 
GeneralRe: Third party file protection? Pin
Neville Franks18-Aug-03 2:07
Neville Franks18-Aug-03 2:07 
GeneralRe: Third party file protection? Pin
Kayembi18-Aug-03 8:13
Kayembi18-Aug-03 8:13 
AnswerRe: Third party file protection? (EDITED) Pin
John M. Drescher17-Aug-03 19:12
John M. Drescher17-Aug-03 19:12 
GeneralAPI hooking... Pin
Kayembi18-Aug-03 0:36
Kayembi18-Aug-03 0:36 
Hi,

Thanks again for the answers. Terry O'Nolley - I'm only trying to stop people from stealing the files and using them in their own applications, so your solution would be a good one if I do have to write all the files to disk. Thanks for the suggestion, I'll look into it if I can't work out the hooking...

John M. Drescher - thank you, this would be the perfect solution. I think this is what I've been trying to find out how to do, without actually knowing the name for it. Having the 3rd-party executable written to disk is no big deal, as this is of no use to any potential resource lifters, it's only the models, bitmaps etc that the EXE has to have access to that I want to protect. (And an added benefit of this method is that the game wouldn't require an extra 100-odd MB of diskspace to run.) If I understand you correctly, this is what my ideal API hook program would do:

-My launcher program extracts the 3rd party EXE to a temporary folder and runs it.
-My program then monitors the program that has been launched for as long as it runs.
-Whenever the other program tries to read a file from disk, my program intercepts the call, finds out which file is being requested, extracts it from the archive file, lets the program load it, and then deletes it...

(I figure the first stage is to write the file temporarily to disk and get that working before trying to cache it into a memory buffer.)

This is probably very ambitious for my limited coding ability, as I am working with the straight Windows API and still in the process of learning. However, I would like to attempt this. Thank you for the link. I am now trying to find out as much as possible about API hooks.

If anybody could give me any other pointers or good links (or even tell me about good books) that would help me write an API hook that could achieve all of this, I would be really grateful.

Thanks again for all the help, much appreciated.
Cheers,
KB
GeneralRe: API hooking... Pin
John M. Drescher18-Aug-03 13:41
John M. Drescher18-Aug-03 13:41 
GeneralRe: API hooking... Pin
Kayembi19-Aug-03 1:31
Kayembi19-Aug-03 1:31 
GeneralRe: API hooking... Pin
John M. Drescher19-Aug-03 8:47
John M. Drescher19-Aug-03 8:47 
AnswerRe: Third party file protection? Pin
Anonymous18-Aug-03 1:13
Anonymous18-Aug-03 1:13 
Generalproblems while #import "VBE6EXT.OLB" Pin
emmai17-Aug-03 3:15
emmai17-Aug-03 3:15 
GeneralATL problem Pin
novachen17-Aug-03 1:52
novachen17-Aug-03 1:52 
GeneralRe: ATL problem Pin
Jörgen Sigvardsson17-Aug-03 5:01
Jörgen Sigvardsson17-Aug-03 5:01 
GeneralRe: ATL problem Pin
novachen17-Aug-03 14:41
novachen17-Aug-03 14:41 
GeneralRe: ATL problem Pin
Jörgen Sigvardsson17-Aug-03 22:40
Jörgen Sigvardsson17-Aug-03 22:40 
GeneralRe: ATL problem Pin
peterchen17-Aug-03 6:58
peterchen17-Aug-03 6:58 
GeneralRe: ATL problem Pin
novachen17-Aug-03 14:40
novachen17-Aug-03 14:40 
GeneralRe: ATL problem Pin
peterchen17-Aug-03 23:15
peterchen17-Aug-03 23:15 
GeneralProblems with inheritance Pin
petter_e16-Aug-03 22:14
petter_e16-Aug-03 22:14 
GeneralRe: Problems with inheritance Pin
Ryan Binns16-Aug-03 23:35
Ryan Binns16-Aug-03 23:35 
GeneralRe: Problems with inheritance Pin
Jörgen Sigvardsson17-Aug-03 5:03
Jörgen Sigvardsson17-Aug-03 5:03 
GeneralRe: Problems with inheritance Pin
Ryan Binns17-Aug-03 5:41
Ryan Binns17-Aug-03 5:41 
GeneralRe: Problems with inheritance Pin
petter_e17-Aug-03 6:22
petter_e17-Aug-03 6:22 

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.