[userenv] Add userenv.h (Resend) 1/2

Vijay Kiran Kamuju infyquest at gmail.com
Tue Jul 18 16:01:19 CDT 2006


ChangeLog
----------------
Add userenv.h

Note:
-------
1) This is a revamped patch from the original, by removing the
offending bits and adding some improvements.
2) This does not include Makefile.in changes
-------------- next part --------------
--- /dev/null	2006-05-02 17:48:25.285177368 +0530
+++ include/userenv.h	2006-07-19 01:30:57.000000000 +0530
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2006 Vijay Kiran Kamuju
+ *
+ * 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_USERENV_H
+#define __WINE_USERENV_H
+
+#include <profinfo.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define PI_NOUI         0x00000001
+#define PI_APPLYPOLICY  0x00000002
+
+BOOL WINAPI LoadUserProfileA( HANDLE , LPPROFILEINFOA );
+BOOL WINAPI LoadUserProfileW( HANDLE , LPPROFILEINFOW );
+#define LoadUserProfile WINELIB_NAME_AW(LoadUserProfile)
+
+BOOL WINAPI UnloadUserProfile( HANDLE , HANDLE );
+
+BOOL WINAPI GetProfilesDirectoryA( LPSTR , LPDWORD );
+BOOL WINAPI GetProfilesDirectoryW( LPWSTR , LPDWORD );
+#define GetProfilesDirectory WINELIB_NAME_AW(GetProfilesDirectory)
+
+BOOL WINAPI GetUserProfileDirectoryA( HANDLE , LPSTR , LPDWORD );
+BOOL WINAPI GetUserProfileDirectoryW( HANDLE  , LPWSTR , LPDWORD );
+#define GetUserProfileDirectory WINELIB_NAME_AW(GetUserProfileDirectory)
+
+BOOL WINAPI CreateEnvironmentBlock( LPVOID *, HANDLE , BOOL );
+BOOL WINAPI DestroyEnvironmentBlock( LPVOID );
+
+#define PT_TEMPORARY         0x00000001
+#define PT_ROAMING           0x00000002
+#define PT_MANDATORY         0x00000004
+
+BOOL WINAPI GetProfileType( DWORD * );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_USERENV_H */


More information about the wine-patches mailing list