ChrisL Posted February 19, 2010 Share Posted February 19, 2010 [Function] DWORD MCP_EnumPrinter(PUINT puiNumPrinter, PHANDLE phPrinter) [Description] Find and list printers to be controlled. [Arguments] IN Maximum number of printer handles that can be acquired. puiNumPrinter OUT Number of printer handles that can be found. phPrinter OUT Pointer of an array in which printer handles should be stored. This kind of works but the 0 at the end should point to an array but I guess not an Autoit array $MCP_MAX_OPEN_PRINTER = 3 $ret = DllCall($dll, "DWORD", "MCP_EnumPrinter", "int*", $MCP_MAX_OPEN_PRINTER, "long*", 0) $ret always has the first printer handle but no subsequent handles, the second printer can be accessed by using a handle $h = $Ret +1 but I don't think it is the right way to do it. Any ideas on what the 0 should be and possibly the long* Thanks [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now