Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAbout irregular window Pin
tinberdxq26-Jun-03 17:45
tinberdxq26-Jun-03 17:45 
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 
As Ryan said you have to disassemble the DLL code to find the number of parameters. There are certain patterns to determine the number of parameters, for instance before a function is called, its parameters are pushed into the stack
push eax<br />
push ecx<br />
call DllFunc

which in C++ translates to DllFunc( ecx, eax).
At the end of the function you could have something like this:
ret 000X - where X is a number (4, 8, C etc.), which will tell you the number of parameters, and 4 means one parameter, 8 means two and so on.
After the function has returned, if you see code like this:
add esp, 0X - where X again is a number that tells you the number of parameters. This is an adjustment done to the stack after a function returns.
There are more hints out there but you have to study some assembly to figure out most of them.

Finding the types of those arguments is very difficult and sometimes impossible. You need to know something about the function.

// Afterall, I realized that even my comment lines have bugs

When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
GeneralRe: DLL Security (.NET Securing) Pin
Ryan Binns26-Jun-03 21:04
Ryan Binns26-Jun-03 21:04 
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 

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.