... are private to a process ." So when the process is finished, all its environment is cleared, unless you have created global handles (i.e. using GlobalAlloc()). Sorry, but the docs says: GDI objects support only one handle per object. Handles to GDI objects are private to a process. That is, ...