Sign in to follow this  
Followers 0

QueryDosDevice call from AutoIt

3 posts in this topic

Posted

Hey,

I'm trying to call QueryDosDevice from AutoIt but second parameter of this function put me some problems.

lpTargetPath [out]

A pointer to a buffer that will receive the result of the query. The function fills this buffer with one or more null-terminated strings. The final null-terminated string is followed by an additional NULL.

In C I think the buffer can be created in this way

LPTSTR buffer = new TCHAR[1024];
but I don't get it in AutoIt. Can anyone help me?

Share this post


Link to post
Share on other sites



Posted

Have a looking in WinAPIEx.au3 for _WinAPI_QueryDosDevice()

Share this post


Link to post
Share on other sites

Posted (edited)

Thank you for tip. After I checked the code of function from WinAPIEx I saw I tried something similar but I chose wrong type for first parameter of function in my dll call. :mellow:

Thanks for help guinness.

Edited by Andreik

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  
Followers 0