Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDLL Security (.NET Securing) Pin
flip26-Jun-03 17:16
flip26-Jun-03 17:16 
GeneralRe: DLL Security (.NET Securing) Pin
Ryan Binns26-Jun-03 19:10
Ryan Binns26-Jun-03 19:10 
GeneralRe: DLL Security (.NET Securing) Pin
flip26-Jun-03 19:22
flip26-Jun-03 19:22 
GeneralRe: DLL Security (.NET Securing) Pin
Ryan Binns26-Jun-03 19:32
Ryan Binns26-Jun-03 19:32 
GeneralRe: DLL Security (.NET Securing) Pin
flip26-Jun-03 19:37
flip26-Jun-03 19:37 
GeneralRe: DLL Security (.NET Securing) Pin
Ryan Binns26-Jun-03 19:42
Ryan Binns26-Jun-03 19:42 
GeneralRe: DLL Security (.NET Securing) Pin
Toni7826-Jun-03 20:56
Toni7826-Jun-03 20:56 
GeneralRe: DLL Security (.NET Securing) Pin
Ryan Binns26-Jun-03 21:04
Ryan Binns26-Jun-03 21:04 
Toni78 wrote:
push eax
push ecx
call DllFunc
which in C++ translates to DllFunc( ecx, eax).


Sometimes, but not always. I've looked at the output from some compilers, and sometimes they push the registers simply to save their value across the function call. I don't think this happens with the MS compiler, but other compilers do it. Also, the compiler may perform processing in between the pushes, and it may use the stack for doing that processing, so it can be very complex. But I agree, looking at the instructions before the call is the easiest way.

The problem is that in his situation he want to know if you can work out the parameters from the DLL - no calling code. That is substantially more difficult because you have to look at what each parameter is used for and what is done with them. And then, as you said, finding the types of the parameters is almost impossible Smile | :)


Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: DLL Security (.NET Securing) Pin
Toni7826-Jun-03 21:37
Toni7826-Jun-03 21:37 
General__FUNCTION__ Macro Pin
ROK_RShadow26-Jun-03 16:27
ROK_RShadow26-Jun-03 16:27 
GeneralRe: __FUNCTION__ Macro Pin
Andrew Walker26-Jun-03 17:14
Andrew Walker26-Jun-03 17:14 
GeneralRe: __FUNCTION__ Macro Pin
Jim A. Johnson26-Jun-03 17:21
Jim A. Johnson26-Jun-03 17:21 
GeneralRegistry in C++ Website Pin
yashraj121526-Jun-03 15:27
yashraj121526-Jun-03 15:27 
GeneralStructures and Classes Pin
yashraj121526-Jun-03 15:24
yashraj121526-Jun-03 15:24 
GeneralRe: Structures and Classes Pin
Johnny ²26-Jun-03 19:53
Johnny ²26-Jun-03 19:53 
Generalshow dialog in dll Pin
gucy26-Jun-03 15:01
gucy26-Jun-03 15:01 
GeneralRe: show dialog in dll Pin
Ryan Binns26-Jun-03 15:28
Ryan Binns26-Jun-03 15:28 
GeneralRe: show dialog in dll Pin
gucy26-Jun-03 15:36
gucy26-Jun-03 15:36 
GeneralRe: show dialog in dll Pin
Ryan Binns26-Jun-03 15:40
Ryan Binns26-Jun-03 15:40 
GeneralRe: show dialog in dll Pin
gucy26-Jun-03 15:48
gucy26-Jun-03 15:48 
GeneralRe: show dialog in dll Pin
Ryan Binns26-Jun-03 16:01
Ryan Binns26-Jun-03 16:01 
GeneralRe-inserting an ActiveX control in VC6 Pin
Joe Dean26-Jun-03 13:02
Joe Dean26-Jun-03 13:02 
GeneralRe: Re-inserting an ActiveX control in VC6 Pin
Yoon Taeho26-Jun-03 17:01
Yoon Taeho26-Jun-03 17:01 
GeneralRe: Re-inserting an ActiveX control in VC6 Pin
Daed24-Mar-04 2:33
Daed24-Mar-04 2:33 
GeneralShellExecute Pin
skinnyreptile26-Jun-03 11:47
skinnyreptile26-Jun-03 11:47 

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.