40 dwPointSize -= dwPointSize % 10;
50 LPVOID *pTemp = _alloca(dwResultSize);
54 cbData = dwResultSize;
58 if (dwType != dwExpectedType)
61 memcpy(pvResult, pTemp, cbData);
75 if (dwResult >= 0x100)
77 *pbResult = (
BYTE) dwResult;
92 if (dwResultLength == 0)
96 pszResult[dwResultLength - 1] = 0;
123 cx =
min((cxScreen * 3) / 4, 640);
124 cy =
min((cyScreen * 3) / 4, 480);
void NOTEPAD_SaveSettingsToRegistry(void)
static BOOL QueryByte(HKEY hKey, LPCTSTR pszValueName, BYTE *pbResult)
static DWORD PointSizeFromHeight(LONG lHeight)
static BOOL QueryBool(HKEY hKey, LPCTSTR pszValueName, BOOL *pbResult)
static LPCTSTR s_szRegistryKey
void NOTEPAD_LoadSettingsFromRegistry(void)
static BOOL QueryString(HKEY hKey, LPCTSTR pszValueName, LPTSTR pszResult, DWORD dwResultLength)
static BOOL QueryDword(HKEY hKey, LPCTSTR pszValueName, DWORD *pdwResult)
static BOOL QueryGeneric(HKEY hKey, LPCTSTR pszValueNameT, DWORD dwExpectedType, LPVOID pvResult, DWORD dwResultSize)
static BOOL SaveString(HKEY hKey, LPCTSTR pszValueNameT, LPCTSTR pszValue)
static LONG HeightFromPointSize(DWORD dwPointSize)
static BOOL SaveDword(HKEY hKey, LPCTSTR pszValueNameT, DWORD dwValue)
#define RegCloseKey(hKey)
CLIPBOARD_GLOBALS Globals
LANGID WINAPI GetUserDefaultLangID(void)
#define memcpy(s1, s2, n)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
#define STRING_PAGESETUP_FOOTERVALUE
#define STRING_DEFAULTFONT
#define STRING_PAGESETUP_HEADERVALUE
_In_ UINT _In_ DWORD _Out_ DWORD * pdwResult
_Out_opt_ int _Out_opt_ int * cy
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define CreateFontIndirect
#define HKEY_CURRENT_USER
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)