GetProfileName

Returns the name of the profile specified in the Profile parameter. Use this function together with GetNumberOfProfiles, to enumerate the profiles. The numbering of the profiles is zero based (e.g. if GetNumberOfProfiles returns 5 you can retrieve the names of the profiles numbered from 0 to 4).

 

GetProfileName (PrinterName As String, Profile As Long) As String

 

PrinterName             - name of the printer.

Profile                                    - number of the profile

Return value                        - name of the profile.

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.