On Wed, Nov 27, 2002 at 02:51:44PM +0800, Vive l'amour wrote:
>can any of you tell me how to call Win32 API in cygwin?  I've tried to
>call GetCurrentThreadId() in my program but ld failed to locate the
>symbol, even though I supplied it with a correct search path for
>w32api.  (-lkernel32)

You include the correct header (windows.h) and call the function.

If GetCurrentThreadId wasn't found then you probably didn't include the
correct header.

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to