IAuditSecurity Method: AttachPrinter

AttachPrinter
(
 PrinterPath As String
);

Parameters

[in] String PrinterPath
Path of the printer whose audit is to be read. This is typically of the form "\\PRINT_SERVERNAME\PRINTERNAME" or "PRINTERNAME".

Description
Initializes the AuditSecurity object with the specified printer's audit information.

Example

Dim AuditSec As IAuditSecurity
Set AuditSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to the Printer "Laserjet" on the computer "MOON"
AuditSec.AttachPrinter "\\MOON\Laserjet"

 

See Also