[jcifs] NT Status Code Descriptions?

Michael B Allen mba2000 at ioplex.com
Mon Feb 16 23:23:03 GMT 2004


Christopher R. Hertel said:
> On Mon, Feb 16, 2004 at 01:42:21AM -0500, Michael B Allen wrote:
>> Christopher R. Hertel said:
>> > There should be a Windows system call that will provide the
>> descriptive
>> > text.  Maybe someone else knows it.  If not, it'll be a treasure hunt.
>> > Here's a place to start:
>> >
>> > http://msdn.microsoft.com/library/en-us/debug/base/rtlntstatustodoserror.asp
>>
>> Good advice. It worked:
>>
>> http://jcifs.samba.org/NtStatus.txt
>> http://jcifs.samba.org/src/ntstatus.zip
>
> Eric's link is a good one too.
>
>   http://msdn.microsoft.com/library/en-us/netmgmt/netmgmt/looking_up_text_for_error_code_numbers.asp
>
> Source code and everything.  :)

Well that's just the second part that describes the FormatMessage call.
You still need RtlNtStatusToDosError to get the System error code. So
you'll have to settle for 5 points each :)

Incedentally you will notice that RtlNtStatusToDosError is a function that
is claimed to have been exposed as part of the agreement with the Justice
Dept. regarding their antitrust case with MS:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnapiover/html/api-overview.asp

Mike


More information about the jcifs mailing list