UpdateProcThreadAttribute

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool UpdateProcThreadAttribute(
     IntPtr lpAttributeList,
     uint dwFlags,
     IntPtr Attribute,
     IntPtr lpValue,
     IntPtr cbSize,
     IntPtr lpPreviousValue,
     IntPtr lpReturnSize);

Boo Signature:

[DllImport("kernel32.dll", SetLastError : true)]
def UpdateProcThreadAttribute(
    lpAttributeList as IntPtr,
    dwFlags as UInt32,
    Attribute as IntPtr,
    lpValue as IntPtr,
    cbSize as IntPtr,
    lpPreviousValue as IntPtr,
    lpReturnSize as IntPtr) as bool:
     pass

User-Defined Types:

Sample Code:

Última actualización