CoRegisterMessageFilter

Registers with OLE the instance of an EXE application's IMessageFilter interface, which is to be used for handling concurrency issues. DLL object applications cannot register a message filter.

HRESULT CoRegisterMessageFilter(

LPMESSAGEFILTER lpMessageFilter,
//IMessageFilter interface supplied by app
LPMESSAGEFILTER * lplpMessageFilter
//Prior IMessageFilter instance if non-NULL
);

Parameters

lpMessageFilter

Points to an IMessageFilter interface supplied by the application. Can be NULL, indicating that the current IMessageFilter registration should be revoked.

lplpMessageFilter

If this parameter is non-NULL, returns a pointer to the previously registered IMessageFilter instance. If NULL, indicates no previous IMessageFilter instance was registered.

Return Values

S_OK

Indicates the IMessageFilter instance registered or revoked successfully.

S_FALSE

Indicates an error registering or revoking IMessageFilter instance.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples