The SetPrinterServerFlags2 method sets the profiles usage options for a printer
HRESULT SetPrinterServerFlags2(
[ in, string ] BSTR p_wsPrinterName,
[ in ] BOOL p_bAllowPrivateProfiles,
[ in ] BOOL p_bShowSelectProfile,
[ in ] BOOL p_bAllowHideDialog
);
Parameters:
p_wsPrinterName
[in, string] printer name
p_bAllowPrivateProfiles
[in] allow private profiles
p_bShowSelectProfile
[in] show select profiles dialog for all users
p_bAllowHideDialog
[in] allow users to hide select profiles dialog
Return values:
S_OK on success or COM error code
NV_SERVICE_ERROR - error connecting to novaPDF Server service