ReactOS 0.4.15-dev-8096-ga0eec98
syssetup.h
Go to the documentation of this file.
1/*
2 * syssetup.h
3 *
4 * System setup API, native interface
5 *
6 * This file is part of the ReactOS Operating System.
7 *
8 * Contributors:
9 * Created by Eric Kohl
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22
23#ifndef __SYSSETUP_H_INCLUDED__
24#define __SYSSETUP_H_INCLUDED__
25
26typedef enum _PRODUCT_OPTION
27{
32
33/* Private Setup data shared between syssetup.dll and netshell.dll */
34typedef struct _SETUPDATA
35{
38
41
44 WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 15 characters */
45 WCHAR AdminPassword[128]; /* max. 127 characters */
48
55
57
60
63
64
65/* System setup APIs */
66
70 PSID DomainSid,
71 LPCWSTR DomainName);
72
73/* Log File APIs */
74
76InitializeSetupActionLog(IN BOOL bDeleteOldLogFile);
77
80
81VOID
85 IN INT nLineNumber,
86 IN PCWSTR pszTag,
87 IN PCWSTR pszMessage,
88 ...);
89
90#define __WFILE__ TOWL1(__FILE__)
91#define TOWL1(p) TOWL2(p)
92#define TOWL2(p) L##p
93
94#if defined(_MSC_VER)
95#define LogItem(lpTag, lpMessageText, ...) \
96 pSetupDebugPrint(__WFILE__, __LINE__, lpTag, lpMessageText, __VA_ARGS__)
97#else
98#define LogItem(lpTag, lpMessageText...) \
99 pSetupDebugPrint(__WFILE__, __LINE__, lpTag, lpMessageText)
100#endif
101
102#endif /* __SYSSETUP_H_INCLUDED__ */
103
104/* EOF */
LONG NTSTATUS
Definition: precomp.h:26
#define CDECL
Definition: compat.h:29
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned int UINT
Definition: ndis.h:50
DWORD LCID
Definition: nls.h:13
BOOL DisableGeckoInst
Definition: syssetup.h:47
WCHAR UnattendFile[MAX_PATH]
Definition: syssetup.h:40
LCID LocaleID
Definition: syssetup.h:54
DWORD TimeZoneIndex
Definition: syssetup.h:52
struct _TIMEZONE_ENTRY * TimeZoneListHead
Definition: syssetup.h:50
HFONT hBoldFont
Definition: syssetup.h:37
PRODUCT_OPTION ProductOption
Definition: syssetup.h:61
UINT uPostNetworkWizardPage
Definition: syssetup.h:59
HFONT hTitleFont
Definition: reactos.h:117
WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH+1]
Definition: syssetup.h:44
WCHAR OwnerName[51]
Definition: syssetup.h:42
struct _TIMEZONE_ENTRY * TimeZoneListTail
Definition: syssetup.h:51
UINT uFirstNetworkWizardPage
Definition: syssetup.h:58
WCHAR SourcePath[MAX_PATH]
Definition: syssetup.h:39
HINF hSetupInf
Definition: syssetup.h:56
BOOL UnattendSetup
Definition: syssetup.h:46
WCHAR AdminPassword[128]
Definition: syssetup.h:45
WCHAR OwnerOrganization[51]
Definition: syssetup.h:43
DWORD DisableAutoDaylightTimeSet
Definition: syssetup.h:53
SYSTEMTIME SystemTime
Definition: syssetup.h:49
Definition: timezone.c:16
BOOL WINAPI InitializeSetupActionLog(IN BOOL bDeleteOldLogFile)
enum _PRODUCT_OPTION * PPRODUCT_OPTION
enum _PRODUCT_OPTION PRODUCT_OPTION
VOID CDECL pSetupDebugPrint(IN PCWSTR pszFileName, IN INT nLineNumber, IN PCWSTR pszTag, IN PCWSTR pszMessage,...)
Definition: logfile.c:94
struct _SETUPDATA SETUPDATA
VOID WINAPI TerminateSetupActionLog(VOID)
Definition: logfile.c:82
struct _SETUPDATA * PSETUPDATA
_PRODUCT_OPTION
Definition: syssetup.h:27
@ PRODUCT_OPTION_WORKSTATION
Definition: syssetup.h:29
@ PRODUCT_OPTION_DEFAULT
Definition: syssetup.h:30
@ PRODUCT_OPTION_SERVER
Definition: syssetup.h:28
NTSTATUS WINAPI SetAccountsDomainSid(PSID DomainSid, LPCWSTR DomainName)
Definition: security.c:28
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:44
#define MAX_COMPUTERNAME_LENGTH
Definition: winbase.h:243
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185