From 2d15dd54c624f41a32e96697f8008f5f6c2962da Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 15 Jan 2009 09:59:29 +0100 Subject: [PATCH] shell32: Implement GUIDFromStringW. --- dlls/shell32/shell32.spec | 2 ++ dlls/shell32/shellord.c | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec index f852e7c71d5..396227ccb45 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 5622484fef9..51d6fc9d227 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" @@ -1527,6 +1528,17 @@ BOOL WINAPI shell32_243(DWORD a, DWORD b) return FALSE; } +/************************************************************************* + * GUIDFromStringW [SHELL32.704] + */ +BOOL WINAPI GUIDFromStringW(LPCWSTR str, LPGUID guid) +{ + UNICODE_STRING guid_str; + + RtlInitUnicodeString(&guid_str, str); + return !RtlGUIDFromString(&guid_str, guid); +} + /************************************************************************* * @ [SHELL32.714] */