ReactOS  0.4.12-dev-685-gf36cbf7
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 
27 typedef struct _TZ_INFO
28 {
29  LONG Bias;
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' */
46 
47 /* Private Setup data shared between syssetup.dll and netshell.dll */
48 typedef struct _SETUPDATA
49 {
52 
55 
58  WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 15 characters */
59  WCHAR AdminPassword[128]; /* max. 127 characters */
62 
69 
71 
75 
76 
77 /* System setup APIs */
78 
80 WINAPI
82  PSID DomainSid,
83  LPCWSTR DomainName);
84 
85 /* Log File APIs */
86 
88 InitializeSetupActionLog(IN BOOL bDeleteOldLogFile);
89 
92 
93 VOID
94 CDECL
97  IN INT nLineNumber,
98  IN PCWSTR pszTag,
99  IN PCWSTR pszMessage,
100  ...);
101 
102 #define __WFILE__ TOWL1(__FILE__)
103 #define TOWL1(p) TOWL2(p)
104 #define TOWL2(p) L##p
105 
106 #if defined(_MSC_VER)
107 #define LogItem(lpTag, lpMessageText, ...) \
108  pSetupDebugPrint(__WFILE__, __LINE__, lpTag, lpMessageText, __VA_ARGS__)
109 #else
110 #define LogItem(lpTag, lpMessageText...) \
111  pSetupDebugPrint(__WFILE__, __LINE__, lpTag, lpMessageText)
112 #endif
113 
114 #endif /* __SYSSETUP_H_INCLUDED__ */
115 
116 /* EOF */
const uint16_t * PCWSTR
Definition: typedefs.h:55
#define IN
Definition: typedefs.h:38
__wchar_t WCHAR
Definition: xmlstorage.h:180
VOID WINAPI TerminateSetupActionLog(VOID)
Definition: logfile.c:82
LONG NTSTATUS
Definition: precomp.h:26
Definition: timezone.c:23
SYSTEMTIME DaylightDate
Definition: timezone.c:20
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
DWORD LCID
Definition: nls.h:13
DWORD DisableAutoDaylightTimeSet
Definition: syssetup.h:67
HINF hSetupInf
Definition: syssetup.h:70
int32_t INT
Definition: typedefs.h:56
struct _TZ_INFO TZ_INFO
WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH+1]
Definition: syssetup.h:58
TZ_INFO TimezoneInfo
Definition: timezone.c:30
SYSTEMTIME StandardDate
Definition: timezone.c:19
WCHAR OwnerOrganization[51]
Definition: syssetup.h:57
struct _TIMEZONE_ENTRY TIMEZONE_ENTRY
long LONG
Definition: pedump.c:60
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:41
struct _SETUPDATA SETUPDATA
WCHAR DaylightName[33]
Definition: timezone.c:29
BOOL DisableGeckoInst
Definition: syssetup.h:61
UINT uPostNetworkWizardPage
Definition: syssetup.h:73
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _TZ_INFO * PTZ_INFO
LCID LocaleID
Definition: syssetup.h:68
#define MAX_PATH
Definition: compat.h:26
unsigned int UINT
Definition: ndis.h:50
UINT uFirstNetworkWizardPage
Definition: syssetup.h:72
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG StandardBias
Definition: timezone.c:17
ULONG Index
Definition: syssetup.h:44
struct _TIMEZONE_ENTRY * Prev
Definition: timezone.c:25
#define WINAPI
Definition: msvc.h:20
BOOL WINAPI InitializeSetupActionLog(IN BOOL bDeleteOldLogFile)
#define MAX_COMPUTERNAME_LENGTH
Definition: winbase.h:240
DWORD TimeZoneIndex
Definition: syssetup.h:66
HFONT hBoldFont
Definition: syssetup.h:51
struct _TIMEZONE_ENTRY * Next
Definition: timezone.c:26
PTIMEZONE_ENTRY TimeZoneListHead
Definition: syssetup.h:64
WCHAR StandardName[33]
Definition: timezone.c:28
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 * PTIMEZONE_ENTRY
WCHAR Description[128]
Definition: timezone.c:27
SYSTEMTIME SystemTime
Definition: syssetup.h:63
WCHAR AdminPassword[128]
Definition: syssetup.h:59
WCHAR OwnerName[51]
Definition: syssetup.h:56
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
NTSTATUS WINAPI SetAccountsDomainSid(PSID DomainSid, LPCWSTR DomainName)
Definition: security.c:25
unsigned int ULONG
Definition: retypes.h:1
BOOL UnattendSetup
Definition: syssetup.h:60
LONG Bias
Definition: timezone.c:16
HFONT hTitleFont
Definition: reactos.h:117
WCHAR SourcePath[MAX_PATH]
Definition: syssetup.h:53
struct _SETUPDATA * PSETUPDATA
WCHAR UnattendFile[MAX_PATH]
Definition: syssetup.h:54
PTIMEZONE_ENTRY TimeZoneListTail
Definition: syssetup.h:65
LONG DaylightBias
Definition: timezone.c:18