Comment puis-je obtenir l'ID de thread d'un thread Win32 à partir du nom de thread?ID de thread A partir du nom de thread
0
A
Répondre
1
Fils Win32 don't have names. Voulez-vous dire processus?
+0
threads ont des noms;) à moins à l'intérieur du débogueur ... http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx –
0
Si, par nom, vous voulez dire poignée, vous pouvez utiliser:
DWORD WINAPI GetThreadId(
_In_ HANDLE Thread
);
(http://msdn.microsoft.com/en-us/library/ms683233%28v=vs.85%29.aspx)
Questions connexes
- 1. ID de thread dans Qt
- 2. Nom du thread dans le ThreadPool - C#
- 3. pthread_t à gdb ID de thread
- 4. ID de thread Windbg après StackOverflow et arrêt du processus
- 5. Exécution de la méthode App Delegate sur le thread principal à partir du thread secondaire
- 6. Comment interrompre un autre thread à partir d'un moniteur Thread
- 7. Délégation de code à exécuter à partir du thread principal pour gérer gui à partir du thread principal
- 8. Manipulation d'un thread à partir d'un thread différent
- 9. comment mettre à jour l'affichage dans le thread d'interface utilisateur à partir du thread de travail
- 10. BackgroundWorker OnWorkCompleted lève l'exception de thread-thread
- 11. Définir l'identité du thread
- 12. Invoquer à partir de thread différent
- 13. Récupération de l'activité en cours à partir du thread
- 14. Concurrency du thread
- 15. C# - Renvoie les données du thread ThreadPool au thread principal
- 16. thread automatique à partir de tomcat
- 17. android: InputConnection à partir de thread différent.
- 18. Traitement du thread principal du processus
- 19. Rendre le thread exécuté sur un thread non EDT (thread d'envoi d'événement) à partir d'EDT
- 20. id de threads Windows à partir de l'ID de thread géré
- 21. C# Thread in Thread: comment obtenir SynchronizationContext.Current?
- 22. C# Thread Les paramètres changent pendant l'exécution du thread - pourquoi?
- 23. Question de stockage spécifique à Boost Thread (boost/thread/tss.hpp)
- 24. Transmission de données du thread bg au thread UI à l'aide du gestionnaire?
- 25. Comment tuer le thread principal du sous-thread dans Jython
- 26. Lecture de l'entrée du thread secondaire
- 27. sécurité de thread NSMutableDictionary
- 28. appel de thread croisé
- 29. Appel d'un UIPopoverViewController sur le thread principal à partir du thread secondaire
- 30. Thread WPF et GUI comment accéder à l'objet à partir de thread différent?
Il n'y a pas moyen d'obtenir un fil par nom ... –