Added NtStatus2Tag function to stringify NTSTATUS

For higher level applications it is easier to translate known
strings instead of error codes. this function allows
to retrieve known string identifiers that can be translated.

Signed-off-by: Armin Novak <armin.novak@thincast.com>
This commit is contained in:
Armin Novak 2020-01-09 16:14:44 +01:00
parent 3e3458cc3c
commit a392b266c0
3 changed files with 1858 additions and 1 deletions

View File

@ -1600,6 +1600,8 @@ extern "C"
WINPR_API NTSTATUS _NtWaitForSingleObject(HANDLE Handle, BOOLEAN Alertable,
PLARGE_INTEGER Timeout);
WINPR_API const char* NtStatus2Tag(DWORD ntstatus);
#ifdef __cplusplus
}
#endif

View File

@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
winpr_module_add(nt.c)
winpr_module_add(nt.c ntstatus.c)
winpr_library_add_private(
${CMAKE_THREAD_LIBS_INIT}

1855
winpr/libwinpr/nt/ntstatus.c Normal file

File diff suppressed because it is too large Load Diff