The Uninitialized state is the initial state form objects should be in when they are first created. Form objects become initialized with message data when a client application calls the IPersistMessage::InitNew or IPersistMessage::Load method on the form object. Legal state transitions from the Unitialized state are described in the following table.
| IPersistMessage method | Action | New state |
|---|---|---|
| InitNew | Load the form object with default data. | Normal |
| Load | Load the form object with data from the target message. | Normal |
| GetClassId | Return success, or set the last error to and return E_UNEXPECTED. | Uninitialized |
| GetLastError | Return the last error. | Uninitialized |
| Other IPersistMessage methods or methods from other interfaces | Set the last error to and return E_UNEXPECTED. | Uninitialized |