Pino Posted August 15, 2007 Share Posted August 15, 2007 Hello to you all, I want to use following Windows API Calls in Autoit. QueryDosDevice DWORD QueryDosDevice( LPCTSTR lpDeviceName, LPTSTR lpTargetPath, DWORD ucchMax ); and DefineDosDevice BOOL DefineDosDevice( DWORD dwFlags, LPCTSTR lpDeviceName, LPCTSTR lpTargetPath ); I think my calls are in Kernel32.dll. I know, for Windows, API calls have to use DllCall () but I dont know how to use them in the right way in Autoit. I have no idea how I can get back the information from the QueryDosDevice and I also have no idea how to work with DefineDosDevice and to do it in the correct way. Please could you help me to fix my problem. Pino Link to comment Share on other sites More sharing options...
Zedna Posted August 19, 2007 Share Posted August 19, 2007 (edited) Start here and hereHere is some start point:$DeviceName = "???" $TargetPath = "???" $ret = DllCall("Kernel32.dll", "int", "QueryDosDevice", "str", $DeviceName, "str", $TargetPath, "int", 255) $ret = ret[0] Edited August 19, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Pino Posted August 21, 2007 Author Share Posted August 21, 2007 Hello Zedna, Thanks for you idea. Pino Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now