Repository: microsoft/terminal (language: cpp)

Issue:
Missing license header in a few files
The repository contains a few files that are missing indications as to their license status.
In particular:

- `dep/Console/*.h`
- `dep/NT/ntioapi_x.h`
- `dep/Win32K/winuserp.h`

It would help to have an explicit indication that the MIT license applies to these files to pacify overly sensitive legal departments :).


Discussion / hints:
This is an interesting case, since those couple files are actually just stubs of internal files that we need to compile in the OS repo.
conclusion: _meh_ we might as well. At this point they're just more MIT files that we've been publishing for the last few years, even if they are just snippets from bigger files that aren't MIT.

Fix patch:
diff --git a/dep/Console/conapi.h b/dep/Console/conapi.h
index 84535ec6800..e3667083032 100644
--- a/dep/Console/conapi.h
+++ b/dep/Console/conapi.h
@@ -1,5 +1,6 @@
 /*++
-Copyright (c) Microsoft Corporation
+Copyright (c) Microsoft Corporation.
+Licensed under the MIT license.
 
 Module Name:
 - conapi.h
diff --git a/dep/Console/condrv.h b/dep/Console/condrv.h
index b5654d98bbd..d2d435ca5c5 100644
--- a/dep/Console/condrv.h
+++ b/dep/Console/condrv.h
@@ -1,6 +1,7 @@
 /*++
 
 Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT license.
 
 Module Name:
 
diff --git a/dep/Console/conmsgl1.h b/dep/Console/conmsgl1.h
index 41ef9c74108..ce83e966415 100644
--- a/dep/Console/conmsgl1.h
+++ b/dep/Console/conmsgl1.h
@@ -1,6 +1,7 @@
 /*++
 
 Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT license.
 
 Module Name:
 
diff --git a/dep/Console/conmsgl2.h b/dep/Console/conmsgl2.h
index d1abb749ab5..2ab5d65bce2 100644
--- a/dep/Console/conmsgl2.h
+++ b/dep/Console/conmsgl2.h
@@ -1,6 +1,7 @@
 /*++
 
 Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT license.
 
 Module Name:
 
diff --git a/dep/Console/conmsgl3.h b/dep/Console/conmsgl3.h
index 9e3d8e65453..9533c83d792 100644
--- a/dep/Console/conmsgl3.h
+++ b/dep/Console/conmsgl3.h
@@ -1,6 +1,7 @@
 /*++
 
-Copyright (c) 1985 - 1999, Microsoft Corporation
+Copyright (c) 1985 - 1999, Microsoft Corporation.
+Licensed under the MIT license.
 
 Module Name:
 
diff --git a/dep/Console/ntcon.h b/dep/Console/ntcon.h
index 9b196672883..201ff69a05e 100644
--- a/dep/Console/ntcon.h
+++ b/dep/Console/ntcon.h
@@ -1,5 +1,6 @@
 //
 //    Copyright (C) Microsoft.  All rights reserved.
+//    Licensed under the MIT license.
 //
 #ifndef _NTCON_
 #define _NTCON_
diff --git a/dep/Console/winconp.h b/dep/Console/winconp.h
index eb05f329307..23fba76c144 100644
--- a/dep/Console/winconp.h
+++ b/dep/Console/winconp.h
@@ -1,3 +1,7 @@
+/*++
+Copyright (c) Microsoft Corporation.
+Licensed under the MIT license.
+--*/
 
 #ifndef _WINCONP_
 #define _WINCONP_
diff --git a/dep/NT/ntioapi_x.h b/dep/NT/ntioapi_x.h
index d89e0fc888a..abbf5ce6d30 100644
--- a/dep/NT/ntioapi_x.h
+++ b/dep/NT/ntioapi_x.h
@@ -1,3 +1,8 @@
+/*++
+Copyright (c) Microsoft Corporation.
+Licensed under the MIT license.
+--*/
+
 #pragma once
 
 #define FILE_SYNCHRONOUS_IO_NONALERT            0x00000020
diff --git a/dep/Win32K/winuserp.h b/dep/Win32K/winuserp.h
index faea9854f33..4174fce5399 100644
--- a/dep/Win32K/winuserp.h
+++ b/dep/Win32K/winuserp.h
@@ -1,4 +1,7 @@
 /*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT license.
+ *
  * Reserved console space.
  *
  * This was moved from the console code so that we can localize it


Test patch: