FANDOM


Syntax

.GETDC windowhandle

Explanation

.GETDC allows use of the Windows graphics engine to draw in a PC Logo for Windows window. The required input is the handle for the window which is to be used for output. .GETDC outputs a number which can be used as a device context required by the Windows kernel as a parameter for further drawing operations. It is essential to release the device context number with the .FREEDC command, since the number of device contexts which Windows can manage is limited. Using .GETDC without a corresponding .FREEDC command may cause Windows to crash.


See also .TURTLEPOINT, .WINDOWPOINT and .FREEDC.

Example

? MAKE "MY.DC .GETDC .HWND

? :MY.DC

Result: 2966

? .FREEDC .HWND

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.