mirror of https://github.com/lianthony/NT4.0
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.
52 lines
1.1 KiB
52 lines
1.1 KiB
/****************************** Module Header ******************************\
|
|
* Module Name: regini.h
|
|
*
|
|
* Copyright (c) 1991, Microsoft Corporation
|
|
*
|
|
* Define apis user to implement default registry initialization
|
|
*
|
|
* History:
|
|
* 05-01-92 Stevewo Created.
|
|
\***************************************************************************/
|
|
|
|
#if INIT_REGISTRY
|
|
|
|
BOOL
|
|
InitializeDefaultRegistry(
|
|
PGLOBALS pGlobals
|
|
);
|
|
|
|
void
|
|
QuickReboot(
|
|
PGLOBALS pGlobals,
|
|
BOOL RebootToAlternateOS
|
|
);
|
|
|
|
#endif // INIT_REGISTRY
|
|
|
|
//
|
|
// Open Registry key use base API. Same as OpenRegistryKey(),
|
|
// but without error handling (since GUI may not be active).
|
|
//
|
|
HANDLE
|
|
OpenNtRegKey(
|
|
WCHAR *Path
|
|
);
|
|
|
|
BOOL
|
|
WriteRegistry(
|
|
HANDLE KeyHandle,
|
|
char *ValueName,
|
|
DWORD ValueType,
|
|
char *ValueData,
|
|
DWORD ValueLength
|
|
);
|
|
|
|
BOOL
|
|
ReadRegistry(
|
|
HANDLE KeyHandle, // Registry handle
|
|
WCHAR *ValueName, // Value to query
|
|
DWORD ValueType, // Value type expected
|
|
WCHAR *ValueData, // Value data if (multi-)string
|
|
DWORD *ValueLength // Length if string or value if REG_DWORD
|
|
);
|