The EN_PROTECTED notification message notifies a rich edit control’s parent window that the user is taking an action that would change a protected range of text. A rich edit control sends this notification message in the form of a WM_NOTIFY message.
EN_PROTECTED wParam = (WPARAM) (UINT) uID; lParam = (LPARAM) (ENPROTECTED FAR *) lpEnProtected;
Returns zero to allow the operation or a nonzero value to prevent it.
If zero is returned and the msg, wParam, and lParam members of the ENPROTECTED structure are changed, the control processes the revised message instead of the original message.