CreateIC

  HDC CreateIC(lpszDriver, lpszDevice, lpszOutput, lpdvmInit)    
  LPCSTR lpszDriver;    
  LPCSTR lpszDevice;    
  LPCSTR lpszOutput;    
  LPDEVMODE lpdvmInit;    

The CreateIC function creates an information context for the specified device. The information context provides a fast way to get information about the device without creating a device context.

Parameters

lpszDriver

Points to a null-terminated character string that specifies the name of the device driver (for example, “Epson”).

lpszDevice

Points to a null-terminated character string that specifies the name of the specific device to be supported (for example, “Epson FX-80”). The lpszDevice parameter is used if the device driver supports more than one device.

lpszOutput

Points to a null-terminated character string that specifies the file or device name for the physical output medium (file or output port).

lpdvmInit

Points to a DEVMODE structure containing device-specific initialization data for the device driver. The ExtDeviceModeEx retrieves this structure filled in for a given device. The lpdvmInit parameter must be NULL if the device driver is to use the default initialization (if any) specified by the user through the Control Panel.

Return Value

The return value identifies an information context for the specified device if the function is successful. Otherwise, it is 0.

Comments

GDI output functions will not produce any output when used with an information context.