windows-nt/Source/XPSP1/NT/ds/security/protocols/kerberos/inc/exterr.h

31 lines
825 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-----------------------------------------------------------------------
//
// File: exterr.h
//
// Contents: Kerberos extended error structures and macros
//
// History: 23-Feb-2000 Todds Created
//
//
//------------------------------------------------------------------------
#ifndef __EXTERR_H__
#define __EXTERR_H__
//
// This macro is universally used for extended errors
//
#define EXT_ERROR_SUCCESS(s) (NT_SUCCESS(s.status))
//
// defines for flags member of KERB_EXT_ERROR structure
//
#define EXT_ERROR_CLIENT_INFO 0x1 // this is an extended error for use by client
//
// is there a useful NTSTATUS embedded in returned error?
//
#define EXT_CLIENT_INFO_PRESENT(p) ((NULL != p) && (p->flags & EXT_ERROR_CLIENT_INFO) && !NT_SUCCESS(p->status))
#endif // __EXTERR_H__