Intermec PENKEY 6100 Programmer's Reference Manual page 101

Hide thumbs Also See for PENKEY 6100:
Table of Contents

Advertisement

SECTION 3
Printer Services API
Retrieving the API Entry Point PrtService
vice
hInstNorPrnt = LoadLibrary( "NORIRDA.DRV" );
if ( hInstNorPrnt <= HINSTANCE_ERROR ) {
}
lpfnPrtService =
if ( lpfnPrtService == NULL ) {
}
Calling PrtService
hInst, WORD wOpt, LPARAM lParam1, LPARAM lParam2)
if (lpfnPrtService(hInst, PRT_ENABLE, (LPARAM)NULL,
}
MessageBox( NULL,
"Could not open printer driver.",
"ERROR",
MB_OK | MB_ICONEXCLAMATION );
return FALSE;
(fpPrtService)GetProcAddress( hInstNorPrnt, "PrtService" );
MessageBox( NULL,
"Unable to get address for\nPrtService",
"ERROR",
MB_OK | MB_ICONEXCLAMATION );
return FALSE;
PrtService
MessageBox( NULL,
"Unable to enable printer driver",
"ERROR",
MB_OK | MB_ICONEXCLAMATION );
return FALSE;
PEN*KEY
Supporting Windows Applications
PrtService( HINSTANCE
(LPARAM)NULL ) < 1) {
R
6100 Computer Programmer's Reference Guide
PrtSer-
3-33

Advertisement

Table of Contents
loading

Table of Contents