 size="+1">Locking and unlocking devices</font><hr>
<tr valign=top>	<td>To lock a device
	<td>&nbsp;&nbsp;&nbsp;&nbsp;
	<td><b><tt>gsdll_lock_device(device, 1)</tt></b>;
<tr valign=top>	<td>To unlock a device
	<td>&nbsp;
	<td><b><tt>gsdll_lock_device(device, 0)</tt></b>;
</table>
</blockquote>

<p>
This function is typically used to lock the device while repainting a
window or copying the device bitmap to the clipboard.  Ghostscript may draw
into the device bitmap or update the palette entries while the dev