Desktop Functions: Smart Device Functions:
|
GetDefaultPrinter (winspool)
The GetDefaultPrinter function retrieves the printer name of the default printer for the current user on the local computer C# Signature:
[DllImport("winspool.drv", CharSet=CharSet.Auto, SetLastError=true)] VB Signature:
Declare Function GetDefaultPrinter Lib "winspool.dll" (TODO) As TODO User-Defined Types:None. Notes:Works even if print spooler service is stopped (W2K) Tips & Tricks:Sample Code:
StringBuilder dp = new StringBuilder(256); Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|