ImportProfile

 

#include “BlackIceDEVMODE.h”

 

BOOL            ImportProfile (LPCTSTR szPrinterName, LPCSTR szNewProfileName, LPCTSTR szFileName);

Description

Imports a profile stored in a file without applying the stored settings. The profile name is specified at profile creation. When importing the profile the driver may append a number to the profile name to keep it unique. The szNewProfileName is an optional buffer that will receive the new profile name. Provide a buffer that is at least 60 characters long, or use NULL if you do not need the new profile name.

Parameters

LPCTSTR szPrinterName             - name of the Black Ice printer.

LPTSTR szNewProfileName       - name of the imported profile. (this is an outgoing variable, specify a buffer at least 60 characters long or use NULL if you do not need the name of the imported profile)

LPCTSTR szFileName                  - path to the profile file to import.

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.