Author: dchapyshev Date: Sat Jan 17 09:47:50 2009 New Revision: 38820
URL: http://svn.reactos.org/svn/reactos?rev=38820&view=rev Log: - Implement GUIDFromStringW. Based on http://www.winehq.org/pipermail/wine-cvs/2009-January/051920.html
Modified: trunk/reactos/dll/win32/shell32/shell32.spec trunk/reactos/dll/win32/shell32/shellord.c
Modified: trunk/reactos/dll/win32/shell32/shell32.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shell32.s... ============================================================================== --- trunk/reactos/dll/win32/shell32/shell32.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shell32.spec [iso-8859-1] Sat Jan 17 09:47:50 2009 @@ -255,6 +255,7 @@ 660 stdcall -noname FileIconInit(long) 680 stdcall IsUserAnAdmin() 701 stdcall CDefFolderMenu_Create2(ptr ptr long ptr ptr ptr long ptr ptr) + 704 stdcall -noname GUIDFromStringW(wstr ptr) 714 stdcall @(ptr) SHELL32_714 # PathIsTemporaryW 730 stdcall RestartDialogEx(long wstr long long)
Modified: trunk/reactos/dll/win32/shell32/shellord.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shellord.... ============================================================================== --- trunk/reactos/dll/win32/shell32/shellord.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shellord.c [iso-8859-1] Sat Jan 17 09:47:50 2009 @@ -33,6 +33,7 @@ #include "winreg.h" #include "wine/debug.h" #include "winnls.h" +#include "winternl.h"
#include "shellapi.h" #include "objbase.h" @@ -1573,6 +1574,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); }
/*************************************************************************