SetFormVisible

Top  Previous  Next

The SetFormVisible method sets the visibility of a form in the forms combo-box on the printer preferences dialog.

HRESULT SetFormVisible(

[in] LPCWSTR p_wsFormName,

[in] BOOL    p_bVisible,

[in] LPCWSTR p_wsProfileName,

[in] BOOL    p_bPublicProfile

);

 

Parameters:

p_wsFormName

[in]pointer to a null terminated Unicode string containing the name of the custom form to edit

p_bVisible

[in] set to TRUE to show form or FALSE to hide form.

p_wsProfileName

[in] pointer to a null terminated Unicode string containing the profile to modify. If this parameter is an empty string, the current active profile is used.

p_bPublicProfile

[in] Flag if the profile is a public or a private profile.

 

Return values:

S_OK on success or COM error code

NV_NOT_INITIALIZED - Initialize was not called

NV_UNKNOWN_FORM - a form with the specified name does not exist

NV_PUBLIC_PROFILE - you cannot change public profiles only on server