Windows api enumprintersw

broken image
broken image

NResult = EnumPrintersA(2, svName, 5, pPointer, 500, nvByteCopy, nvNumberOfDevices) Īt the EnumPrintersA, the function call crashes the installer. Windows API call builds list of installed printers Load winspool.drv so you can call EnumPrintersA Prototype INT winspool.EnumPrintersA(LONG, BYREF STRING, LONG, BYREF POINTER, LONG, BYREF LONG, BYREF LONG) įunction PopulatePrinterSelectionComboBoxCustomAction(hMSI) At this step We are calling OpenPrinter(PRINTERALLACCESS) and it failed with 1801. During uninstalling our application, application has to delete the local virtual printer driver. Installer push uninstall of our application from server Windows server 2003 when Windows 8 PC is logging in. helper functions used in PopulatePrinterSelectionComboBoxCustomAction located in Windows installation The scenario in Windows 8 PC is given below. My code is // structure for EnumPrintersA from winspool.drv

broken image

Custom Action PopulatePrinterSelectionComboBoxCustomAction did not close 1 MSIHANDLEs.ĬustomAction PopulatePrinterSelectionComboBoxCustomAction returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)Īction ended 16:34:43: PopulatePrinterSelectionComboBoxCustomAction. MSI (c) (8C:08) : Note: 1: 2769 2: PopulatePrinterSelectionComboBoxCustomAction 3: 1

broken image

I'm doing something wrong as I get the error: MSI (c) (8C:08) : Leaked MSIHANDLE (76) of type 790541 for thread 14544

broken image