2 * Copyright (C) 2004 Eric Kohl
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 typedef struct _TZ_INFO
26 SYSTEMTIME StandardDate
;
27 SYSTEMTIME DaylightDate
;
30 typedef struct _TIMEZONE_ENTRY
32 struct _TIMEZONE_ENTRY
*Prev
;
33 struct _TIMEZONE_ENTRY
*Next
;
34 WCHAR Description
[64]; /* 'Display' */
35 WCHAR StandardName
[32]; /* 'Std' */
36 WCHAR DaylightName
[32]; /* 'Dlt' */
37 TZ_INFO TimezoneInfo
; /* 'TZI' */
39 } TIMEZONE_ENTRY
, *PTIMEZONE_ENTRY
;
41 typedef struct _SETUPDATA
46 WCHAR OwnerOrganization
[51];
47 WCHAR ComputerName
[MAX_COMPUTERNAME_LENGTH
+ 1]; /* max. 15 characters */
48 WCHAR AdminPassword
[128]; /* max. 127 characters */
51 BOOL DisableGeckoInst
;
53 SYSTEMTIME SystemTime
;
54 PTIMEZONE_ENTRY TimeZoneListHead
;
55 PTIMEZONE_ENTRY TimeZoneListTail
;
57 DWORD DisableAutoDaylightTimeSet
;
61 } SETUPDATA
, *PSETUPDATA
;
63 typedef struct _ADMIN_INFO
68 } ADMIN_INFO
, *PADMIN_INFO
;
70 extern HINSTANCE hDllInstance
;
71 extern HINF hSysSetupInf
;
72 extern ADMIN_INFO AdminInfo
;
74 BOOL
RegisterTypeLibraries (HINF hinf
, LPCWSTR szSection
);
77 NTSTATUS
SetAccountDomain(LPCWSTR DomainName
,
79 VOID
InstallSecurity(VOID
);
81 SetAdministratorPassword(LPCWSTR Password
);
84 SetAutoAdminLogon(VOID
);
87 VOID
InstallWizard (VOID
);