On Mon, 03 Nov 2008, Maurilio Longo wrote:

Hi Maurilio,

> I've not tested this code, but something like this should give you the thread 
> id.
> unsigned long _gettid()
> {
>    PTIB   ptib = NULL;
>    APIRET rc;
> 
>    rc = DosGetInfoBlocks(&ptib, NULL);
> 
>    return ptib->tib_ptib2->tib2_ultid;
> }
> Hope this help.

Yes, thanks. I hoped that maybe there is simpler version then using
DosGetInfoBlocks() but we can also use this. Thank you very much.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to