Benutzer mit den meisten Antworten
GetThreadName und SetThreadName

Frage
-
Hallo zusammen,
mit dem Header XTIB.h von Hans Dietrich kann man in 32Bit Applikationen den Thread Namen setzen und lesen (SetThreadName und GetThreadName).
Ich muss jetzt unsere Bibliothek und vorerst eine Applikation auch mit 64Bit kompilieren und benötige dafür 64Bit Versionen von SetThreadName und GetThreadName.
Es ware net, wenn mir da jemand weiterhelfen könnte.
Danke
Walter
Antworten
-
Im letzten Post findest Du wie man x86 und x64 gut unterscheiden kann:
Best regards
Bordon
Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar.- Als Antwort vorgeschlagen Dimitar DenkovMicrosoft contingent staff, Administrator Donnerstag, 4. Juni 2015 10:38
- Als Antwort markiert Dimitar DenkovMicrosoft contingent staff, Administrator Donnerstag, 11. Juni 2015 12:12
Alle Antworten
-
In den Kommentaten zu dem Artikel
http://www.codeproject.com/Articles/2398/Thread-Debugging-with-the-Thread-Information-Block
solltest Du hilfreiche Hinweise finden. Eine 1:1 Umsetzung wie Du es Dir wünscht wäre mir nicht bekannt. Vielleicht ist ja auch dieser Artikel für Dich hilfreich:
https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
Best regards
Bordon
Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar. -
Hallo,
ich habe jetzt zwei Code Blöcke, einer für 32Bit Windows und der andere für 64Bit Windows. Das Makro $(Platform) hat im Property Manager den Wert x64 bei der 64Bit Version und den Wert Win32 bei der 32Bit Version.
Ich habe schon einige Dinge ausprobiert aber keine Möglichkeit gefunden diese Info mit
#ifdef
#else
#endif
zu überprüfen.
Hat jemand eine Idee?
Gruss
Walter
-
Im letzten Post findest Du wie man x86 und x64 gut unterscheiden kann:
Best regards
Bordon
Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar.- Als Antwort vorgeschlagen Dimitar DenkovMicrosoft contingent staff, Administrator Donnerstag, 4. Juni 2015 10:38
- Als Antwort markiert Dimitar DenkovMicrosoft contingent staff, Administrator Donnerstag, 11. Juni 2015 12:12