From 4a2d96077e20c9e4c1008004ada4c896fe7be1ee Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 12 Jun 2006 13:34:23 +0900 Subject: [PATCH] userenv: Add profinfo.h. --- dlls/userenv/userenv_main.c | 12 +--------- include/Makefile.in | 1 + include/profinfo.h | 47 +++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 11 deletions(-) create mode 100644 include/profinfo.h diff --git a/dlls/userenv/userenv_main.c b/dlls/userenv/userenv_main.c index e5e1334561c..9c558743e46 100644 --- a/dlls/userenv/userenv_main.c +++ b/dlls/userenv/userenv_main.c @@ -23,6 +23,7 @@ #include "windef.h" #include "winbase.h" #include "winreg.h" +#include "profinfo.h" #include "wine/debug.h" @@ -78,17 +79,6 @@ BOOL WINAPI GetProfilesDirectoryW( LPWSTR lpProfilesDir, LPDWORD lpcchSize ) return FALSE; } -typedef struct _PROFILEINFOA { - DWORD dwSize; - DWORD dwFlags; - LPSTR lpUserName; - LPSTR lpProfilePath; - LPSTR lpDefaultPath; - LPSTR lpServerName; - LPSTR lpPolicyPath; - HANDLE hProfile; -} PROFILEINFOA, *LPPROFILEINFOA; - BOOL WINAPI LoadUserProfileA( HANDLE hToken, LPPROFILEINFOA lpProfileInfo ) { FIXME("%p %p\n", hToken, lpProfileInfo ); diff --git a/include/Makefile.in b/include/Makefile.in index 49e4a0ef24f..75d928dc25e 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -219,6 +219,7 @@ WINDOWS_INCLUDES = \ pktdef.h \ poppack.h \ powrprof.h \ + profinfo.h \ prsht.h \ psapi.h \ pshpack1.h \ diff --git a/include/profinfo.h b/include/profinfo.h new file mode 100644 index 00000000000..e8f4d559294 --- /dev/null +++ b/include/profinfo.h @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2006 Mike McCormack + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __WINE_PROFINFO_H +#define __WINE_PROFINFO_H + +typedef struct _PROFILEINFOA { + DWORD dwSize; + DWORD dwFlags; + LPSTR lpUserName; + LPSTR lpProfilePath; + LPSTR lpDefaultPath; + LPSTR lpServerName; + LPSTR lpPolicyPath; + HANDLE hProfile; +} PROFILEINFOA, *LPPROFILEINFOA; + +typedef struct _PROFILEINFOW { + DWORD dwSize; + DWORD dwFlags; + LPWSTR lpUserName; + LPWSTR lpProfilePath; + LPWSTR lpDefaultPath; + LPWSTR lpServerName; + LPWSTR lpPolicyPath; + HANDLE hProfile; +} PROFILEINFOW, *LPPROFILEINFOW; + +DECL_WINELIB_TYPE_AW(PROFILEINFO) +DECL_WINELIB_TYPE_AW(LPPROFILEINFO) + +#endif /* __WINE_PROFINFO_H */