Is there a kernel api to get string version of NTSTATUS value?

Is there a kernel api to get string version of NTSTATUS value?

Regds,

-Praveen

If you’re printing in a WPP message, use %!STATUS!

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: Wednesday, November 22, 2006 6:53 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is there a kernel api to get string version of NTSTATUS
value?

Is there a kernel api to get string version of NTSTATUS value?

Regds,

-Praveen


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I am printing to windbg using KdPrint/DbgPrint.
Does this work here as well?
“Ken Cross” wrote in message news:xxxxx@ntdev…
If you’re printing in a WPP message, use %!STATUS!

Ken

------------------------------------------------------------------------------
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar Amritaluru
Sent: Wednesday, November 22, 2006 6:53 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is there a kernel api to get string version of NTSTATUS value?

Is there a kernel api to get string version of NTSTATUS value?

Regds,

-Praveen


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

No, they do not. Print it as a number then use !error to display it when
you need the string.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Praveen Kumar Amritaluru” wrote in message
news:xxxxx@ntdev…
I am printing to windbg using KdPrint/DbgPrint.
Does this work here as well?
“Ken Cross” wrote in message news:xxxxx@ntdev…
If you’re printing in a WPP message, use %!STATUS!

Ken

------------------------------------------------------------------------------
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
Amritaluru
Sent: Wednesday, November 22, 2006 6:53 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is there a kernel api to get string version of NTSTATUS
value?

Is there a kernel api to get string version of NTSTATUS value?

Regds,

-Praveen


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Is there a way to execute a script of windbg commands from within command
window?

For eg. I would like to execute following commands:

ed kd_DEFAULT_MASK 0xf
!load \wdfkd.dll
!wdftmffile



Is it possible to put all these commands in a file and execute them from
within windbg as a single command.

Regds,

“Don Burn” wrote in message news:xxxxx@ntdev…
> No, they do not. Print it as a number then use !error to display it when
> you need the string.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> http://www.windrvr.com
> Remove StopSpam from the email to reply
>
>
> “Praveen Kumar Amritaluru” wrote in message
> news:xxxxx@ntdev…
> I am printing to windbg using KdPrint/DbgPrint.
> Does this work here as well?
> “Ken Cross” wrote in message news:xxxxx@ntdev…
> If you’re printing in a WPP message, use %!STATUS!
>
> Ken
>
>
>
>
> ------------------------------------------------------------------------------
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
> Amritaluru
> Sent: Wednesday, November 22, 2006 6:53 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Is there a kernel api to get string version of NTSTATUS
> value?
>
>
> Is there a kernel api to get string version of NTSTATUS value?
>
> Regds,
>
> -Praveen
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>

Look at the $\<', $><‘, $$\<', and $$><’ commands. These allow you to
execute commands stored in a file. (Yes, they really are so ridiculously
named…)

Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
“Praveen Kumar Amritaluru” wrote in message
news:xxxxx@ntdev…
> Is there a way to execute a script of windbg commands from within command
> window?
>
> For eg. I would like to execute following commands:
>
> ed kd_DEFAULT_MASK 0xf
> !load \wdfkd.dll
> !wdftmffile
> …
> …
>
> Is it possible to put all these commands in a file and execute them from
> within windbg as a single command.
>
> Regds,
>
>
> “Don Burn” wrote in message news:xxxxx@ntdev…
>> No, they do not. Print it as a number then use !error to display it when
>> you need the string.
>>
>>
>> –
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> http://www.windrvr.com
>> Remove StopSpam from the email to reply
>>
>>
>> “Praveen Kumar Amritaluru” wrote in message
>> news:xxxxx@ntdev…
>> I am printing to windbg using KdPrint/DbgPrint.
>> Does this work here as well?
>> “Ken Cross” wrote in message news:xxxxx@ntdev…
>> If you’re printing in a WPP message, use %!STATUS!
>>
>> Ken
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Praveen Kumar
>> Amritaluru
>> Sent: Wednesday, November 22, 2006 6:53 AM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] Is there a kernel api to get string version of NTSTATUS
>> value?
>>
>>
>> Is there a kernel api to get string version of NTSTATUS value?
>>
>> Regds,
>>
>> -Praveen
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>
>
>

Don Burn wrote:

No, they do not. Print it as a number then use !error to display it when
you need the string.

Or, if you are a command-line dinosaur like me,
findstr /i c0000034 \ddk\6000\inc\api\ntstatus.h


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

If you aren’t going to use the debugger, use Err.exe <
http://www.microsoft.com/downloads/details.aspx?familyid=be596899-7bb8-4208-b7fc-09e02a13696c&displaylang=en
>.

It knows most all Windows error codes (including Win32 errors, HRESULTs,
NTSTATUSes, and various other encodings) as of Windows Server 2003, and
it’ll even give you the symbolic constants when you give it an error number
value.

Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
“Tim Roberts” wrote in message news:xxxxx@ntdev…
> Don Burn wrote:
>> No, they do not. Print it as a number then use !error to display it when
>> you need the string.
>>
>
> Or, if you are a command-line dinosaur like me,
> findstr /i c0000034 \ddk\6000\inc\api\ntstatus.h
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>