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:
parent
3e3458cc3c
commit
a392b266c0
@ -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
|
||||
|
@ -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
1855
winpr/libwinpr/nt/ntstatus.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user