This property refers to the handle to the specified printer's DEVNAMES structure.

[Visual Basic]   imagekitcontrolname.PrintDraw.DevNames [ = LONG_PTR ]
[Visual C++]     [ LONG_PTR = ]imagekitcontrolname.GetPrintDraw().GetDevNames()
                 imagekitcontrolname.GetPrintDraw().SetDevNames(LONG_PTR Val)
[VB.NET]   imagekitcontrolname.PrintDraw.DevNames [ = Integer(x86) or Long(x64) ]
[C#.NET]   imagekitcontrolname.PrintDraw.DevNames [ = int(x86) or long(x64) ]

* (x86) refers to the 32 bit version, (x64) refers to the 64 bit version.

Property Value

The handle to the specified printer's DEVNAMES structure

Explanation

The DevNames property refers to the handle to the specified printer's DEVNAMES structure. By executing the GetDevModeHandle method or the PrintDialog method, you can get the handle of the DEVNAMES structure in addition to the handle of the DEVMODE structure. The memory occupied by the DevNames property is released when the ReleaseDevModeHandle method is executed (this property value becomes 0 or NULL). If the DevNames property is valid, you can get the printer name and port name by executing the GetDevNamesInfo method.

For more information on the DEVNAMES structure, refer to Windows API related books.

Setting this value

This value can be set.

Retrieving this value

This value can be retrieved at runtime.

The ImageKit10 ActiveX is a product created by Newtone Corporation