CreateRegistryKeyForApplicationStarting

This function will create the required entries in the registry for the “Start Application” feature.  The registry key will be created under the “HKEY_LOCAL_MACHINE\SOFTWARE\Black Ice Software, LLC\” key. The registry key is different for each printer driver.

 

LONG CreateRegistryKeyForApplicationStarting(DWORD PrinterType)

 

Input value: PrinterType                         – the printer to create the registry keys for)

The values of the PrinterType can be one of the followings:

0 =      Color NT

1 =      Monochrome NT

2 =      Emf NT

3 =      Color Terminal Server

4 =      Mono Terminal Server

5 =      Emf Terminal Server

6 =      Pdf NT

7 =      Pdf Terminal Server

8 =       ColorPlus NT

9 =       ColorPlus Terminal Server

 

 

 

Return value                             - Returns 0 on success, otherwise returns the error code to be

passed to GetLastError().

 

This function will also grant full access to the “Everyone” and “Administrator” groups to this key in the registry. The system administrator can change the access rights for these registry keys and can add or remove access rights for different groups and users after installation.

 

NOTE: To be able to launch an application after printing, using the printer driver’s “Start Application” feature, the user must have read/write permission to these registry keys! If the read/write process fails, the application will not be launched by the printer driver.

 

CreateRegistryKeyForApplicationStarting_ColorNT()

CreateRegistryKeyForApplicationStarting_MonoNT()

CreateRegistryKeyForApplicationStarting_EmfNT()

CreateRegistryKeyForApplicationStarting_PdfNT()

CreateRegistryKeyForApplicationStarting_ColorTS()

CreateRegistryKeyForApplicationStarting_MonoTS()

CreateRegistryKeyForApplicationStarting_EmfTS()

CreateRegistryKeyForApplicationStarting_PdfTS()

 

Each of the above functions will create a registry entry for that specific printer driver. They will call the CreateRegistryKeyForApplicationStarting function and will pass the required parameter.

 

NOTE:  This function is outdated, no longer recommended.