> For the complete documentation index, see [llms.txt](https://www.pinvoke.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pinvoke.dev/kernel32/updateprocthreadattribute.md).

# UpdateProcThreadAttribute

```csharp
[DllImport("KERNEL32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL UpdateProcThreadAttribute(
    LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList,
    uint dwFlags,
    nuint Attribute,
    [Optional] void* lpValue,
    nuint cbSize,
    [Optional] void* lpPreviousValue,
    [Optional] nuint* lpReturnSize);
```

[LPPROC\_THREAD\_ATTRIBUTE\_LIST](/threading/lpproc_thread_attribute_list.md)

[PROC\_THREAD\_ATTRIBUTE](/threading/proc_thread_attribute.md)

[PROCESS\_CREATION\_MITIGATION\_POLICY](/threading/process_creation_mitigation_policy.md)
