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;
162 pWP->
length =
sizeof(*pWP);
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)
void NOTEPAD_LoadSettingsFromRegistry(PWINDOWPLACEMENT pWP)
static LPCTSTR s_szRegistryKey
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)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
#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 GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
HDC WINAPI GetDC(_In_opt_ HWND)
#define WPF_RESTORETOMAXIMIZED
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)