| View previous topic :: View next topic |
| Author |
Message |
tinyabs Guest
|
Posted: Fri Dec 16, 2005 6:24 pm Post subject: Getting MainWindow Thread Handle |
|
|
How do I get the thread handle of the main message loop?
Thanks in advance.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Dec 16, 2005 6:49 pm Post subject: Re: Getting MainWindow Thread Handle |
|
|
"tinyabs" <nospam (AT) me (DOT) com> wrote
| Quote: | How do I get the thread handle of the main message loop?
|
Call GetCurrentThread() in the context of the main thread. If you need to
use the handle in other threads, then you need to call DuplicateHandle()
afterwards.
Gambit
|
|
| Back to top |
|
 |
tinyabs Guest
|
Posted: Sat Dec 17, 2005 5:55 am Post subject: Re: Getting MainWindow Thread Handle |
|
|
Thanks!
| Quote: | How do I get the thread handle of the main message loop?
Call GetCurrentThread() in the context of the main thread. If you need to
use the handle in other threads, then you need to call DuplicateHandle()
afterwards.
Gambit
|
|
|
| Back to top |
|
 |
|