Jump to content
Sign in to follow this  
insignia96

DLL Struct Typedef

Recommended Posts

insignia96

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

Share this post


Link to post
Share on other sites
dantay9

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.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites
dantay9

Just a suggestion. I know I have seen some of these structures on the forums. Try a search and see what you can come up with.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.