FANDOM


Syntax

.FREEDC windowhandle

Explanation

.FREEDC 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 was used as input for a previous .GETDC command. .FREEDC releases any device context previously obtained by the .GETDC command and returns it to Windows. It is essential to release this 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 .GETDC.

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.