From 49467be6d9a426f25133d6d4321e888d5c3a3a55 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Fri, 14 Jun 2002 23:32:46 +0000 Subject: [PATCH] Added GetCurrentHwProfileA. --- dlls/advapi32/advapi.c | 12 ++++++++++++ dlls/advapi32/advapi32.spec | 2 ++ include/winbase.h | 15 +++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/dlls/advapi32/advapi.c b/dlls/advapi32/advapi.c index 01049944e5a..5496205e78e 100644 --- a/dlls/advapi32/advapi.c +++ b/dlls/advapi32/advapi.c @@ -92,6 +92,18 @@ GetUserNameW( LPWSTR lpszName, LPDWORD lpSize ) return res; } +/****************************************************************************** + * GetCurrentHwProfileA [ADVAPI32.@] + */ +BOOL WINAPI GetCurrentHwProfileA(LPHW_PROFILE_INFOA info) +{ + FIXME("Mostly Stub\n"); + info->dwDockInfo = DOCKINFO_DOCKED; + strcpy(info->szHwProfileGuid,"{12340001-1234-1234-1234-1233456789012}"); + strcpy(info->szHwProfileName,"Wine Profile"); + return 1; +} + /****************************************************************************** * AbortSystemShutdownA [ADVAPI32.@] * diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 1c2c8fc4187..30efe2d7c4d 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -85,6 +85,8 @@ name advapi32 @ stdcall FreeSid(ptr) FreeSid @ stdcall GetAce(ptr long ptr) GetAce @ stub GetAclInformation +@ stdcall GetCurrentHwProfileA(ptr) GetCurrentHwProfileA +@ stub GetEffectiveRightsFromAclA @ stdcall GetFileSecurityA(str long ptr long ptr) GetFileSecurityA @ stdcall GetFileSecurityW(wstr long ptr long ptr) GetFileSecurityW @ stub GetKernelObjectSecurity diff --git a/include/winbase.h b/include/winbase.h index 67cc2cfc7ca..3584c31675c 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1919,6 +1919,21 @@ static inline PVOID WINAPI InterlockedExchangePointer( PVOID *dest, PVOID val ) /* If this is not declared, we cannot compile many sources written with C++. */ int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int); +#define HW_PROFILE_GUIDLEN 39 +#define MAX_PROFILE_LEN 80 + +#define DOCKINFO_UNDOCKED 0x1 +#define DOCKINFO_DOCKED 0x2 +#define DOCKINFO_USER_SUPPLIED 0x4 +#define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED) +#define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED) + +typedef struct HW_PROFILE_INFOAtag { + DWORD dwDockInfo; + CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN]; + CHAR szHwProfileName[MAX_PROFILE_LEN]; +} HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA; + /* Stream data structures and defines */ /*the types of backup data -- WIN32_STREAM_ID.dwStreamID below*/ #define BACKUP_INVALID 0