koda69 0 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. Share this post Link to post Share on other sites
Shaggi 25 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 Share this post Link to post Share on other sites