After printing, ActMask Virtual Printer Driver SDK converts print job to target format, creates an INI file contains all printing information and passes this INI file to your application (please see Transfer Mode).

The INI file contains TerminalName*, ComputerName, UserName, DocumentName, TotalPages, PaperSize, PageWidth, PageHeight, Orientation, Copies, PrintQuality, Resolution, Color, Collate, JobPagesPerSide*, JobId, more and more!

* Only our ActMask SDK has ability to provide this core printing parameter.
INI file Format:
View INI sample

You can call Windows API GetPrivateProfileString to receive value from specified section in the INI file. For more details, please see MS SDK.
DWORD GetPrivateProfileString(LPCTSTR lpKeyName, LPCTSTR lpValueName, LPCTSTR lpDefault, LPTSTR lpReturnedString,
   DWORD nSize, LPCTSTR lpFileName);

INI Key Name: Info
Value Name:
TerminalName
ComputerName
UserName
PrinterName

DocumentName
DocumentNameW

DEVMODEA
DEVMODEW

Copies
Orientation


Color


Collate


JobPagesPerSide
JobId
TotalPages

FormName
PageWidth_Mm
PageHeight_Mm
PageWidth_Pixel
PageHeight_Pixel

PaperSize



PaperWidth
PaperLenght

PrintQuality




XResolution
YResolution
Details:
Terminal computer name.
Local computer name (the NetBIOS name of the local computer).
User name of the client.
Name of printer printers document.

Print job name.
Print job name in WCHARs.

DEVMODEA data.
DEVMODEW data.

Number of copies printed.
Orientation of the paper. This member can be either DMORIENT_PORTRAIT (1) or DMORIENT_LANDSCAPE (2).

Specifies the print job is color or monochrome. Following are the possible values: DMCOLOR_COLOR (2), DMCOLOR_MONOCHROME (1).

Specifies whether collation is used when printing multiple copies. Following are the possible values: DMCOLLATE_TRUE (1), DMCOLLATE_FALSE (0).

Pages of per Sheet (Pages per Side of print job). Only our SDK provides this parameter.
Id of print job.
Number of pages.

Form(paper size) name.
Width of the paper specified by print job, in millimeters.
Length of the paper specified by print job, in millimeters.
Width of the paper specified by print job, in pixels.
Length of the paper specified by print job, in pixels.

Size of the paper to print on. This member can be set to zero if the length and width of the paper are both set by the PaperWidth and PaperLenght members. For more details, please see DEVMODE struct in MS SDK.

Width of the paper, in tenths of a millimeter.
Length of the paper, in tenths of a millimeter.

Specifies the printer resolution. There are four predefined device-independent values:
DMRES_HIGH, DMRES_MEDIUM, DMRES_LOW, DMRES_DRAFT
If a positive value is specified, it specifies the number of dots per inch (DPI) and is therefore device dependent.

Specifies the x-resolution, in dots per inch, of the printer.
Specifies the y-resolution, in dots per inch, of the printer.

INI Key Name: Distribution

Value Name:
TransMode

AppFileName

TagWndMsgID
TagWndClass
TagWndTitle

ClipboardFormat

PrinterName
Details:
Distribution Settings applied.











INI Key Name: File Format

Value Name:
FileCount

File0
(File0, File1, ..., FileN)






Details:
Number of output file(s).

Name of output file. For example,
File0=C:\Documents and Settings\UserName\Application Data\Temp\2004-05-17.22.34.57.35-00002.PDF

File0=C:\Documents and Settings\UserName\Application Data\Temp\2004-05-17.22.34.57.35-00002.jpg
File1=C:\Documents and Settings\UserName\Application Data\Temp\2004-05-17.22.34.57.35-00002_1.jpg

INI File Example


[Info]
Time=2014-04-20.09.20.55.50
SessionID=0
TerminalClientName=
TerminalName=WINSERVER-2K
ComputerName=WINSERVER-2K
UserName=Test
PrinterName=ActMask Virtual Printer
DocumentName=Document
DocumentNameW=
PageWidth_Mm=216
PageHeight_Mm=279
PageWidth_Pixel=2550
PageHeight_Pixel=3300
Port=
TrayName=Automatically Select
Orientation=1
PaperSize=256
PaperWidth=2159
PaperLenght=2794
Copies=1
Duplex=1
PrintQuality=300
XResolution=300
YResolution=300
Color=2
Collate=1
JobPagesPerSide=1
JobId=2
TotalPages=3
DEVMODEA=4163744d61736b205669727475616c205072696e746572...
DEVMODEW=4100630074004d00610073006b00200056006900720074...

[Distribution]
TransMode=0
AppFileName={sys}\PrtClient.exe
TagWndMsgID=32768
TagWndClass=
TagWndTitle=Your Virtual Printer Example Title
ClipboardFormat=Your Virtual Printer Example Clipboard Format
PrinterName=ActMask Virtual Printer

[PDF]
FileCount=1
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.PDF

[TXT]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.TXT
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.TXT
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.TXT

[JPG]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.JPG
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.JPG
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.JPG

[GIF]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.GIF
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.GIF
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.GIF

[PNG]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.PNG
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.PNG
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.PNG

[BMP]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.BMP
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.BMP
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.BMP

[TIF]
FileCount=1
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.TIF

[TGA]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.TGA
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.TGA
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.TGA

[PCX]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.PCX
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.PCX
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.PCX

[EMF]
FileCount=3
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.EMF
File1=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0001.EMF
File2=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011_0002.EMF

[ZIP]
FileCount=1
File0=C:\Documents and Settings\demo\Local Settings\Application Data\Temp\2009-01-08.04.41.42.09-00011.ZIP

...