kmode string-to-guid function?

Does anyone have a routine to convert a string to GUID in kernel mode
that they’d like to share? Is there one I’m overlooking in the DDK?

(in user-mode we simply use the RPC UuidFromString() function).

I hate strings.

Thanks in advance -

sm

There is RtlGUIDFromString:

NTSTATUS RtlGUIDFromString(
IN PUNICODE_STRING GuidString,
OUT GUID *Guid );

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: “McDowell, Steve”
To: “Windows System Software Devs Interest List”
Sent: Thursday, October 02, 2003 5:25 PM
Subject: [ntdev] kmode string-to-guid function?

Does anyone have a routine to convert a string to GUID in kernel mode
that they’d like to share? Is there one I’m overlooking in the DDK?

(in user-mode we simply use the RPC UuidFromString() function).

I hate strings.

Thanks in advance -

sm


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

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

This should do the trick

NTSTATUS
RtlGUIDFromString(
PUNICODE_STRING GuidString,
OUT GUID* Guid
);

(this is a passive level only API)

D

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of McDowell, Steve
Sent: Thursday, October 02, 2003 2:25 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] kmode string-to-guid function?

Does anyone have a routine to convert a string to GUID in kernel mode
that they’d like to share? Is there one I’m overlooking in the DDK?

(in user-mode we simply use the RPC UuidFromString() function).

I hate strings.

Thanks in advance -

sm


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