Einzelnen Beitrag anzeigen

Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.492 Beiträge
 
Delphi 7 Enterprise
 
#3

Re: QueueUserWorkItem wie sieht es in Delphi aus?

  Alt 17. Sep 2005, 18:09
Zitat von Luckie:
Die Funktion ist so deklariert:
Code:
BOOL QueueUserWorkItem(
  LPTHREAD_START_ROUTINE Function,
  PVOID Context,
  ULONG Flags
);
Mit welchem Datentyp übersetzt man den ersten Parameter in Delphi?

Im PSDK steht noch dazu:
Zitat:
[in] Pointer to the application-defined callback function of type LPTHREAD_START_ROUTINE to be executed by the thread in the thread pool. This value represents the starting address of the thread. This callback function must not call the TerminateThread function.
For more information, see ThreadProc.
Google war diesmal irgendwie nicht sehr hilfreich.
Wie wärs denn mit @MyThreadStartFunction ? Aufbau dieser Funktion wie ThreadProc.
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat