Changeset 6500 for trunk/src


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

query message queue of new threads with WinQueueFromId

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r6487 r6500  
    1 ; $Id: KERNEL32.DEF,v 1.121 2001-08-08 10:06:52 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.122 2001-08-09 08:45:06 sandervl Exp $
    22
    33;Basis is Windows95 KERNEL32
     
    2222  _DosQuerySysState            =  DOSCALLS.368
    2323
     24  WinQueueFromID                = PMMERGE.5313
    2425  WinXxAllocFill                = PMMERGE.5423
    2526  WinXxFreeMem                  = PMMERGE.5427
  • 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.