[userenv] add userenv.h
Vijay Kiran Kamuju
infyquest at gmail.com
Fri Jul 14 14:17:41 CDT 2006
ChangeLog
----------------
Add userenv.h for userenv.dll
-------------- next part --------------
Subject: [PATCH] [userenv] Add userenv.h
---
include/userenv.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
create mode 100644 include/userenv.h
e99a6bf6796793f8224b25849e67d17182570ad0
diff --git a/include/userenv.h b/include/userenv.h
new file mode 100644
index 0000000..68234bb
--- /dev/null
+++ b/include/userenv.h
@@ -0,0 +1,56 @@
+/*
+ * 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 USERENVAPI
+
+#define PI_NOUI 0x00000001
+#define PI_APPLYPOLICY 0x00000002
+
+USERENVAPI BOOL WINAPI LoadUserProfileA( HANDLE hToken, LPPROFILEINFOA lpProfileInfo);
+USERENVAPI BOOL WINAPI LoadUserProfileW( HANDLE hToken, LPPROFILEINFOW lpProfileInfo);
+USERENVAPI BOOL WINAPI UnloadUserProfile( HANDLE hToken, HANDLE hProfile);
+USERENVAPI BOOL WINAPI GetProfilesDirectoryA( LPSTR lpProfilesDir, LPDWORD lpcchSize);
+USERENVAPI BOOL WINAPI GetProfilesDirectoryW( LPWSTR lpProfilesDir, LPDWORD lpcchSize);
+USERENVAPI BOOL WINAPI GetUserProfileDirectoryA( HANDLE hToken, LPSTR lpProfileDir,
+ LPDWORD lpcchSize);
+USERENVAPI BOOL WINAPI GetUserProfileDirectoryW( HANDLE hToken, LPWSTR lpProfileDir,
+ LPDWORD lpcchSize);
+USERENVAPI BOOL WINAPI CreateEnvironmentBlock( LPVOID *lpEnvironment, HANDLE hToken,
+ BOOL bInherit);
+USERENVAPI BOOL WINAPI DestroyEnvironmentBlock( LPVOID lpEnvironment);
+
+#define PT_TEMPORARY 0x00000001
+#define PT_ROAMING 0x00000002
+#define PT_MANDATORY 0x00000004
+
+USERENVAPI BOOL WINAPI GetProfileType( DWORD *dwFlags);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_USERENV_H */
--
1.1.6
More information about the wine-patches
mailing list