mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
0f21a8a6e6
See https://www.pcreview.co.uk/threads/purpose-of-the-state-key-located-in-users-profiles.2939114/post-9722112
114 lines
2.7 KiB
C
114 lines
2.7 KiB
C
/*
|
|
* ReactOS kernel
|
|
* Copyright (C) 2004 ReactOS Team
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: dll/win32/userenv/internal.h
|
|
* PURPOSE: internal stuff
|
|
* PROGRAMMER: Eric Kohl
|
|
*/
|
|
|
|
#ifndef _INTERNAL_H
|
|
#define _INTERNAL_H
|
|
|
|
/* directory.c */
|
|
BOOL
|
|
CopyDirectory(LPCWSTR lpDestinationPath,
|
|
LPCWSTR lpSourcePath);
|
|
|
|
BOOL
|
|
CreateDirectoryPath(LPCWSTR lpPathName,
|
|
LPSECURITY_ATTRIBUTES lpSecurityAttributes);
|
|
|
|
BOOL
|
|
RemoveDirectoryPath(LPCWSTR lpPathName);
|
|
|
|
/* misc.c */
|
|
|
|
extern SID_IDENTIFIER_AUTHORITY LocalSystemAuthority;
|
|
extern SID_IDENTIFIER_AUTHORITY WorldAuthority;
|
|
|
|
typedef struct _DYN_FUNCS
|
|
{
|
|
HMODULE hModule;
|
|
union
|
|
{
|
|
PVOID foo;
|
|
struct
|
|
{
|
|
HRESULT (WINAPI *CoInitialize)(LPVOID pvReserved);
|
|
HRESULT (WINAPI *CoCreateInstance)(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID * ppv);
|
|
HRESULT (WINAPI *CoUninitialize)(VOID);
|
|
};
|
|
} fn;
|
|
} DYN_FUNCS, *PDYN_FUNCS;
|
|
|
|
typedef struct _DYN_MODULE
|
|
{
|
|
LPWSTR Library; /* dll file name */
|
|
LPSTR Functions[]; /* function names */
|
|
} DYN_MODULE, *PDYN_MODULE;
|
|
|
|
extern DYN_MODULE DynOle32;
|
|
|
|
BOOL
|
|
LoadDynamicImports(PDYN_MODULE Module,
|
|
PDYN_FUNCS DynFuncs);
|
|
|
|
VOID
|
|
UnloadDynamicImports(PDYN_FUNCS DynFuncs);
|
|
|
|
LPWSTR
|
|
AppendBackslash(LPWSTR String);
|
|
|
|
PSECURITY_DESCRIPTOR
|
|
CreateDefaultSecurityDescriptor(VOID);
|
|
|
|
/* profile.c */
|
|
BOOL
|
|
AppendSystemPostfix(LPWSTR lpName,
|
|
DWORD dwMaxLength);
|
|
|
|
/* registry.c */
|
|
BOOL
|
|
CreateUserHive(LPCWSTR lpKeyName,
|
|
LPCWSTR lpProfilePath);
|
|
|
|
/* setup.c */
|
|
BOOL
|
|
UpdateUsersShellFolderSettings(LPCWSTR lpUserProfilePath,
|
|
HKEY hUserKey);
|
|
|
|
/* sid.c */
|
|
BOOL
|
|
GetUserSidStringFromToken(HANDLE hToken,
|
|
PUNICODE_STRING SidString);
|
|
|
|
/* userenv.c */
|
|
extern HINSTANCE hInstance;
|
|
|
|
/* gpolicy.c */
|
|
|
|
VOID
|
|
InitializeGPNotifications(VOID);
|
|
|
|
VOID
|
|
UninitializeGPNotifications(VOID);
|
|
|
|
#endif /* _INTERNAL_H */
|