FilterInputMessage
Called by PresentationHost.exe whenever a message is received unless E_NOTIMPL is returned.
HRESULT FilterInputMessage( [in] MSG* pMsg ) ;
Parâmetros
pMsg
[in] The WM_INPUT message sent to the window that is getting raw input.
Property Value/Return Value
HRESULT:
S_OK - The filter did not process the message and further processing may occur.
S_FALSE - The filter processed this message and no further processing should occur.
E_NOTIMPL – If this value is returned, FilterInputMessage is not called again. This might be returned from a host application that is only interested in providing custom progress and error user interfaces to PresentationHost.exe is not interested in being forwarded raw input messages from PresentationHost.exe.
Comentários
PresentationHost.exe is the target of various raw input devices, including keyboard, mice, and remote controls. Às vezes, o comportamento no aplicativo host é dependente de entrada, caso contrário, seria consumida por PresentationHost.exe. Por exemplo, um aplicativo host pode depender recebendo determinadas mensagens de entrada para determinar se deve ou não exibir elementos de interface de usuário específico.
To allow the host application to receive the necessary input messages to provide these behaviors, PresentationHost.exe forwards appropriate raw input messages to the hosted application by calling FilterInputMessage.
O aplicativo hospedado recebe mensagens de entrada brutas registrando-se com o conjunto de raw dispositivos de entrada (dispositivos de Interface humana) retornado por DispositivosDeReceberEntradaCrua.