GetNumberOfProfiles

 

#include “BlackIceDEVMODE.h”

 

BOOL            GetNumberOfProfiles (LPCTSTR szPrinterName, DWORD* dwProfiles);

Description

Returns the current number of printer profiles. Use this function together with GetProfileName, to enumerate the profiles.

Parameters

LPCTSTR szPrinterName              - name of the Black Ice printer.

DWORD* dwProfiles                       - pointer to the variable that will receive the number of profiles.

Return value

TRUE on success, otherwise FALSE.

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.