You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.5 KiB
90 lines
1.5 KiB
/****************************** Module Header ******************************\
|
|
* Module Name: envvar.h
|
|
*
|
|
* Copyright (c) 1991, Microsoft Corporation
|
|
*
|
|
* Define apis in envvar.c
|
|
*
|
|
* History:
|
|
* 12-09-91 Davidc Created.
|
|
\***************************************************************************/
|
|
|
|
//
|
|
// Prototypes
|
|
//
|
|
|
|
BOOL
|
|
AppendNTPathWithAutoexecPath(
|
|
PVOID *pEnv,
|
|
LPTSTR lpPathVariable,
|
|
LPTSTR lpAutoexecPath
|
|
);
|
|
|
|
BOOL
|
|
SetUserEnvironmentVariable(
|
|
PVOID *pEnv,
|
|
LPTSTR lpVariable,
|
|
LPTSTR lpValue,
|
|
BOOL bOverwrite
|
|
);
|
|
|
|
DWORD
|
|
ExpandUserEnvironmentStrings(
|
|
PVOID pEnv,
|
|
LPTSTR lpSrc,
|
|
LPTSTR lpDst,
|
|
DWORD nSize
|
|
);
|
|
|
|
BOOL
|
|
SetEnvironmentVariables(
|
|
PGLOBALS pGlobals,
|
|
LPTSTR pEnvVarSubkey,
|
|
PVOID *pEnv
|
|
);
|
|
|
|
BOOL
|
|
SetHomeDirectoryEnvVars(
|
|
PVOID *pEnv,
|
|
LPTSTR lpHomeDirectory,
|
|
LPTSTR lpHomeDrive,
|
|
LPTSTR lpHomeShare,
|
|
LPTSTR lpHomePath,
|
|
BOOL * pfDeepShare
|
|
);
|
|
|
|
BOOL
|
|
ProcessAutoexec(
|
|
PVOID *pEnv,
|
|
LPTSTR lpPathVariable
|
|
);
|
|
|
|
VOID
|
|
ChangeToHomeDirectory(
|
|
PGLOBALS pGlobals,
|
|
PVOID *pEnv,
|
|
LPTSTR lpHomeDir,
|
|
LPTSTR lpHomeDrive,
|
|
LPTSTR lpHomeShare,
|
|
LPTSTR lpHomePath,
|
|
LPWSTR pszOldPath,
|
|
BOOL DeepShare
|
|
);
|
|
|
|
BOOL
|
|
OpenHKeyCurrentUser(
|
|
PGLOBALS pGlobals
|
|
);
|
|
|
|
VOID
|
|
CloseHKeyCurrentUser(
|
|
PGLOBALS pGlobals
|
|
);
|
|
|
|
BOOL
|
|
InitHKeyCurrentUserSupport(
|
|
);
|
|
|
|
VOID
|
|
CleanupHKeyCurrentUserSupport(
|
|
);
|