Solved

Retrieving constants from a dll, like netapi32.dll

Posted on 1998-03-18
1
210 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

14 Experts available now in Live!

Get 1:1 Help Now