Change the Messaging Interface Name

 

The Messaging Interface Name is set to the current in the Install Shield sample project inside the function SetCommonSettings():

 

// Messaging interface name

tmpLong    = PAR_DEVMODE_INTERFACENAME;

ParamValue = @PRINTER_NAME;  // Can be any string like "MyMessagingInterface"

nResult    = CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue);              

 

By default the Messaging Interface Name is set by the printer driver to a default value to all the users. You can specify a new name for the messaging interface in the INI file (BuCIniNT.ini for the color driver) like

 

InterfaceName=ColorMessageInterface

 

If the Messaging Interface Name  is specified in the INI file, the printer driver will be installed with that Messaging Interface Name  for all the users.

 

You can overwrite this Messaging Interface Name  for the current user only by setting the PAR_DEVMODE_INTERFACENAME from the Install Shield code.

 

NOTE: If the message capturing application was started by the printer driver not the user, the application runs on system account not on user account and the messaging interface name  for the system account will be different then the messaging interface name set for the user.

To avoid using different Messaging Interface Names by the application and the printer driver there are two possibilities:

 

1. Do not set the interface name at install time. Leave the default setting set by the printer driver. From the Install Shield script comment or delete the following lines from the SetCommonSettings() function:

 

// Messaging interface name

tmpLong    = PAR_DEVMODE_INTERFACENAME;

ParamValue = @PRINTER_NAME;  // Can be any string like "MyMessagingInterface"

nResult    = CallDLLFx( G_DllFileName, DllProc, tmpLong, ParamValue);              

 

2. If you need to change the name of the default messaging interface for some reason, specify the new name for the messaging interface in the INI file. I.e.:

 

InterfaceName=ColorMessageInterface