RemovePredefinedForm

Top  Previous  Next

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

HRESULT RemovePredefinedForm(

[in] LPCWSTR p_wsFormName,

[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 delete

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_READONLY_FORM - can not deleted a system form

NV_PUBLIC_PROFILE - you cannot change public profiles only on server