swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to use swprintf() in order to
compose the Event log message string, but it is impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************

Queue a work item to log the event.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Dany Polovets” wrote in message
news:xxxxx@ntdev…
Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to
compose the Event log message string, but it is impossible because of the
Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com


This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.

Demand that microsoft fix the design bug that has the kernel wide-char
mapping tables in paged pool.

=====================
Mark Roddy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Cariddi
Sent: Tuesday, February 15, 2005 8:21 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] swprintf in W2K

Queue a work item to log the event.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Dany Polovets” wrote in message
news:xxxxx@ntdev…
Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

********************************************************************

This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
********************************************************************



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

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

****************************************************************************
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

My understanding, and I could be wrong, is that if the format parameter
processing requires that Rtl whatever perform translation between widechar
and char then the call must be made at < DISPATCH_LEVEL as the translation
tables are in paged-pool.

=====================
Mark Roddy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shahar Talmi
Sent: Tuesday, February 15, 2005 8:49 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

****************************************************************************
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

****************************************************************************
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

******************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or the
sender immediately and do not disclose the contents to any one or make copies.

******************************************************************************************

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************

This mail was sent via storeage.com

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************

If you use the lib version of ntstrsafe (see the top of the header
file), you can use all ntstrsafe functions back to win2k.

If the format specifier string contains strings in it (%s %ws etc), the
IRQL restriction is still present.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 6:11 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any
IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have
to
use swprintf() in order to compose the Event log message string, but it
is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

************************************************************************
****
********
This footnote confirms that this email message has been scanned by
PineApp
Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
************************************************************************
****
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

************************************************************************
******************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system
manager or the
sender immediately and do not disclose the contents to any one or make
copies.

************************************************************************
******************

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************

This mail was sent via storeage.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Code that uses this function compiles and works fine on win2k for me,
but Mark could be right - I’m not sure if char to wide char conversions will
work in IRQL >= DISPATCH_LEVEL.
RtlAnsiStringToUnicodeString() and RtlUnicodeStringToAnsiString() only works
on IRQL = PASSIVE_LEVEL, so Mark is probably right.
Anyway, allocating the wide char mapping tables in paged pool sounds like a
bad decision to me…

Shahar

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 4:11 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

****************************************************************************
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

****************************************************************************
**************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or
the sender immediately and do not disclose the contents to any one or make
copies.

****************************************************************************
**************

****************************************************************************
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
********

This mail was sent via storeage.com

****************************************************************************
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Doron,
Do you mean that the IRQL restriction is present even if no conversion
between char and wide-char is needed (for example if I use
RtlStringCbVPrintfW and %ws)?

Shahar

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, February 15, 2005 6:43 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

If you use the lib version of ntstrsafe (see the top of the header file),
you can use all ntstrsafe functions back to win2k.

If the format specifier string contains strings in it (%s %ws etc), the IRQL
restriction is still present.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 6:11 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

************************************************************************
****
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************
****
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

************************************************************************
******************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or
the sender immediately and do not disclose the contents to any one or make
copies.

************************************************************************
******************

************************************************************************
************
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************
************

This mail was sent via storeage.com

************************************************************************
************
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************
************


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

The safe string operations can easily be ported to 2000 by simply including
the header file ntstrsafe.h.


The personal opinion of
Gary G. Little

“Dany Polovets” wrote in message
news:xxxxx@ntdev…
This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

********************************************************************

This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
********************************************************************



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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

IMPORTANT: Do not open attachments from unrecognized senders

**************************************************************

The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or
the
sender immediately and do not disclose the contents to any one or make
copies.

**************************************************************


********************************************************************

This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
********************************************************************


This mail was sent via storeage.com

********************************************************************

This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
********************************************************************

If there are no string format specifiers in the format, the IRQL should
not matter. For instance “%d” is fine at any irql, “%s” is only good at
passive.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shahar Talmi
Sent: Tuesday, February 15, 2005 8:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Doron,
Do you mean that the IRQL restriction is present even if no conversion
between char and wide-char is needed (for example if I use
RtlStringCbVPrintfW and %ws)?

