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, //Pointer to interface
LPMESSAGEFILTER * lplpMessageFilter //Address of output variable
// that receives the
// IMessageFilter interface
// pointer of a previously
// registered message filter
);
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objbase.h.
Import Library: Included as a resource in ole32.dll.