Added additional NTStatus codes

This commit is contained in:
Tal Aloni 2017-02-25 14:29:08 +02:00
parent f9b923772c
commit 0bcb921f84

View file

@ -4,8 +4,11 @@ namespace SMBLibrary
public enum NTStatus : uint public enum NTStatus : uint
{ {
STATUS_SUCCESS = 0x00000000, STATUS_SUCCESS = 0x00000000,
STATUS_PENDING = 0x00000103,
STATUS_NOTIFY_ENUM_DIR = 0x0000010C,
SEC_I_CONTINUE_NEEDED = 0x00090312, SEC_I_CONTINUE_NEEDED = 0x00090312,
STATUS_OBJECT_NAME_EXISTS = 0x40000000, STATUS_OBJECT_NAME_EXISTS = 0x40000000,
STATUS_BUFFER_OVERFLOW = 0x80000005,
STATUS_NO_MORE_FILES = 0x80000006, STATUS_NO_MORE_FILES = 0x80000006,
SEC_E_SECPKG_NOT_FOUND = 0x80090305, SEC_E_SECPKG_NOT_FOUND = 0x80090305,
SEC_E_INVALID_TOKEN = 0x80090308, SEC_E_INVALID_TOKEN = 0x80090308,
@ -17,6 +20,7 @@ namespace SMBLibrary
STATUS_NO_SUCH_FILE = 0xC000000F, STATUS_NO_SUCH_FILE = 0xC000000F,
STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016, STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016,
STATUS_ACCESS_DENIED = 0xC0000022, // The user is not authorized to access the resource. STATUS_ACCESS_DENIED = 0xC0000022, // The user is not authorized to access the resource.
STATUS_BUFFER_TOO_SMALL = 0xC0000023,
STATUS_OBJECT_NAME_INVALID = 0xC0000033, STATUS_OBJECT_NAME_INVALID = 0xC0000033,
STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034, STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034,
STATUS_OBJECT_NAME_COLLISION = 0xC0000035, // The file already exists STATUS_OBJECT_NAME_COLLISION = 0xC0000035, // The file already exists
@ -41,6 +45,7 @@ namespace SMBLibrary
STATUS_TOO_MANY_SESSIONS = 0xC00000CE, STATUS_TOO_MANY_SESSIONS = 0xC00000CE,
STATUS_DIRECTORY_NOT_EMPTY = 0xC0000101, STATUS_DIRECTORY_NOT_EMPTY = 0xC0000101,
STATUS_TOO_MANY_OPENED_FILES = 0xC000011F, STATUS_TOO_MANY_OPENED_FILES = 0xC000011F,
STATUS_CANCELLED = 0xC0000120,
STATUS_CANNOT_DELETE = 0xC0000121, STATUS_CANNOT_DELETE = 0xC0000121,
STATUS_FILE_CLOSED = 0xC0000128, STATUS_FILE_CLOSED = 0xC0000128,
STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015B, STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015B,