Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "CreateThread" in [All]

kernel32

.
Summary
.

private unsafe static extern uint CreateThread(

.

  public static extern IntPtr CreateThread(IntPtr lpThreadAttributes, uint dwStackSize, IntPtr lpStartAddress,

.

def CreateThread(lpThreadAttributes as int, dwStackSize as int, lpStartAddress as IntPtr, param as int, dwCreationFlags as int, ref lpThreadId as uint) as IntPtr:

.

        uint dwHandle = CreateThread(null, (uint)StackSize, ThreadFunc, lpParam, 0, out lpThreadID);

.

static extern IntPtr CreateThread([In] ref SECURITY_ATTRIBUTES

.

Private Declare PtrSafe Function CreateThread Lib "KERNEL32" _

.

res = CreateThread(0, 0, addr, 0, 0, 0)

.

Try System.Threading.Thread.Start. It doesn't give you all the control of directly calling CreateThread, (such as specifing the flags), but it will get you a vanilla thread to spin up.

.
Documentation
[CreateThread] on MSDN
.

        CreateThread = 0x00000002,

.

    CreateThread = &H2

Enums

.

    CreateThread = 0x0002,

.

    AllAccess = CreateThread Or DuplicateHandle Or QueryInformation Or SetInformation Or Terminate Or VMOperation Or VMRead Or VMWrite Or Synchronize

.

    CreateThread = &H2

.

     CreateThread = 0x00000002

user32

.

    CreateThread = 0x00000002,

Structures

.

  public CREATE_THREAD_DEBUG_INFO CreateThread

ntdll

.

static extern NTSTATUS NtCreateThreadEx(ref IntPtr threadHandle, UInt32 desiredAccess, IntPtr objectAttributes, IntPtr processHandle, IntPtr startAddress, IntPtr parameter, bool inCreateSuspended, Int32 stackZeroBits, Int32 sizeOfStack, Int32 maximumStackSize, IntPtr attributeList);

.

def NtCreateThreadEx(

.
Documentation
[NtCreateThreadEx] on MSDN
.

static extern void ZwCreateThreadEx(ref IntPtr threadHandle, AccessMask desiredAccess, IntPtr objectAttributes, IntPtr processHandle, IntPtr startAddress, IntPtr parameter, bool inCreateSuspended, Int32 stackZeroBits, Int32 sizeOfStack, Int32 maximumStackSize, IntPtr attributeList);

.

def ZwCreateThreadEx(ref threadHandle as IntPtr, desiredAccess as AccessMask, objectAttributes as IntPtr, processHandle as IntPtr, startAddress as IntPtr, parameter as IntPtr, inCreateSuspended as bool, stackZeroBits as Int32, sizeOfStack as Int32, maximumStackSize as Int32, attributeList as IntPtr):

.
Documentation
[ZwCreateThreadEx] on MSDN

 
Access PInvoke.net directly from VS: