Jump to content

DLL Documentation


Recommended Posts

I'm currently trying to get this Permissions UDF running again, partially because I want to be able to display who has a document open on a Shared Drive, and partially because I want more experience with DLL calls. I'm a bit stuck right now though because MSDN doesn't seem to have any documentation on Kernel32.dll or AdvAPI.dll, and I think that's where the UDF is giving me issues. I have no idea, however, and I feel like I'm flying blind. 

Right now I'm trying to find the value of $SE_PRIVILEGE_ENABLED documented anywhere. I found it in the UDF, in the SecurityConstants.au3, and on StackOverflow, but nowhere on MSDN. What am I missing here? :mad2:

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Thanks genius! (I saw these, but I wasn't sure of their reliability, so I skipped over them.)

With the SE_Privilege_Enabled  what I really meant was this seems to be an undocumented Enum or something... There never is a reference to the actual values, just their names. I seem to run into this sort of thing with the docs all the time... that and getting redirected to the German docs

Edited by seadoggie01

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

If you mean the actual value of SE_Privilege_Enabled, that is something i run into a lot. I use google to search for definitions for the variable.

So for your example i google this:

#define "SE_Privilege_Enabled"

this will most likely always return some .h or .cpp file with the value you searched for. If you are unsure if the variable is the actual variable in reference to what you need, pick multiple searches and look for references in the file to MSDN, windows or other windows API related definitions.

In my example my first result from the search was: http://www.rensselaer.org/dept/cis/software/g77-mingw32/include/winnt.h

The file itself seems to refer to windows and a comment mentions "windows.h", so i would personally have accepted this as a good lead.

In this file SE_PRIVILEGE_ENABLED is defined as 2:

#define SE_PRIVILEGE_ENABLED 2

Now this may be a horrible way of doing it. And if it is, I'm sure someone will come to your rescue in this thread and tell me how big of an idiot i am :)

Anyway, i hope some of this is of use to you :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...