## LocalUI: Sample Port Monitor UI DLL

[This is preliminary documentation and subject to change.]

### SUMMARY

A port monitor's user interface DLL contains user interface functionality and executes on print client systems. Please refer to the Windows® 2000 DDK documentation for further information about print monitors.

This sample works on both x86 and Alpha platforms and is 64-bit compliant.

### BUILDING THE SAMPLE

The code must be built using the build environment shipped with the DDK. Microsoft® Visual C® must be present on the machine for the sample to build properly, as build will use some header files. Also, both the SDK and the DDK must be installed.

To build the samples, run build from the src\print\monitors\localui directory. The DLL will be placed in the appropriate platform directory (either i386 or Alpha).

The LocalUI file will be installed together with the port monitor server in src\print\monitors\localmon. It needs to be placed in the same directory with DDKLocalmon.dll and Monitor.inf. Then the user can use the print UI to install the sample port monitor.

Once built, the sample will produce four binaries: DDKLocalui.dll, DDKLocalui.lib (an export lib), DDKLocalui.exp, and, if the sample is built in checked environment, DDKLocalui.pdb.

### CODE TOUR

#### File Manifest

    File		Description

Config.c Handles spooler entry points for adding, deleting, and configuring localmon ports Dialogs.c Source module that implements dialog boxes Dialogs.h Header for Dialogs.c Local.h Header that declares debug functions Localui.c Source module that contains the DLL entry point Localui.def File that lists the exported functions Localui.prf Order of exported functions Localui.h Header for global declarations and function prototypes Localui.rc Resource file for the module Makefile Generic file for building the code sample Precomp.h Generic header Localui.htm Documentation for this sample (this file) Resource.rcv Resource version file Resource.h Resource include file Sources Generic file for building the code sample Spltypes.h Header for spooler types and functions Util.c Source module for support routines

Top of page

© 1999 Microsoft Corporation