1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Add autogenerated HRESULT error codes and descriptions from MS_ERREF

error codes & string descriptions are generated from
http://msdn.microsoft.com/en-us/library/cc704587.aspx, additionally there
is a function to return the error description from the error code,
this function will also try to determine the error description
associated with a W_ERROR code translated as a HRESULT.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Noel Power 2014-03-10 11:00:38 +00:00 committed by Stefan Metzmacher
parent 85f57ebda3
commit 027afd11ca
3 changed files with 14741 additions and 2 deletions

11759
libcli/util/hresult.c Normal file

File diff suppressed because it is too large Load Diff

2980
libcli/util/hresult.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,9 +2,9 @@
bld.SAMBA_LIBRARY('errors',
public_headers='error.h ntstatus.h doserr.h werror.h',
public_headers='error.h ntstatus.h doserr.h werror.h hresult.h',
header_path='core',
source='doserr.c errormap.c nterr.c errmap_unix.c',
source='doserr.c errormap.c nterr.c errmap_unix.c hresult.c',
public_deps='talloc samba-util',
private_library=True
)