• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

DLL Export Function Parameters

If you have a DLL but do not have a header file, how can you find the parameters of an Export Function in the DLL? Are there any tools, etc. that will help?
0
joekendall
Asked:
joekendall
  • 10
  • 7
1 Solution
 
Richie_SimonettiIT OperationsCommented:
If we are calling about a plain dll and you don't know Assembler...
The only you could get are names of function but not parameters with Dependency Walker.
0
 
Richie_SimonettiIT OperationsCommented:
Onthe other side, if it is a known/system dll (shell32 and so on, you could check at API Viewer or help file from VB )
0
 
joekendallAuthor Commented:
It is cliconfg.dll which is a SQL Server DLL. I have not been able to find any information other that through Dependency Walker which did give me the names of the functions. Now, I would like to know the parameters of it.

Thanks!

Joe
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Richie_SimonettiIT OperationsCommented:
Sorry, i don't have SQL installed... is it an active x dll?
0
 
joekendallAuthor Commented:
I believe it is an ActiveX DLL. I figured out it needs 2 parameters. I just don't know what they are. I passed to longs to it and it crashed my program. Therefore, I believe it is an ActiveX DLL since I was able to call it. Otherwise, I don't believe it would have even called the function.

Thanks!

Joe
0
 
Richie_SimonettiIT OperationsCommented:
If it is an active x you could add arefreence of it to your project like any other Object library.
0
 
joekendallAuthor Commented:
It does not have a DLLRegister function. I can reference it. Therefore, I guess it is not an ActiveX DLL.

Thanks for the help!

Joe
0
 
Richie_SimonettiIT OperationsCommented:
Then, is it or not? You can't reference it, can't you?
0
 
Richie_SimonettiIT OperationsCommented:
Which function are you trying to call? I found 3.
0
 
joekendallAuthor Commented:
I can not reference it. I do not believe then that it is an ActiveX DLL.

Yes, there are 3 functions. They are:

CPlApplet
ClientConfigureAddEdit
OnInitDialogMain

I know that CPlApplet requires 4 parameters. But, I don't know what the parameters are.

Thanks!

Joe


0
 
Richie_SimonettiIT OperationsCommented:
I think you are a lucky person ;)
0
 
joekendallAuthor Commented:
Why do you think I am a lucky person? By the way, I appreciate your help. I would like to know the parameters for the other 2 functions. I was trying to learn how to decipher what the parameters are.

Thanks!

Joe
0
 
Richie_SimonettiIT OperationsCommented:
'cause i found definition for only one of three functions and it was the one you need. Just that.
By the way, would you explain what you are trying to do? maybe there is another way since SQL server exposes automation objects.
Thanks for "A" grade.
0
 
joekendallAuthor Commented:
I am trying to learn how to find the parameters for DLLs where I do not have a Header file for them. Without it, it is hard to define the parameters and their types.

I know how to do what I want with the registry, but would like to be able to use the DLLs at times.

Thanks!

Joe
0
 
Richie_SimonettiIT OperationsCommented:
Hi, maybe i could help...
what is what you are trying to do?
0
 
joekendallAuthor Commented:
This DLL controls the applet but not the changes that are made. It uses the registry to make the changes.

In general though, I would like to learn how to decipher parameters for DLLs when I don't know what they are. I can for the most part find out how many parameters there are but don't know where to find a good reference or two for Assembly language to be able to make sense of what information I have.

Thanks!

Joe
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 10
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now