I'm trying to use printerproperties api function from winspool.drv, but it dosen't work on winxp (it shows the about dialog of the printer driver or a basic property window), on win98, win95 or winME works perfectly. I need it because I want to make a custom printer dialog.
the code goes like this:
Private Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, pDefault As Any) As Long
Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal hPrinter As Long) As Long
Private Declare Function PrinterProperties Lib "winspool.drv" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long
Private Sub Form_Load()
Dim hPrinter As Long
OpenPrinter Printer.DeviceName, hPrinter, ByVal 0&
PrinterProperties Me.hwnd, hPrinter
Is there any work around to this prob?