Solved

Retrieving constants from a dll, like netapi32.dll

Posted on 1998-03-18
1
208 Views
Last Modified: 2010-04-06
Hello people,

How do i get the values of the constants declared in a dll.
I need to know the values of the flags JOB_RUN_PERIODICALLY, JOB_ADD_CURRENT_DATE and other flags used in the NetScheduleJodAdd / Enum functions.

Thanx for your time
0
Comment
Question by:mories
1 Comment
 
LVL 2

Accepted Solution

by:
greendot earned 50 total points
ID: 1360606
You won't be able to extract it out of a DLL.  You'll need to get it out of some sort of header file.

These will be provided in Delphi units or in C/C++ .h files.

These are converted to values at compile time, so back-engineering them is quite difficult.
The only way you could get them out of a DLL is if they happened to store them in the resource section.  You can get at that with a tool like Borland's Resource Workshop.

-joe


0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
System restore point 4 77
Best Firemonkey component pack 1 73
How to debug For loops? 3 34
can't find the executable in Simulator 1 54
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now