|
-
Apr 16th, 2000, 09:28 PM
#1
Thread Starter
Addicted Member
Public Declare Function DeletePrinter Lib "winspool.drv" Alias "DeletePrinter" (ByVal hPrinter As Long) As Long
Command1_Click()
DeletePrinter Printer.hDC
End Sub
is this api call correct????
b'coz the printer isn't deleted........
-
Apr 16th, 2000, 10:09 PM
#2
Addicted Member
The call is correct, however, the usage isn't. The hPrinter parameter expects a handle to a printer object, not the device context. You can retrieve the printer handle by using the OpenPrinter API function. Also, remember that the printer will not be deleted until all pending jobs are finished.
Later.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|