[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


_beginthreadex

Begins a thread.

Compatibility:

This function is compatible with the following targets:

ANSI
BeOS
EMB/RTOS
Mac OS

Palm OS

Win32


Prototype:
#include <process.h>
HANDLE __cdecl _beginthreadex(
  LPSECURITY_ATTRIBUTES inSecurity,
  DWORD inStacksize,
  LPTHREAD_START_ROUTINE inCodeAddress,
  LPVOID inParameter,
  DWORD inCreationFlags,
  LPDWORD inThreadID);
Parameters:

Parameters for this function are:

inSecurity  
LPSECURITY_ATTRIBUTES  
Security Attributes, NULL is the default attributes.  
inStacksize  
DWORD *  
Set by the linkers /STACK switch, 1MB is the default  
inCodeAddress  
LPTHREAD_START_ROUTINE  
The address of the function containing the code where the new thread should start.  
inParameter  
LPVOID  
The same as the lpvThreadParameter originally passed, used to pass an initialization routine.  
inCreationFlags  
DWORD  
If zero begins thread immediately, if CREATE_SUSPENDED it waits before executing.  
inThreadID  
LPDWORD  
An variable to store the ID assigned to a new thread.  

Return:

A HANDLE variable if successful.

Remarks:

The function _beginthreadex is similar to the Windows call CreateThread except this functions properly creates the local data used by MSL.

See Also:

"_endthreadex"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000