Jump to content

DLL Struct Typedef


Recommended Posts

I am making a cool little UDF to go with some of our API Printing UDF's however i need some help. I need to know the autoit equivalents for these variable types

HGLOBAL

HDC

LPPRINTHOOKPROC

LPSETUPHOOKPROC

LPCTSTR

I am not sure but i think "ptr" might work for HDC and maybe "str" for LPCTSTR" The others i havent got a clue about.

http://msdn.microsoft.com/en-us/library/ms646843%28VS.85%29.aspx

That is the struct i am building.

Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower

Link to comment
Share on other sites

This isn't the place for a question. I see you have a more than enough posts to know that by now.

Anyway, take a look at DLLCall in the help file. Near the bottom, there are some conversions in a table. That should help you out a bit. I am not sure about the others though.

Link to comment
Share on other sites

HGLOBAL == Global Handle

HDC == Handle to Device Context

LPPRINTHOOKPROC == Long Pointer to print hook procedur

LPSETUPHOOKPROC == Long pointer to setup hook proc

LPCTSTR == Long pointer to constant string of T type (char or wchar).

Handles are ptr's, long pointers are ptr's, but if it should point to a string you can use str/wstr to save some work.

Broken link? PM me and I'll send you the file!

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...