add gdi32 funcs lastError support