Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b82428b3
Commit
b82428b3
authored
Nov 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use proper dllimports for userenv functions.
parent
15aca905
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
26 deletions
+33
-26
Makefile.in
dlls/userenv/Makefile.in
+1
-0
userenv.h
include/userenv.h
+32
-26
No files found.
dlls/userenv/Makefile.in
View file @
b82428b3
EXTRADEFS
=
-D_USERENV_
MODULE
=
userenv.dll
IMPORTS
=
advapi32
IMPORTLIB
=
userenv
...
...
include/userenv.h
View file @
b82428b3
...
...
@@ -22,6 +22,12 @@
#include <wbemcli.h>
#include <profinfo.h>
#ifdef _USERENV_
#define USERENVAPI
#else
#define USERENVAPI DECLSPEC_IMPORT
#endif
#define PT_TEMPORARY 0x00000001
#define PT_ROAMING 0x00000002
#define PT_MANDATORY 0x00000004
...
...
@@ -73,32 +79,32 @@ DECL_WINELIB_TYPE_AW(PGROUP_POLICY_OBJECT)
extern
"C"
{
#endif
BOOL
WINAPI
CreateEnvironmentBlock
(
LPVOID
*
,
HANDLE
,
BOOL
);
BOOL
WINAPI
DestroyEnvironmentBlock
(
LPVOID
);
HANDLE
WINAPI
EnterCriticalPolicySection
(
BOOL
);
BOOL
WINAPI
ExpandEnvironmentStringsForUserA
(
HANDLE
,
LPCSTR
,
LPSTR
,
DWORD
);
BOOL
WINAPI
ExpandEnvironmentStringsForUserW
(
HANDLE
,
LPCWSTR
,
LPWSTR
,
DWORD
);
#define ExpandEnvironmentStringsForUser WINELIB_NAME_AW(ExpandEnvironmentStringsForUser)
DWORD
WINAPI
GetAppliedGPOListW
(
DWORD
,
LPCWSTR
,
PSID
,
GUID
*
,
PGROUP_POLICY_OBJECTW
*
);
DWORD
WINAPI
GetAppliedGPOListA
(
DWORD
,
LPCSTR
,
PSID
,
GUID
*
,
PGROUP_POLICY_OBJECTA
*
);
#define GetAppliedGPOList WINELIB_NAME_AW(GetAppliedGPOList)
BOOL
WINAPI
GetUserProfileDirectoryA
(
HANDLE
,
LPSTR
,
LPDWORD
);
BOOL
WINAPI
GetUserProfileDirectoryW
(
HANDLE
,
LPWSTR
,
LPDWORD
);
#define GetUserProfileDirectory WINELIB_NAME_AW(GetUserProfileDirectory)
BOOL
WINAPI
GetProfilesDirectoryA
(
LPSTR
,
LPDWORD
);
BOOL
WINAPI
GetProfilesDirectoryW
(
LPWSTR
,
LPDWORD
);
#define GetProfilesDirectory WINELIB_NAME_AW(GetProfilesDirectory)
BOOL
WINAPI
GetAllUsersProfileDirectoryA
(
LPSTR
,
LPDWORD
);
BOOL
WINAPI
GetAllUsersProfileDirectoryW
(
LPWSTR
,
LPDWORD
);
#define GetAllUsersProfileDirectory WINELIB_NAME_AW(GetAllUsersProfileDirectory)
BOOL
WINAPI
GetProfileType
(
DWORD
*
);
BOOL
WINAPI
LeaveCriticalPolicySection
(
HANDLE
);
BOOL
WINAPI
LoadUserProfileA
(
HANDLE
,
LPPROFILEINFOA
);
BOOL
WINAPI
LoadUserProfileW
(
HANDLE
,
LPPROFILEINFOW
);
#define LoadUserProfile WINELIB_NAME_AW(LoadUserProfile)
BOOL
WINAPI
RegisterGPNotification
(
HANDLE
,
BOOL
);
BOOL
WINAPI
UnloadUserProfile
(
HANDLE
,
HANDLE
);
BOOL
WINAPI
UnregisterGPNotification
(
HANDLE
);
USERENVAPI
BOOL
WINAPI
CreateEnvironmentBlock
(
LPVOID
*
,
HANDLE
,
BOOL
);
USERENVAPI
BOOL
WINAPI
DestroyEnvironmentBlock
(
LPVOID
);
USERENVAPI
HANDLE
WINAPI
EnterCriticalPolicySection
(
BOOL
);
USERENVAPI
BOOL
WINAPI
ExpandEnvironmentStringsForUserA
(
HANDLE
,
LPCSTR
,
LPSTR
,
DWORD
);
USERENVAPI
BOOL
WINAPI
ExpandEnvironmentStringsForUserW
(
HANDLE
,
LPCWSTR
,
LPWSTR
,
DWORD
);
#define
ExpandEnvironmentStringsForUser WINELIB_NAME_AW(ExpandEnvironmentStringsForUser)
USERENVAPI
DWORD
WINAPI
GetAppliedGPOListW
(
DWORD
,
LPCWSTR
,
PSID
,
GUID
*
,
PGROUP_POLICY_OBJECTW
*
);
USERENVAPI
DWORD
WINAPI
GetAppliedGPOListA
(
DWORD
,
LPCSTR
,
PSID
,
GUID
*
,
PGROUP_POLICY_OBJECTA
*
);
#define
GetAppliedGPOList WINELIB_NAME_AW(GetAppliedGPOList)
USERENVAPI
BOOL
WINAPI
GetUserProfileDirectoryA
(
HANDLE
,
LPSTR
,
LPDWORD
);
USERENVAPI
BOOL
WINAPI
GetUserProfileDirectoryW
(
HANDLE
,
LPWSTR
,
LPDWORD
);
#define
GetUserProfileDirectory WINELIB_NAME_AW(GetUserProfileDirectory)
USERENVAPI
BOOL
WINAPI
GetProfilesDirectoryA
(
LPSTR
,
LPDWORD
);
USERENVAPI
BOOL
WINAPI
GetProfilesDirectoryW
(
LPWSTR
,
LPDWORD
);
#define
GetProfilesDirectory WINELIB_NAME_AW(GetProfilesDirectory)
USERENVAPI
BOOL
WINAPI
GetAllUsersProfileDirectoryA
(
LPSTR
,
LPDWORD
);
USERENVAPI
BOOL
WINAPI
GetAllUsersProfileDirectoryW
(
LPWSTR
,
LPDWORD
);
#define
GetAllUsersProfileDirectory WINELIB_NAME_AW(GetAllUsersProfileDirectory)
USERENVAPI
BOOL
WINAPI
GetProfileType
(
DWORD
*
);
USERENVAPI
BOOL
WINAPI
LeaveCriticalPolicySection
(
HANDLE
);
USERENVAPI
BOOL
WINAPI
LoadUserProfileA
(
HANDLE
,
LPPROFILEINFOA
);
USERENVAPI
BOOL
WINAPI
LoadUserProfileW
(
HANDLE
,
LPPROFILEINFOW
);
#define
LoadUserProfile WINELIB_NAME_AW(LoadUserProfile)
USERENVAPI
BOOL
WINAPI
RegisterGPNotification
(
HANDLE
,
BOOL
);
USERENVAPI
BOOL
WINAPI
UnloadUserProfile
(
HANDLE
,
HANDLE
);
USERENVAPI
BOOL
WINAPI
UnregisterGPNotification
(
HANDLE
);
#ifdef __cplusplus
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment