BIAPGetDefaultPrinter

 

#include "BiAutoPrint.h"

 

BOOL BIAPGetDefaultPrinter(LPSTR pPrnName, DWORD& dwCount);

 

Description

This function retrieves the name of the system default printer. If the length of the pPrnName is too small, the function returns FALSE and the dwCount will contain the length required. IMPORTANT: You have to initialize the BiAutoPrint.dll with BIAPInitialize function before using this function.

 

Parameters

Input value: pPrnName          - Printer Name (string).

Input value: dwCount              - Length of the pPrnName string.

 

Return value

TRUE on success, otherwise FALSE.

 

Requirements

Header:

BiAutoPrint.h

Library:

BiAutoPrint32.lib (for 32 bit)

BiAutoPrint64.lib (for 64 bit)

DLL:

BiAutoPrint32.dll (for 32 bit)

BiAutoPrint64.dll (for 64 bit)