[USERENV]

Fix coding style and indentation. No code changes!

svn path=/trunk/; revision=60744
This commit is contained in:
Eric Kohl 2013-10-24 20:16:20 +00:00
parent 5bb77216c8
commit 480ce3de05
11 changed files with 1254 additions and 1213 deletions

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/desktop.c * FILE: dll/win32/userenv/desktop.c
* PURPOSE: Desktop and start menu support functions. * PURPOSE: Desktop and start menu support functions.
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -32,7 +32,8 @@
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/
static BOOL static
BOOL
GetDesktopPath(BOOL bCommonPath, GetDesktopPath(BOOL bCommonPath,
LPWSTR lpDesktopPath) LPWSTR lpDesktopPath)
{ {
@ -90,7 +91,8 @@ GetDesktopPath (BOOL bCommonPath,
} }
static BOOL static
BOOL
GetProgramsPath(BOOL bCommonPath, GetProgramsPath(BOOL bCommonPath,
LPWSTR lpProgramsPath) LPWSTR lpProgramsPath)
{ {
@ -149,7 +151,8 @@ GetProgramsPath (BOOL bCommonPath,
} }
BOOL WINAPI BOOL
WINAPI
AddDesktopItemA(BOOL bCommonItem, AddDesktopItemA(BOOL bCommonItem,
LPCSTR lpItemName, LPCSTR lpItemName,
LPCSTR lpArguments, LPCSTR lpArguments,
@ -224,7 +227,8 @@ AddDesktopItemA (BOOL bCommonItem,
} }
BOOL WINAPI BOOL
WINAPI
AddDesktopItemW(BOOL bCommonDesktop, AddDesktopItemW(BOOL bCommonDesktop,
LPCWSTR lpItemName, LPCWSTR lpItemName,
LPCWSTR lpArguments, LPCWSTR lpArguments,
@ -378,7 +382,8 @@ AddDesktopItemW (BOOL bCommonDesktop,
} }
BOOL WINAPI BOOL
WINAPI
DeleteDesktopItemA(BOOL bCommonItem, DeleteDesktopItemA(BOOL bCommonItem,
LPCSTR lpItemName) LPCSTR lpItemName)
{ {
@ -401,7 +406,8 @@ DeleteDesktopItemA (BOOL bCommonItem,
} }
BOOL WINAPI BOOL
WINAPI
DeleteDesktopItemW(BOOL bCommonItem, DeleteDesktopItemW(BOOL bCommonItem,
LPCWSTR lpItemName) LPCWSTR lpItemName)
{ {
@ -424,7 +430,8 @@ DeleteDesktopItemW (BOOL bCommonItem,
} }
BOOL WINAPI BOOL
WINAPI
CreateGroupA(LPCSTR lpGroupName, CreateGroupA(LPCSTR lpGroupName,
BOOL bCommonGroup) BOOL bCommonGroup)
{ {
@ -446,7 +453,8 @@ CreateGroupA (LPCSTR lpGroupName,
} }
BOOL WINAPI BOOL
WINAPI
CreateGroupW(LPCWSTR lpGroupName, CreateGroupW(LPCWSTR lpGroupName,
BOOL bCommonGroup) BOOL bCommonGroup)
{ {
@ -480,7 +488,8 @@ CreateGroupW (LPCWSTR lpGroupName,
} }
BOOL WINAPI BOOL
WINAPI
DeleteGroupA(LPCSTR lpGroupName, DeleteGroupA(LPCSTR lpGroupName,
BOOL bCommonGroup) BOOL bCommonGroup)
{ {
@ -502,7 +511,8 @@ DeleteGroupA (LPCSTR lpGroupName,
} }
BOOL WINAPI BOOL
WINAPI
DeleteGroupW(LPCWSTR lpGroupName, DeleteGroupW(LPCWSTR lpGroupName,
BOOL bCommonGroup) BOOL bCommonGroup)
{ {
@ -536,7 +546,8 @@ DeleteGroupW (LPCWSTR lpGroupName,
} }
BOOL WINAPI BOOL
WINAPI
AddItemA(LPCSTR lpGroupName, /* Optional */ AddItemA(LPCSTR lpGroupName, /* Optional */
BOOL bCommonGroup, BOOL bCommonGroup,
LPCSTR lpItemName, LPCSTR lpItemName,
@ -636,7 +647,8 @@ AddItemA (LPCSTR lpGroupName, /* Optional */
} }
BOOL WINAPI BOOL
WINAPI
AddItemW(LPCWSTR lpGroupName, /* Optional */ AddItemW(LPCWSTR lpGroupName, /* Optional */
BOOL bCommonGroup, BOOL bCommonGroup,
LPCWSTR lpItemName, LPCWSTR lpItemName,
@ -795,7 +807,8 @@ AddItemW (LPCWSTR lpGroupName, /* Optional */
} }
BOOL WINAPI BOOL
WINAPI
DeleteItemA(LPCSTR lpGroupName, /* Optional */ DeleteItemA(LPCSTR lpGroupName, /* Optional */
BOOL bCommonGroup, BOOL bCommonGroup,
LPCSTR lpItemName, LPCSTR lpItemName,
@ -842,7 +855,8 @@ DeleteItemA (LPCSTR lpGroupName, /* Optional */
} }
BOOL WINAPI BOOL
WINAPI
DeleteItemW(LPCWSTR lpGroupName, /* Optional */ DeleteItemW(LPCWSTR lpGroupName, /* Optional */
BOOL bCommonGroup, BOOL bCommonGroup,
LPCWSTR lpItemName, LPCWSTR lpItemName,

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/directory.c * FILE: dll/win32/userenv/directory.c
* PURPOSE: User profile code * PURPOSE: User profile code
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -32,7 +32,8 @@
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/
BOOL WINAPI BOOL
WINAPI
CopyProfileDirectoryA(LPCSTR lpSourcePath, CopyProfileDirectoryA(LPCSTR lpSourcePath,
LPCSTR lpDestinationPath, LPCSTR lpDestinationPath,
DWORD dwFlags) DWORD dwFlags)
@ -67,7 +68,8 @@ CopyProfileDirectoryA(LPCSTR lpSourcePath,
} }
BOOL WINAPI BOOL
WINAPI
CopyProfileDirectoryW(LPCWSTR lpSourcePath, CopyProfileDirectoryW(LPCWSTR lpSourcePath,
LPCWSTR lpDestinationPath, LPCWSTR lpDestinationPath,
DWORD dwFlags) DWORD dwFlags)
@ -231,7 +233,8 @@ CreateDirectoryPath (LPCWSTR lpPathName,
} }
static BOOL static
BOOL
RecursiveRemoveDir(LPCWSTR lpPath) RecursiveRemoveDir(LPCWSTR lpPath)
{ {
WCHAR szPath[MAX_PATH]; WCHAR szPath[MAX_PATH];

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/environment.c * FILE: dll/win32/userenv/environment.c
* PURPOSE: User environment functions * PURPOSE: User environment functions
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -30,7 +30,8 @@
#include <debug.h> #include <debug.h>
static BOOL static
BOOL
SetUserEnvironmentVariable(LPVOID *Environment, SetUserEnvironmentVariable(LPVOID *Environment,
LPWSTR lpName, LPWSTR lpName,
LPWSTR lpValue, LPWSTR lpValue,
@ -117,7 +118,8 @@ SetUserEnvironmentVariable(LPVOID *Environment,
} }
static BOOL static
BOOL
AppendUserEnvironmentVariable(LPVOID *Environment, AppendUserEnvironmentVariable(LPVOID *Environment,
LPWSTR lpName, LPWSTR lpName,
LPWSTR lpValue) LPWSTR lpValue)
@ -165,7 +167,8 @@ AppendUserEnvironmentVariable(LPVOID *Environment,
} }
static HKEY static
HKEY
GetCurrentUserKey(HANDLE hToken) GetCurrentUserKey(HANDLE hToken)
{ {
UNICODE_STRING SidString; UNICODE_STRING SidString;
@ -198,7 +201,8 @@ GetCurrentUserKey(HANDLE hToken)
} }
static BOOL static
BOOL
SetUserEnvironment(LPVOID *lpEnvironment, SetUserEnvironment(LPVOID *lpEnvironment,
HKEY hKey, HKEY hKey,
LPWSTR lpSubKeyName) LPWSTR lpSubKeyName)
@ -310,7 +314,8 @@ SetUserEnvironment(LPVOID *lpEnvironment,
} }
BOOL WINAPI BOOL
WINAPI
CreateEnvironmentBlock(LPVOID *lpEnvironment, CreateEnvironmentBlock(LPVOID *lpEnvironment,
HANDLE hToken, HANDLE hToken,
BOOL bInherit) BOOL bInherit)
@ -454,7 +459,8 @@ CreateEnvironmentBlock(LPVOID *lpEnvironment,
} }
BOOL WINAPI BOOL
WINAPI
DestroyEnvironmentBlock(LPVOID lpEnvironment) DestroyEnvironmentBlock(LPVOID lpEnvironment)
{ {
DPRINT("DestroyEnvironmentBlock() called\n"); DPRINT("DestroyEnvironmentBlock() called\n");
@ -471,7 +477,8 @@ DestroyEnvironmentBlock(LPVOID lpEnvironment)
} }
BOOL WINAPI BOOL
WINAPI
ExpandEnvironmentStringsForUserW(IN HANDLE hToken, ExpandEnvironmentStringsForUserW(IN HANDLE hToken,
IN LPCWSTR lpSrc, IN LPCWSTR lpSrc,
OUT LPWSTR lpDest, OUT LPWSTR lpDest,
@ -522,7 +529,8 @@ ExpandEnvironmentStringsForUserW(IN HANDLE hToken,
} }
BOOL WINAPI BOOL
WINAPI
ExpandEnvironmentStringsForUserA(IN HANDLE hToken, ExpandEnvironmentStringsForUserA(IN HANDLE hToken,
IN LPCSTR lpSrc, IN LPCSTR lpSrc,
OUT LPSTR lpDest, OUT LPSTR lpDest,

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/gpolicy.c * FILE: dll/win32/userenv/gpolicy.c
* PURPOSE: Group policy functions * PURPOSE: Group policy functions
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com> * PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
*/ */
@ -110,7 +110,8 @@ UninitializeGPNotifications(VOID)
DeleteCriticalSection(&GPNotifyLock); DeleteCriticalSection(&GPNotifyLock);
} }
static VOID static
VOID
NotifyGPEvents(IN BOOL bMachine) NotifyGPEvents(IN BOOL bMachine)
{ {
PGP_NOTIFY Notify = NotificationList; PGP_NOTIFY Notify = NotificationList;
@ -126,7 +127,9 @@ NotifyGPEvents(IN BOOL bMachine)
} }
} }
static DWORD WINAPI static
DWORD
WINAPI
GPNotificationThreadProc(IN LPVOID lpParameter) GPNotificationThreadProc(IN LPVOID lpParameter)
{ {
HMODULE hModule; HMODULE hModule;
@ -255,7 +258,8 @@ GPNotificationThreadProc(IN LPVOID lpParameter)
return 1; return 1;
} }
static HANDLE static
HANDLE
CreateGPEvent(IN BOOL bMachine, CreateGPEvent(IN BOOL bMachine,
IN PSECURITY_DESCRIPTOR lpSecurityDescriptor) IN PSECURITY_DESCRIPTOR lpSecurityDescriptor)
{ {
@ -274,7 +278,8 @@ CreateGPEvent(IN BOOL bMachine,
return hEvent; return hEvent;
} }
BOOL WINAPI BOOL
WINAPI
RegisterGPNotification(IN HANDLE hEvent, RegisterGPNotification(IN HANDLE hEvent,
IN BOOL bMachine) IN BOOL bMachine)
{ {
@ -378,7 +383,8 @@ Cleanup:
return Ret; return Ret;
} }
BOOL WINAPI BOOL
WINAPI
UnregisterGPNotification(IN HANDLE hEvent) UnregisterGPNotification(IN HANDLE hEvent)
{ {
PGP_NOTIFY Notify = NULL, *NotifyLink; PGP_NOTIFY Notify = NULL, *NotifyLink;
@ -418,7 +424,8 @@ UnregisterGPNotification(IN HANDLE hEvent)
return Ret; return Ret;
} }
BOOL WINAPI BOOL
WINAPI
RefreshPolicy(IN BOOL bMachine) RefreshPolicy(IN BOOL bMachine)
{ {
HANDLE hEvent; HANDLE hEvent;
@ -437,7 +444,8 @@ RefreshPolicy(IN BOOL bMachine)
return Ret; return Ret;
} }
BOOL WINAPI BOOL
WINAPI
RefreshPolicyEx(IN BOOL bMachine, RefreshPolicyEx(IN BOOL bMachine,
IN DWORD dwOptions) IN DWORD dwOptions)
{ {
@ -470,7 +478,8 @@ RefreshPolicyEx(IN BOOL bMachine,
} }
} }
HANDLE WINAPI HANDLE
WINAPI
EnterCriticalPolicySection(IN BOOL bMachine) EnterCriticalPolicySection(IN BOOL bMachine)
{ {
SECURITY_ATTRIBUTES SecurityAttributes; SECURITY_ATTRIBUTES SecurityAttributes;
@ -507,7 +516,8 @@ EnterCriticalPolicySection(IN BOOL bMachine)
return NULL; return NULL;
} }
BOOL WINAPI BOOL
WINAPI
LeaveCriticalPolicySection(IN HANDLE hSection) LeaveCriticalPolicySection(IN HANDLE hSection)
{ {
BOOL Ret; BOOL Ret;
@ -524,7 +534,8 @@ LeaveCriticalPolicySection(IN HANDLE hSection)
return Ret; return Ret;
} }
BOOL WINAPI BOOL
WINAPI
WaitForUserPolicyForegroundProcessing(VOID) WaitForUserPolicyForegroundProcessing(VOID)
{ {
HANDLE hEvent; HANDLE hEvent;
@ -543,7 +554,8 @@ WaitForUserPolicyForegroundProcessing(VOID)
return Ret; return Ret;
} }
BOOL WINAPI BOOL
WINAPI
WaitForMachinePolicyForegroundProcessing(VOID) WaitForMachinePolicyForegroundProcessing(VOID)
{ {
HANDLE hEvent; HANDLE hEvent;

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/internal.h * FILE: dll/win32/userenv/internal.h
* PURPOSE: internal stuff * PURPOSE: internal stuff
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -64,7 +64,8 @@ typedef struct _DYN_MODULE
extern DYN_MODULE DynOle32; extern DYN_MODULE DynOle32;
BOOL BOOL
LoadDynamicImports(PDYN_MODULE Module, PDYN_FUNCS DynFuncs); LoadDynamicImports(PDYN_MODULE Module,
PDYN_FUNCS DynFuncs);
VOID VOID
UnloadDynamicImports(PDYN_FUNCS DynFuncs); UnloadDynamicImports(PDYN_FUNCS DynFuncs);

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/misc.c * FILE: dll/win32/userenv/misc.c
* PURPOSE: User profile code * PURPOSE: User profile code
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -284,7 +284,8 @@ DYN_MODULE DynOle32 =
* has been created! * has been created!
*/ */
BOOL BOOL
LoadDynamicImports(PDYN_MODULE Module, PDYN_FUNCS DynFuncs) LoadDynamicImports(PDYN_MODULE Module,
PDYN_FUNCS DynFuncs)
{ {
LPSTR *fname; LPSTR *fname;
PVOID *fn; PVOID *fn;

View file

@ -18,7 +18,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/profile.c * FILE: dll/win32/userenv/profile.c
* PURPOSE: User profile code * PURPOSE: User profile code
* PROGRAMMERS: Eric Kohl * PROGRAMMERS: Eric Kohl
* Hervé Poussineau * Hervé Poussineau

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/registry.c * FILE: dll/win32/userenv/registry.c
* PURPOSE: User profile code * PURPOSE: User profile code
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -32,7 +32,8 @@
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/
static BOOL static
BOOL
CopyKey(HKEY hDstKey, CopyKey(HKEY hDstKey,
HKEY hSrcKey) HKEY hSrcKey)
{ {

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/resource.h * FILE: dll/win32/userenv/resource.h
* PURPOSE: Resource IDs * PURPOSE: Resource IDs
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/setup.c * FILE: dll/win32/userenv/setup.c
* PURPOSE: Profile setup functions * PURPOSE: Profile setup functions
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */

View file

@ -19,7 +19,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/userenv/userenv.c * FILE: dll/win32/userenv/userenv.c
* PURPOSE: DLL initialization code * PURPOSE: DLL initialization code
* PROGRAMMER: Eric Kohl * PROGRAMMER: Eric Kohl
*/ */
@ -31,7 +31,8 @@
HINSTANCE hInstance = NULL; HINSTANCE hInstance = NULL;
BOOL WINAPI BOOL
WINAPI
DllMain(HINSTANCE hinstDLL, DllMain(HINSTANCE hinstDLL,
DWORD fdwReason, DWORD fdwReason,
LPVOID lpvReserved) LPVOID lpvReserved)