Jump to content

Recommended Posts

Posted

You know guys, there was a time when you didn't know anything, and it might be nicer to just say nothing than to give some wise crack like CHECK THE INTERNET - boy, you're so smart!

Anyway, I don't know where on MSDN they have API calls CLEARLY laid out so that you might be able to use them with RUNDLL (which, I assume, is why you're asking - GOOD QUESTION!).

The only place I know at this point that has clear use of some DLL's is DX21's RunDll32 Reference:

http://www.dx21.com/SCRIPTING/RUNDLL32/INDEX.ASP

RunDll32 Reference

Also, printui.dll has a LOT of functionality. To see all the options use:

Rundll32 printui.dll,PrintUIEntry /?

The following AtuoIt code will install the "HP LaserJet 5/5M PostScript" to LPT1: (Acrobat used to require a PS printer be installed to work):

$Cmd = $RunDLL & ' printui.dll,PrintUIEntry /if /b "HP LaserJet 5/5M PostScript" /f " & @WindowsDir & "\inf\ntprint.inf /r "lpt1:" /m "HP LaserJet 5/5M PostScript" /u'
RunWait ( $Cmd, @SystemDir, @SW_HIDE )

Links to other places on the web that have well documented calls to DLL's would be greatly appreciated.

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
×
×
  • Create New...