Shahar

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, February 15, 2005 6:43 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

If you use the lib version of ntstrsafe (see the top of the header
file),
you can use all ntstrsafe functions back to win2k.

If the format specifier string contains strings in it (%s %ws etc), the
IRQL
restriction is still present.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 6:11 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any
IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have
to
use swprintf() in order to compose the Event log message string, but it
is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

************************************************************************
****
********
This footnote confirms that this email message has been scanned by
PineApp
Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
************************************************************************
****
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

************************************************************************
******************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system
manager or
the sender immediately and do not disclose the contents to any one or
make
copies.

************************************************************************
******************

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp
Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
************************************************************************
************

This mail was sent via storeage.com

************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp
Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
************************************************************************
************


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

At least checked build would bugcheck because of built-in ASSERT. For all %wX (%ws, %wZ, %wc…) format specifications, IIRC, maybe for others, too (I never used %s in kernel).

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]


From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Shahar Talmi[SMTP:xxxxx@safend.com]
Reply To: Windows System Software Devs Interest List
Sent: Tuesday, February 15, 2005 5:50 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Doron,
Do you mean that the IRQL restriction is present even if no conversion
between char and wide-char is needed (for example if I use
RtlStringCbVPrintfW and %ws)?

Shahar

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, February 15, 2005 6:43 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

If you use the lib version of ntstrsafe (see the top of the header file),
you can use all ntstrsafe functions back to win2k.

If the format specifier string contains strings in it (%s %ws etc), the IRQL
restriction is still present.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 6:11 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

This function can be used in Win2003 only.
I need the W2K solution.

Regards,
Dany

-----Original Message-----
From: Shahar Talmi [mailto:xxxxx@safend.com]
Sent: Tuesday, February 15, 2005 15:49
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Use RtlStringCbVPrintfW(). The NTSTRSAFE.H functions can be used at any IRQL
(assuming your variables can accessed at this IRQL).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dany Polovets
Sent: Tuesday, February 15, 2005 2:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] swprintf in W2K

Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql.
What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

************************************************************************
****
********
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************
****
********


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@storeage.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

************************************************************************
******************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or
the sender immediately and do not disclose the contents to any one or make
copies.

************************************************************************>
******************

************************************************************************
************
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************
************

This mail was sent via storeage.com

************************************************************************
************
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************
************


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@upek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Do you really want the conversion tables for Chinese in unpaged memory? The
world isn’t just ASCII.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Tuesday, February 15, 2005 8:50 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Demand that microsoft fix the design bug that has the kernel wide-char
mapping tables in paged pool.

=====================
Mark Roddy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Cariddi
Sent: Tuesday, February 15, 2005 8:21 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] swprintf in W2K

Queue a work item to log the event.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Dany Polovets” wrote in message
news:xxxxx@ntdev… Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql. What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

********************************************************************

This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
********************************************************************



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

You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@dchbk.us
To unsubscribe send a blank email to xxxxx@lists.osr.com

No I want the kernel runtime support to be available at DISPATCH_LEVEL. I
don’t think this requires I18N support, it just means that wide chars are
printable without going through pageable code translation tables.

=====================
Mark Roddy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Benson Margulies
Sent: Tuesday, February 15, 2005 5:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Do you really want the conversion tables for Chinese in unpaged memory? The
world isn’t just ASCII.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Tuesday, February 15, 2005 8:50 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] swprintf in W2K

Demand that microsoft fix the design bug that has the kernel wide-char
mapping tables in paged pool.

=====================
Mark Roddy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Cariddi
Sent: Tuesday, February 15, 2005 8:21 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] swprintf in W2K

Queue a work item to log the event.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“Dany Polovets” wrote in message
news:xxxxx@ntdev… Hello,

I am writing the W2K driver and in the disk IO completion routine I have to
use swprintf() in order to compose the Event log message string, but it is
impossible because of the Irql. What can I do in this case.

Regards,
Dany
This mail was sent via storeage.com

********************************************************************

This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
********************************************************************



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

You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: xxxxx@dchbk.us To unsubscribe
send a blank email to xxxxx@lists.osr.com


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

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com