koda69 Posted September 8, 2011 Share Posted September 8, 2011 Having trouble getting the DllCall function within AutoIt to correctly call the PrintUIEntry function within printui.dll. Using windows 7. line of interest is: $result = DllCal ("printui.dll", "str", "PrintUIEntry", "str", "/dn /q /n\\server\printer" Have tried various return value types and also seperating the different options into further string parameters, all to no avail. Any suggestions welcome. Link to comment Share on other sites More sharing options...
Shaggi Posted September 8, 2011 Share Posted September 8, 2011 It seems you should run it through rundll.. no idea why though Run("rundll32.exe printui.dll /dn /q /n\\server\printer") Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG 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