Ignore:
Timestamp:
Dec 29, 1999, 1:39:45 PM (26 years ago)
Author:
sandervl
Message:

PostThreadMessage fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibmsg.cpp

    r2208 r2246  
    1 /* $Id: oslibmsg.cpp,v 1.16 1999-12-27 14:41:41 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.17 1999-12-29 12:39:44 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    366366//******************************************************************************
    367367//******************************************************************************
     368BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam)
     369{
     370  return WinPostMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);
     371}
     372//******************************************************************************
     373//******************************************************************************
     374ULONG OSLibSendMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam)
     375{
     376  return (ULONG)WinSendMsg(hwnd, msg, (MPARAM)wParam, (MPARAM)lParam);
     377}
     378//******************************************************************************
     379//******************************************************************************
     380ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend)
     381{
     382  return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam,
     383                         (fSend) ? BMSG_SEND : BMSG_POST);
     384}
     385//******************************************************************************
     386//******************************************************************************
     387BOOL OSLibPostThreadMessage(ULONG threadid, UINT msg, WPARAM wParam, LPARAM lParam)
     388{
     389 THDB *thdb = GetTHDBFromThreadId(threadid);
     390
     391    if(thdb == NULL) {
     392        dprintf(("OSLibPostThreadMessage: thread %x not found!", threadid));
     393        return FALSE;
     394    }
     395    return WinPostQueueMsg(thdb->hmq, msg, (MPARAM)wParam, (MPARAM)lParam);
     396}
     397//******************************************************************************
     398//******************************************************************************
     399
Note: See TracChangeset for help on using the changeset viewer.