GUID binary to string, etc.?

Hi all,

Does anyone know of any API in the DDK/IFSkit that will convert a GUID/UUID
in kernel mode to an actual string from a binary format, and vice versa? Or
do I actually have to write this code…

Thanks,
Matt

RtlStringFromGUID and RtlGUIDFromString these are part of the standard DDK.


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

“Matthew N. White” wrote in message news:xxxxx@ntdev…
> Hi all,
>
> Does anyone know of any API in the DDK/IFSkit that will convert a
> GUID/UUID
> in kernel mode to an actual string from a binary format, and vice versa?
> Or
> do I actually have to write this code…
>
> Thanks,
> Matt
>
>
>

NTSYSAPI
NTSTATUS
NTAPI
RtlStringFromGUID(
IN REFGUID Guid,
OUT PUNICODE_STRING GuidString
);

Shahar

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, April 13, 2005 4:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] GUID binary to string, etc.?

Hi all,

Does anyone know of any API in the DDK/IFSkit that will convert a GUID/UUID
in kernel mode to an actual string from a binary format, and vice versa? Or
do I actually have to write this code…

Thanks,
Matt


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

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

RtlStringFromGUID but I ended up writing my own (its trivial) as I wanted
the result in nonpagedpool.

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, April 13, 2005 10:08 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] GUID binary to string, etc.?

Hi all,

Does anyone know of any API in the DDK/IFSkit that will convert a GUID/UUID
in kernel mode to an actual string from a binary format, and vice versa? Or
do I actually have to write this code…

Thanks,
Matt


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

Nevermind, found it thanks to the achives…

RtlGUIDFromString/RtlStringFromGUID

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, April 13, 2005 10:08 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] GUID binary to string, etc.?

Hi all,

Does anyone know of any API in the DDK/IFSkit that will convert a GUID/UUID
in kernel mode to an actual string from a binary format, and vice versa? Or
do I actually have to write this code…

Thanks,
Matt


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

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

Surely yes.
It is called StringCchPrintf :slight_smile:

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Matthew N. White”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, April 13, 2005 6:07 PM
Subject: [ntdev] GUID binary to string, etc.?

> Hi all,
>
> Does anyone know of any API in the DDK/IFSkit that will convert a GUID/UUID
> in kernel mode to an actual string from a binary format, and vice versa? Or
> do I actually have to write this code…
>
> Thanks,
> Matt
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com