Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThird party file protection? Pin
Kayembi17-Aug-03 3:58
Kayembi17-Aug-03 3:58 
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 
First off I beleive the executable will have to be a regular disk file. Outside of that you can use API hooking to intercept the ReadFile() CreateFile() and CloseHandle() functions and supply the data needed to the main program as if it was really reading files. This data could directly come from the disk by decompressing on the fly or by caching some of this data into a memory buffer.

[EDIT]
Here is a link to a discussion of API hooking:

http://www.codeproject.com/file/handles.asp?msg=571831&target=createfile%7Cwritefile#xx571831xx[^]

[/EDIT]

John
GeneralAPI hooking... Pin
Kayembi18-Aug-03 0:36
Kayembi18-Aug-03 0:36 
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 

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.