Solved

Retrieving constants from a dll, like netapi32.dll

Posted on 1998-03-18
1
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month6 days, 10 hours left to enroll

636 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