This function will destroy the hgc, and all the resources that belong to it. If it is currently bound to a hwnd, this call will be ignored.
#include <pgl.h> HAB hab; HGC hgc; BOOL rc; rc = pglDestroyContext(hab, hgc);