Share via


ISpThreadTask::WindowMessage

This application-specific method processes window messages, if the application needs a window. If the caller of ISpThreadControl::StartThread passes a non-null window pointer, this method must be implemented. In this case, the implementation must use a MessageWaitForMultipleObjects loop in its ISpThreadTask::ThreadProc method.

virtual LRESULT STDMETHODCALLTYPE WindowMessage(
  void* pvTaskData,
  HWND hWnd,
  UINT Msg,
  WPARAM wParam,
  LPARAM lParam
) = 0;

Parameters

  • pvTaskData
    [in] Pointer to task data. This is the same data as that passed to ISpTaskManager::CreateThreadControl.
  • hWnd
    [in] Window handle.
  • Msg
    [in] Window message.
  • wParam
    [in] Information that depends on the message specified by the Msg parameter.
  • lParam
    [in] Information that depends on the message specified by the Msg parameter.

Return Values

The return value is message specific.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

ISpThreadTask | SAPI Interfaces

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.