From 3a40b175c4cb2818987adb07cff6922f3f25a734 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 27 Jun 2006 15:28:45 +0200 Subject: [PATCH] userenv: Add a stub implementation for GetProfileType. --- dlls/userenv/userenv.spec | 1 + dlls/userenv/userenv_main.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/dlls/userenv/userenv.spec b/dlls/userenv/userenv.spec index a2789055bf..6cd6437a78 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 9c558743e4..dc79387abd 100644 --- a/dlls/userenv/userenv_main.c +++ b/dlls/userenv/userenv_main.c @@ -79,6 +79,18 @@ BOOL WINAPI GetProfilesDirectoryW( LPWSTR lpProfilesDir, LPDWORD lpcchSize ) 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 );