# GetLastError

```csharp
[DllImport("coredll.dll", SetLastError = true)]
public static extern uint GetLastError(
   
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror)
