ITypeChangeEvents::RequestTypeChange method (oaidl.h)
Raised when a request has been made to change a type. The change can be disallowed.
Syntax
HRESULT RequestTypeChange(
[in] CHANGEKIND changeKind,
[in] ITypeInfo *pTInfoBefore,
[in] LPOLESTR pStrName,
[out] INT *pfCancel
);
Parameters
[in] changeKind
The type of change.
CHANGEKIND_ADDMEMBER
CHANGEKIND_DELETEMEMBER
CHANGEKIND_SETNAMES
CHANGEKIND_SETDOCUMENTATION
CHANGEKIND_GENERAL
CHANGEKIND_INVALIDATE
CHANGEKIND_CHANGEFAILED
[in] pTInfoBefore
An object that implements the ITypeInfo, ITypeInfo2, ICreateTypeInfo, or ICreateTypeInfo2 interface and that contains the type information before the change was made. The client subscribes to this object to receive notifications about any changes.
[in] pStrName
The name of the change. This value may be null.
[out] pfCancel
False to disallow the change; otherwise, true.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |