ReactOS  0.4.15-dev-506-ga3ec01c
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 
26 typedef enum _PRODUCT_OPTION
27 {
32 
33 /* Private Setup data shared between syssetup.dll and netshell.dll */
34 typedef 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 
68 WINAPI
70  PSID DomainSid,
71  LPCWSTR DomainName);
72 
73 /* Log File APIs */
74 
76 InitializeSetupActionLog(IN BOOL bDeleteOldLogFile);
77 
80 
81 VOID
82 CDECL
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 */
const uint16_t * PCWSTR
Definition: typedefs.h:56
#define IN
Definition: typedefs.h:39
enum _PRODUCT_OPTION * PPRODUCT_OPTION
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
VOID WINAPI TerminateSetupActionLog(VOID)
Definition: logfile.c:82
LONG NTSTATUS
Definition: precomp.h:26
Definition: timezone.c:15
DWORD LCID
Definition: nls.h:13
_PRODUCT_OPTION
Definition: syssetup.h:26
DWORD DisableAutoDaylightTimeSet
Definition: syssetup.h:53
HINF hSetupInf
Definition: syssetup.h:56
int32_t INT
Definition: typedefs.h:57
enum _PRODUCT_OPTION PRODUCT_OPTION
WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH+1]
Definition: syssetup.h:44
WCHAR OwnerOrganization[51]
Definition: syssetup.h:43
unsigned int BOOL
Definition: ntddk_ex.h:94
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:41
struct _SETUPDATA SETUPDATA
BOOL DisableGeckoInst
Definition: syssetup.h:47
UINT uPostNetworkWizardPage
Definition: syssetup.h:59
__wchar_t WCHAR
Definition: xmlstorage.h:180
LCID LocaleID
Definition: syssetup.h:54
#define MAX_PATH
Definition: compat.h:26
#define WINAPI
Definition: msvc.h:6
UINT uFirstNetworkWizardPage
Definition: syssetup.h:58
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI InitializeSetupActionLog(IN BOOL bDeleteOldLogFile)
#define MAX_COMPUTERNAME_LENGTH
Definition: winbase.h:240
DWORD TimeZoneIndex
Definition: syssetup.h:52
HFONT hBoldFont
Definition: syssetup.h:37
VOID CDECL pSetupDebugPrint(IN PCWSTR pszFileName, IN INT nLineNumber, IN PCWSTR pszTag, IN PCWSTR pszMessage,...)
Definition: logfile.c:94
#define CDECL
Definition: compat.h:21
struct _TIMEZONE_ENTRY * TimeZoneListTail
Definition: syssetup.h:51
unsigned int UINT
Definition: ndis.h:50
struct _TIMEZONE_ENTRY * TimeZoneListHead
Definition: syssetup.h:50
PRODUCT_OPTION ProductOption
Definition: syssetup.h:61
SYSTEMTIME SystemTime
Definition: syssetup.h:49
WCHAR AdminPassword[128]
Definition: syssetup.h:45
WCHAR OwnerName[51]
Definition: syssetup.h:42
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
NTSTATUS WINAPI SetAccountsDomainSid(PSID DomainSid, LPCWSTR DomainName)
Definition: security.c:25
BOOL UnattendSetup
Definition: syssetup.h:46
HFONT hTitleFont
Definition: reactos.h:117
WCHAR SourcePath[MAX_PATH]
Definition: syssetup.h:39
struct _SETUPDATA * PSETUPDATA
WCHAR UnattendFile[MAX_PATH]
Definition: syssetup.h:40