[SYSSETUP][UNATTENDED] Remove dead code for VmwInst. Found by Jared Smudde.
[reactos.git] / reactos / sdk / include / reactos / libs / syssetup / syssetup.h
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
27 typedef struct _TZ_INFO
28 {
29 LONG Bias;
30 LONG StandardBias;
31 LONG DaylightBias;
32 SYSTEMTIME StandardDate;
33 SYSTEMTIME DaylightDate;
34 } TZ_INFO, *PTZ_INFO;
35
36 typedef struct _TIMEZONE_ENTRY
37 {
38 struct _TIMEZONE_ENTRY *Prev;
39 struct _TIMEZONE_ENTRY *Next;
40 WCHAR Description[64]; /* 'Display' */
41 WCHAR StandardName[32]; /* 'Std' */
42 WCHAR DaylightName[32]; /* 'Dlt' */
43 TZ_INFO TimezoneInfo; /* 'TZI' */
44 ULONG Index;
45 } TIMEZONE_ENTRY, *PTIMEZONE_ENTRY;
46
47 typedef struct _SETUPDATA
48 {
49 HFONT hTitleFont;
50 HFONT hBoldFont;
51
52 WCHAR OwnerName[51];
53 WCHAR OwnerOrganization[51];
54 WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 15 characters */
55 WCHAR AdminPassword[128]; /* max. 127 characters */
56 BOOL UnattendSetup;
57 BOOL DisableGeckoInst;
58
59 SYSTEMTIME SystemTime;
60 PTIMEZONE_ENTRY TimeZoneListHead;
61 PTIMEZONE_ENTRY TimeZoneListTail;
62 DWORD TimeZoneIndex;
63 DWORD DisableAutoDaylightTimeSet;
64 LCID LocaleID;
65
66 HINF hUnattendedInf;
67
68 UINT uFirstNetworkWizardPage;
69 UINT uPostNetworkWizardPage;
70 } SETUPDATA, *PSETUPDATA;
71
72
73 /* System setup APIs */
74
75 DWORD
76 WINAPI
77 InstallReactOS(
78 HINSTANCE hInstance);
79
80 NTSTATUS
81 WINAPI
82 SetAccountsDomainSid(
83 PSID DomainSid,
84 LPCWSTR DomainName);
85
86 /* Log File APIs */
87
88 BOOL WINAPI
89 InitializeSetupActionLog(IN BOOL bDeleteOldLogFile);
90
91 VOID WINAPI
92 TerminateSetupActionLog(VOID);
93
94 VOID
95 CDECL
96 pSetupDebugPrint(
97 IN PCWSTR pszFileName,
98 IN INT nLineNumber,
99 IN PCWSTR pszTag,
100 IN PCWSTR pszMessage,
101 ...);
102
103 #define __WFILE__ TOWL1(__FILE__)
104 #define TOWL1(p) TOWL2(p)
105 #define TOWL2(p) L##p
106
107 #if defined(_MSC_VER)
108 #define LogItem(lpTag, lpMessageText, ...) \
109 pSetupDebugPrint(__WFILE__, __LINE__, lpTag, lpMessageText, __VA_ARGS__)
110 #else
111 #define LogItem(lpTag, lpMessageText...) \
112 pSetupDebugPrint(__WFILE__, __LINE__, lpTag, lpMessageText)
113 #endif
114
115 #endif /* __SYSSETUP_H_INCLUDED__ */
116
117 /* EOF */