Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi ThreadId rausfinden (https://www.delphipraxis.net/15217-threadid-rausfinden.html)

Meflin 24. Jan 2004 11:06


ThreadId rausfinden
 
Hi,
wie lässt sich aus einem thread dessen eigene threadid herausfinden?
ich verwende NICHT den vcl-thread!

*MFG*

choose 24. Jan 2004 11:07

Re: ThreadId rausfinden
 
Hallo Meflin,

sieh mal im PSDK unter GetCurrentThreadID nach.

Luckie 24. Jan 2004 11:08

Re: ThreadId rausfinden
 
GetThreadID.

Zitat:

Zitat von Das große schlaue PSDK
Code:
void GetThreadId(
  HANDLE Thread
);

Return Values
If the function succeeds, the return value is the thread identifier of the specified thread.
If the function fails, the return value is zero. To get extended error information, call GetLastError.


Meflin 24. Jan 2004 11:11

Re: ThreadId rausfinden
 
scheint das zu sein was ich brauche! aber was soll das:
Zitat:

Requirements
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
warum sollte man da nen windows server dazu brauchen???

Luckie 24. Jan 2004 11:13

Re: ThreadId rausfinden
 
Und was steht bei Client?

Meflin 24. Jan 2004 11:14

Re: ThreadId rausfinden
 
ach etzt check ichs :wall:


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz