RemovePredefinedForm2

Top  Previous  Next

The RemovePredefinedForm2 method deletes a user defined form with a given name

HRESULT RemovePredefinedForm2(

[in] BSTR p_wsFormName,

[in] BSTR p_wsProfileName,

[in] BOOL p_bPublicProfile

);

 

Parameters:

p_wsFormName

[in]pointer to a BSTR containing the name of the custom form to delete

p_wsProfileName

[in] pointer to a BSTR 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_READONLY_FORM - can not deleted a system form

NV_PUBLIC_PROFILE - you cannot change public profiles only on server