shell32: Implement GUIDFromStringW.

Hans Leidekker hans at codeweavers.com
Thu Jan 15 02:59:29 CST 2009


diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec
index f852e7c..396227c 100644
--- a/dlls/shell32/shell32.spec
+++ b/dlls/shell32/shell32.spec
@@ -253,6 +253,8 @@
  660 stdcall -noname FileIconInit(long)
  680 stdcall -noname IsUserAdmin()
 
+ 704 stdcall -noname GUIDFromStringW(wstr ptr)
+
  714 stdcall @(ptr) SHELL32_714 # PathIsTemporaryW
  730 stdcall -noname RestartDialogEx(long wstr long long)
 
diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c
index d8a6a0f..6a8cf26 100644
--- a/dlls/shell32/shellord.c
+++ b/dlls/shell32/shellord.c
@@ -33,6 +33,7 @@
 #include "winreg.h"
 #include "wine/debug.h"
 #include "winnls.h"
+#include "winternl.h"
 
 #include "shellapi.h"
 #include "objbase.h"
@@ -1528,6 +1529,18 @@ BOOL WINAPI shell32_243(DWORD a, DWORD b)
 }
 
 /*************************************************************************
+ *      GUIDFromStringW   [SHELL32.704]
+ */
+BOOL WINAPI GUIDFromStringW(LPCWSTR str, LPGUID guid)
+{
+    UNICODE_STRING guid_str;
+
+    RtlInitUnicodeString(&guid_str, str);
+    if (!RtlGUIDFromString(&guid_str, guid)) return TRUE;
+    return FALSE;
+}
+
+/*************************************************************************
  *      @	[SHELL32.714]
  */
 DWORD WINAPI SHELL32_714(LPVOID x)



More information about the wine-patches mailing list