{ NULL, NT_STATUS(0) }
};
+/* These need sorting..... */
+
static const nt_err_code_struct nt_err_desc[] =
{
{ N_("Success"), NT_STATUS_OK },
};
/*****************************************************************************
- returns an NT error message. not amazingly helpful, but better than a number.
+ Returns an NT error message. not amazingly helpful, but better than a number.
*****************************************************************************/
+
const char *nt_errstr(NTSTATUS nt_code)
{
static char msg[40];
/************************************************************************
Print friendler version fo NT error code
***********************************************************************/
+
const char *get_friendly_nt_error_msg(NTSTATUS nt_code)
{
int idx = 0;
}
/* fall back to NT_STATUS_XXX string */
+
return nt_errstr(nt_code);
}
/*****************************************************************************
- returns an NT_STATUS constant as a string for inclusion in autogen C code
+ Returns an NT_STATUS constant as a string for inclusion in autogen C code.
*****************************************************************************/
+
const char *get_nt_error_c_code(NTSTATUS nt_code)
{
static char out[40];
}
/*****************************************************************************
- returns the NT_STATUS constant matching the string supplied (as an NTSTATUS)
+ Returns the NT_STATUS constant matching the string supplied (as an NTSTATUS)
*****************************************************************************/
+
NTSTATUS nt_status_string_to_code(const char *nt_status_str)
{
int idx = 0;