Hans Leidekker : userenv: Add a stub implementation for GetProfileType.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 27 15:49:11 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 3a40b175c4cb2818987adb07cff6922f3f25a734
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=3a40b175c4cb2818987adb07cff6922f3f25a734

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Tue Jun 27 15:28:45 2006 +0200

userenv: Add a stub implementation for GetProfileType.

---

 dlls/userenv/userenv.spec   |    1 +
 dlls/userenv/userenv_main.c |   12 ++++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/dlls/userenv/userenv.spec b/dlls/userenv/userenv.spec
index a278905..6cd6437 100644
--- a/dlls/userenv/userenv.spec
+++ b/dlls/userenv/userenv.spec
@@ -2,6 +2,7 @@
 @ stub DestroyEnvironmentBlock
 @ stdcall GetProfilesDirectoryA(ptr ptr)
 @ stdcall GetProfilesDirectoryW(ptr ptr)
+@ stdcall GetProfileType(ptr)
 @ stdcall GetUserProfileDirectoryA(ptr ptr ptr)
 @ stdcall GetUserProfileDirectoryW(ptr ptr ptr)
 @ stdcall LoadUserProfileA(ptr ptr)
diff --git a/dlls/userenv/userenv_main.c b/dlls/userenv/userenv_main.c
index 9c55874..dc79387 100644
--- a/dlls/userenv/userenv_main.c
+++ b/dlls/userenv/userenv_main.c
@@ -79,6 +79,18 @@ BOOL WINAPI GetProfilesDirectoryW( LPWST
     return FALSE;
 }
 
+/* FIXME: these belong in userenv.h */
+#define PT_TEMPORARY    0x00000001
+#define PT_ROAMING      0x00000002
+#define PT_MANDATORY    0x00000004
+
+BOOL WINAPI GetProfileType( LPDWORD pdwFlags )
+{
+    FIXME("%p\n", pdwFlags );
+    *pdwFlags = PT_MANDATORY | PT_ROAMING | PT_TEMPORARY;
+    return TRUE;
+}
+
 BOOL WINAPI LoadUserProfileA( HANDLE hToken, LPPROFILEINFOA lpProfileInfo )
 {
     FIXME("%p %p\n", hToken, lpProfileInfo );




More information about the wine-cvs mailing list