public static DeviceContext CreateIC(string driverName, string deviceName, string fileName, HandleRef devMode) { return(new DeviceContext(IntUnsafeNativeMethods.CreateIC(driverName, deviceName, fileName, devMode), System.Windows.Forms.Internal.DeviceContextType.Information)); }