Solved

DLL Export Function Parameters

Posted on 2002-06-27
17
439 Views
Last Modified: 2007-11-27
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
Comment
Question by:joekendall
  • 10
  • 7
17 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7115195
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7115198
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
 
LVL 11

Author Comment

by:joekendall
ID: 7121735
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7121930
Sorry, i don't have SQL installed... is it an active x dll?
0
 
LVL 11

Author Comment

by:joekendall
ID: 7124965
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7125808
If it is an active x you could add arefreence of it to your project like any other Object library.
0
 
LVL 11

Author Comment

by:joekendall
ID: 7126983
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7127567
Then, is it or not? You can't reference it, can't you?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7127588
Which function are you trying to call? I found 3.
0
 
LVL 11

Author Comment

by:joekendall
ID: 7127608
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
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 7127631
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7127637
I think you are a lucky person ;)
0
 
LVL 11

Author Comment

by:joekendall
ID: 7127732
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7127773
'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
 
LVL 11

Author Comment

by:joekendall
ID: 7127921
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7186112
Hi, maybe i could help...
what is what you are trying to do?
0
 
LVL 11

Author Comment

by:joekendall
ID: 7186227
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question