#include "precomp.h"
#include <setupbat.h>
Go to the source code of this file.
Defines | |
#define | LAST_SWEEP_TIME L"LastSweepTime" |
#define | UPGRADED_TYPE1 L"UpgradedType1" |
#define | DWORDALIGN(X) (((X) + 3) & ~3) |
#define | EXT_TRUETYPE L"(TrueType)" |
#define | EXT_FOT L".FOT" |
Typedefs | |
typedef VOID(* | PFNENTRY )(HKEY hkey, WCHAR *, ULONG, WCHAR *, ULONG) |
Functions | |
BOOL | bCheckIfDualBootingWithWin31 () |
VOID | vNullTermWideString (WCHAR *pwcDest, WCHAR *pwcSrc, ULONG ulLength) |
BOOL | bCheckFontEntry (WCHAR *pwcName, WCHAR *pwcExtension) |
VOID | vProcessFontEntry (HKEY hkey, WCHAR *pwcValueName, ULONG ulValueNameLength, WCHAR *pwcFileName, ULONG ulFileNameLength) |
VOID | vMoveFileFromSystemToFontsDir (WCHAR *pwcFile) |
VOID | vProcessType1FontEntry (HKEY hkey, WCHAR *pwcValueName, ULONG ulValueNameLength, WCHAR *pwcValueData, ULONG ulValueDataLength) |
VOID | vAddType1Font (WCHAR *pwcValueData, DWORD dwFlags) |
VOID | vAddRemoteType1Font (HKEY hkey, WCHAR *pwcValueName, ULONG ulValueNameLength, WCHAR *pwcValueData, ULONG ulValueDataLength) |
VOID | vAddLocalType1Font (HKEY hkey, WCHAR *pwcValueName, ULONG ulValueNameLength, WCHAR *pwcValueData, ULONG ulValueDataLength) |
VOID | vSweepFonts (PCWSTR pwszFontListKey, PCWSTR pwszFontSweepKey, PFNENTRY pfnProcessFontEntry, BOOL bForceEnum) |
BOOL | bLoadableFontDrivers () |
BOOL | bCheckAndDeleteTTF (HKEY hkey, PKEY_FULL_INFORMATION pKeyInfo, PKEY_VALUE_FULL_INFORMATION KeyValueInfo, PKEY_VALUE_BASIC_INFORMATION KeyValueBasicInfo, DWORD cjData) |
BOOL | bCleanConvertedTTFs () |
VOID | vCleanConvertedTTFs () |
VOID | vFontSweep () |
VOID | vLoadT1Fonts (PFNENTRY pfnProcessFontEntry) |
VOID | vLoadLocalT1Fonts () |
VOID | vLoadRemoteT1Fonts () |
Variables | |
CONST WCHAR | pwszType1Key [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Type 1 Installer\\Type 1 Fonts" |
CONST WCHAR | pwszSweepType1Key [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Type 1 Installer\\LastType1Sweep" |
CONST WCHAR | pwszUpdType1Key [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Type 1 Installer\\Upgraded Type1" |
CONST WCHAR | pwszFontsKey [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts" |
CONST WCHAR | pwszSweepKey [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\LastFontSweep" |
CONST WCHAR | pwszFontDrivers [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Font Drivers" |
WCHAR * | gpwcSystemDir |
WCHAR * | gpwcFontsDir |
BOOL | gbWin31Upgrade |
|
Definition at line 36 of file fntsweep.c. Referenced by bCleanConvertedTTFs(), and vSweepFonts(). |
|
Definition at line 135 of file fntsweep.c. Referenced by vProcessFontEntry(). |
|
Definition at line 134 of file fntsweep.c. Referenced by vProcessFontEntry(). |
|
Definition at line 33 of file fntsweep.c. Referenced by vSweepFonts(). |
|
Definition at line 34 of file fntsweep.c. Referenced by vCleanConvertedTTFs(). |
|
Definition at line 562 of file fntsweep.c. |
|
Definition at line 882 of file fntsweep.c. References BOOL, BYTE, DWORD, FALSE, L, MAX_PATH, NT_SUCCESS, NtDeleteValueKey(), NtEnumerateValueKey(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, TRUE, and vNullTermWideString(). Referenced by bCleanConvertedTTFs().
|
|
Definition at line 112 of file fntsweep.c. Referenced by vProcessFontEntry().
|
|
Definition at line 43 of file fntsweep.c. References BOOL, Buffer, DbgPrint, DWORD, L, MAX_PATH, and UINT. Referenced by vFontSweep().
|
|
Definition at line 996 of file fntsweep.c. References bCheckAndDeleteTTF(), BOOL, DWORD, DWORDALIGN, FALSE, NT_SUCCESS, NtClose(), NtEnumerateValueKey(), NtOpenKey(), NtQueryKey(), NTSTATUS(), NULL, pwszFontsKey, pwszType1Key, RtlInitUnicodeString(), Status, TRUE, UserLocalAlloc, and UserLocalFree. Referenced by vCleanConvertedTTFs().
|
|
Definition at line 818 of file fntsweep.c. References BOOL, DWORD, FALSE, NT_SUCCESS, NtClose(), NtOpenKey(), NtQueryKey(), NTSTATUS(), NULL, pwszFontDrivers, RtlInitUnicodeString(), Status, and TRUE. Referenced by vLoadT1Fonts().
|
|
Definition at line 546 of file fntsweep.c. References vAddType1Font(), and VOID(). Referenced by vLoadLocalT1Fonts().
|
|
Definition at line 531 of file fntsweep.c. References vAddType1Font(), and VOID(). Referenced by vLoadRemoteT1Fonts().
|
|
Definition at line 489 of file fntsweep.c. References DbgPrint, dwFlags, L, NULL, and VOID(). Referenced by vAddLocalType1Font(), and vAddRemoteType1Font().
|
|
Definition at line 1132 of file fntsweep.c. References bCleanConvertedTTFs(), BOOL, DWORD, FALSE, NT_SUCCESS, NtClose(), NtCreateKey(), NtOpenKey(), NtQueryValueKey(), NtSetValueKey(), NTSTATUS(), NULL, pwszUpdType1Key, RtlInitUnicodeString(), Status, TRUE, UPGRADED_TYPE1, and VOID(). Referenced by vFontSweep().
|
|
Definition at line 1237 of file fntsweep.c. References bCheckIfDualBootingWithWin31(), FALSE, gbWin31Upgrade, gpwcSystemDir, NULL, pwszFontsKey, pwszSweepKey, pwszSweepType1Key, pwszType1Key, vCleanConvertedTTFs(), VOID(), vProcessFontEntry(), vProcessType1FontEntry(), and vSweepFonts().
|
|
Definition at line 1300 of file fntsweep.c. References vAddLocalType1Font(), vLoadT1Fonts(), and VOID().
|
|
Definition at line 1305 of file fntsweep.c. References vAddRemoteType1Font(), vLoadT1Fonts(), and VOID().
|
|
Definition at line 1277 of file fntsweep.c. References bLoadableFontDrivers(), DbgPrint, gpwcSystemDir, NULL, pwszSweepType1Key, pwszType1Key, TRUE, VOID(), and vSweepFonts(). Referenced by vLoadLocalT1Fonts(), and vLoadRemoteT1Fonts().
|
|
Definition at line 360 of file fntsweep.c. References BOOL, gpwcFontsDir, L, MAX_PATH, NULL, and VOID(). Referenced by vProcessType1FontEntry().
|
|
Definition at line 89 of file fntsweep.c. References VOID(). Referenced by bCheckAndDeleteTTF(), and vProcessFontEntry().
|
|
Definition at line 138 of file fntsweep.c. References bCheckFontEntry(), BOOL, DWORD, EXT_FOT, EXT_TRUETYPE, FALSE, gbWin31Upgrade, gpwcFontsDir, L, MAX_PATH, min, NT_SUCCESS, NtSetValueKey(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, TRUE, vNullTermWideString(), and VOID(). Referenced by vFontSweep().
|
|
Definition at line 450 of file fntsweep.c. References L, vMoveFileFromSystemToFontsDir(), and VOID(). Referenced by vFontSweep().
|
|
Definition at line 577 of file fntsweep.c. References BOOL, BYTE, DWORD, DWORDALIGN, FALSE, gpwcFontsDir, gpwcSystemDir, LAST_SWEEP_TIME, NT_SUCCESS, NtClose(), NtCreateKey(), NtEnumerateValueKey(), NtOpenKey(), NtQueryKey(), NtQueryValueKey(), NtSetValueKey(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, TRUE, UserLocalAlloc, UserLocalFree, and VOID(). Referenced by vFontSweep(), and vLoadT1Fonts().
|
|
Definition at line 40 of file fntsweep.c. Referenced by vFontSweep(), and vProcessFontEntry(). |
|
Definition at line 39 of file fntsweep.c. Referenced by vMoveFileFromSystemToFontsDir(), vProcessFontEntry(), and vSweepFonts(). |
|
Definition at line 38 of file fntsweep.c. Referenced by vFontSweep(), vLoadT1Fonts(), and vSweepFonts(). |
|
Definition at line 31 of file fntsweep.c. Referenced by bLoadableFontDrivers(). |
|
Definition at line 29 of file fntsweep.c. Referenced by bCleanConvertedTTFs(), and vFontSweep(). |
|
Definition at line 30 of file fntsweep.c. Referenced by vFontSweep(). |
|
Definition at line 26 of file fntsweep.c. Referenced by vFontSweep(), and vLoadT1Fonts(). |
|
Definition at line 25 of file fntsweep.c. Referenced by bCleanConvertedTTFs(), vFontSweep(), and vLoadT1Fonts(). |
|
Definition at line 27 of file fntsweep.c. Referenced by vCleanConvertedTTFs(). |