CreateProfile

Creates a new printer profile from the driver’s current settings. The profile will not only contain the settings stored in the printer’s BlackIceDEVMODE structure, but registry settings as well. You can get the current BlackIceDEVMODE structure using the LoadBlackIceDEVMODE function. When not needed anymore, free the structure using the ReleaseBlackIceDEVMODE function.

 

CreateProfile (PrinterName As String, ProfileName As String, Description As String, pBlackIceDEVMODE As Long) As Boolean

 

PrinterName             - name of the printer.

ProfileName              - name of the new profile (max 49 characters)

Description                - short description of the new profile (max 499 characters)

pBlackIceDEVMODE – the BlackIceDEVMODE structure to store in the profile

Return value             - true on success, false on failure.

Limitations

A 32 bit application that uses the 32 bit BlackIceDEVMODE.dll and ocx, must use the ApplyProfileFile function or method to change the profiles of 64 bit drivers. The rest of the Profile Manager Tab functions can only be used to change or retrieve the profiles of 32 bit drivers from 32 bit applications or to change or retrieve the profiles of 64 bit drivers from 64 bit applications.