Changeset 4658 for trunk/src/user32/oslibutil.cpp
- Timestamp:
- Nov 21, 2000, 12:36:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibutil.cpp
r2804 r4658 1 /* $Id: oslibutil.cpp,v 1. 5 2000-02-16 14:34:28 sandervl Exp $ */1 /* $Id: oslibutil.cpp,v 1.6 2000-11-21 11:36:08 sandervl Exp $ */ 2 2 /* 3 3 * Window API utility functions for OS/2 … … 22 22 HAB GetThreadHAB() 23 23 { 24 T HDB *thdb;24 TEB *teb; 25 25 26 t hdb = GetThreadTHDB();27 if(t hdb)26 teb = GetThreadTEB(); 27 if(teb) 28 28 { 29 return (HAB)t hdb->hab;29 return (HAB)teb->o.odin.hab; 30 30 } 31 31 32 dprintf(("GetThreadHAB: t hdb == NULL!!"));32 dprintf(("GetThreadHAB: teb == NULL!!")); 33 33 return 0; 34 34 } … … 37 37 void SetThreadHAB(HAB hab) 38 38 { 39 T HDB *thdb;39 TEB *teb; 40 40 41 t hdb = GetThreadTHDB();42 if(t hdb)41 teb = GetThreadTEB(); 42 if(teb) 43 43 { 44 t hdb->hab = (ULONG)hab;44 teb->o.odin.hab = (ULONG)hab; 45 45 } 46 else dprintf(("SetThreadHAB: t hdb == NULL!!"));46 else dprintf(("SetThreadHAB: teb == NULL!!")); 47 47 } 48 48 //****************************************************************************** … … 50 50 HMQ GetThreadMessageQueue() 51 51 { 52 T HDB *thdb;52 TEB *teb; 53 53 54 t hdb = GetThreadTHDB();55 if(t hdb)54 teb = GetThreadTEB(); 55 if(teb) 56 56 { 57 return (HMQ)t hdb->hmq;57 return (HMQ)teb->o.odin.hmq; 58 58 } 59 59 60 dprintf(("GetThreadMessageQueue: t hdb == NULL!!"));60 dprintf(("GetThreadMessageQueue: teb == NULL!!")); 61 61 return 0; 62 62 } … … 65 65 void SetThreadMessageQueue(HMQ hmq) 66 66 { 67 T HDB *thdb;67 TEB *teb; 68 68 69 t hdb = GetThreadTHDB();70 if(t hdb)69 teb = GetThreadTEB(); 70 if(teb) 71 71 { 72 t hdb->hmq = (ULONG)hmq;72 teb->o.odin.hmq = (ULONG)hmq; 73 73 } 74 else dprintf(("SetThreadMessageQueue: t hdb == NULL!!"));74 else dprintf(("SetThreadMessageQueue: teb == NULL!!")); 75 75 } 76 76 //****************************************************************************** … … 78 78 DWORD GetThreadMessageExtraInfo() 79 79 { 80 T HDB *thdb;80 TEB *teb; 81 81 82 t hdb = GetThreadTHDB();83 if(t hdb)82 teb = GetThreadTEB(); 83 if(teb) 84 84 { 85 return t hdb->lParam;85 return teb->o.odin.lParam; 86 86 } 87 87 88 dprintf(("GetThreadMessageExtraInfo: t hdb == NULL!!"));88 dprintf(("GetThreadMessageExtraInfo: teb == NULL!!")); 89 89 return 0; 90 90 } … … 93 93 DWORD SetThreadMessageExtraInfo(DWORD lParam) 94 94 { 95 T HDB *thdb;95 TEB *teb; 96 96 97 t hdb = GetThreadTHDB();98 if(t hdb)97 teb = GetThreadTEB(); 98 if(teb) 99 99 { 100 t hdb->lParam = lParam;100 teb->o.odin.lParam = lParam; 101 101 } 102 else dprintf(("SetThreadMessageExtraInfo: t hdb == NULL!!"));102 else dprintf(("SetThreadMessageExtraInfo: teb == NULL!!")); 103 103 return 0; 104 104 }
Note:
See TracChangeset
for help on using the changeset viewer.