# GetStdHandle

```csharp
[DllImport("KERNEL32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern HANDLE GetStdHandle(STD_HANDLE nStdHandle);
```

[std\_handle](https://www.pinvoke.dev/console/std_handle "mention")
