Ignore:
Timestamp:
Aug 9, 2001, 10:45:06 AM (24 years ago)
Author:
sandervl
Message:

query message queue of new threads with WinQueueFromId

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibmisc.cpp

    r5380 r6500  
    1 /* $Id: oslibmisc.cpp,v 1.12 2001-03-25 22:35:37 sandervl Exp $ */
     1/* $Id: oslibmisc.cpp,v 1.13 2001-08-09 08:45:06 sandervl Exp $ */
    22/*
    33 * Misc OS/2 util. procedures
     
    256256ULONG OSLibWinQueryMsgQueue(ULONG hab)
    257257{
    258 //  ULONG hmq;
    259 
    260 //  hmq = WinQueryWindowULong(HWND_DESKTOP, QWL_HMQ);
    261   return (ULONG)WinCreateMsgQueue((HAB)hab, 0);
     258  ULONG hmq;
     259
     260  hmq = (ULONG)WinCreateMsgQueue((HAB)hab, 0);
     261  if(!hmq) {
     262      PTIB ptib;
     263      PPIB ppib;
     264
     265      DosGetInfoBlocks(&ptib, &ppib);
     266
     267      hmq = WinQueueFromID(hab, ppib->pib_ulpid, ptib->tib_ptib2->tib2_ultid);
     268  }
     269  return hmq;
    262270}
    263271//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.