mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
Forgot to commit this file last time.
svn path=/trunk/; revision=7846
This commit is contained in:
parent
444c59cb3f
commit
c6651faa5f
|
@ -1,4 +1,4 @@
|
|||
/* $Id: unicode.c,v 1.31 2004/01/07 10:11:03 hbirr Exp $
|
||||
/* $Id: unicode.c,v 1.32 2004/01/23 19:49:07 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1838,4 +1838,38 @@ RtlxUnicodeStringToOemSize (IN PUNICODE_STRING UnicodeString)
|
|||
return RtlUnicodeStringToAnsiSize (UnicodeString);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlStringFromGUID(
|
||||
IN REFGUID Guid,
|
||||
OUT PUNICODE_STRING GuidString
|
||||
)
|
||||
{
|
||||
if( Guid == NULL )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
PWCHAR Buffer;
|
||||
PWCHAR String4;
|
||||
PWCHAR String4a;
|
||||
PWCHAR String4b;
|
||||
|
||||
wcsncpy( String4a, String4, 4 );
|
||||
wcsncpy( String4b, String4+4, wcslen(String4) );
|
||||
|
||||
swprintf( Buffer, L"{%X-%X-%X-%X-%X}",
|
||||
Guid->Data1,
|
||||
Guid->Data2,
|
||||
Guid->Data3,
|
||||
String4a,
|
||||
String4b );
|
||||
|
||||
RtlInitUnicodeString( GuidString, Buffer );
|
||||
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue