Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

Retrieving constants from a dll, like netapi32.dll

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
mories
Asked:
mories
1 Solution
 
greendotCommented:
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

Industry Leaders: 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!

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