Home
last modified time | relevance | path

Searched refs:Globals (Results 1 – 25 of 76) sorted by relevance

1234

/reactos/base/applications/notepad/
H A Ddialog.c634 if (Globals.bShowStatusBar && Globals.hStatusBar == NULL) in DoShowHideStatusBar()
744 Globals.EditProc = (WNDPROC)SetWindowLongPtr(Globals.hEdit, in DoCreateEditWindow()
758 Globals.bWrapLongLines = !Globals.bWrapLongLines; in DIALOG_EditWrap()
801 ZeroMemory(&Globals.find, sizeof(Globals.find)); in DIALOG_SearchDialog()
802 Globals.find.lStructSize = sizeof(Globals.find); in DIALOG_SearchDialog()
803 Globals.find.hwndOwner = Globals.hMainWnd; in DIALOG_SearchDialog()
804 Globals.find.lpstrFindWhat = Globals.szFindText; in DIALOG_SearchDialog()
805 Globals.find.wFindWhatLen = _countof(Globals.szFindText); in DIALOG_SearchDialog()
806 Globals.find.lpstrReplaceWith = Globals.szReplaceText; in DIALOG_SearchDialog()
814 Globals.hFindReplaceDlg = pfnProc(&Globals.find); in DIALOG_SearchDialog()
[all …]
H A Dsettings.c113 Globals.bShowStatusBar = TRUE; in NOTEPAD_LoadSettingsFromRegistry()
114 Globals.bWrapLongLines = FALSE; in NOTEPAD_LoadSettingsFromRegistry()
116 ZeroMemory(&Globals.lfFont, sizeof(Globals.lfFont)); in NOTEPAD_LoadSettingsFromRegistry()
158 QueryString(hKey, _T("searchString"), Globals.szFindText, _countof(Globals.szFindText)); in NOTEPAD_LoadSettingsFromRegistry()
180 Globals.lfFont.lfFaceName, _countof(Globals.lfFont.lfFaceName))) in NOTEPAD_LoadSettingsFromRegistry()
182 LoadString(Globals.hInstance, STRING_DEFAULTFONT, Globals.lfFont.lfFaceName, in NOTEPAD_LoadSettingsFromRegistry()
186 if (!hKey || !QueryString(hKey, _T("szHeader"), Globals.szHeader, _countof(Globals.szHeader))) in NOTEPAD_LoadSettingsFromRegistry()
188 LoadString(Globals.hInstance, STRING_PAGESETUP_HEADERVALUE, Globals.szHeader, in NOTEPAD_LoadSettingsFromRegistry()
194 LoadString(Globals.hInstance, STRING_PAGESETUP_FOOTERVALUE, Globals.szFooter, in NOTEPAD_LoadSettingsFromRegistry()
215 if (Globals.hFont) in NOTEPAD_LoadSettingsFromRegistry()
[all …]
H A Dmain.c17 NOTEPAD_GLOBALS Globals; variable
36 StringCchCopy(Globals.szFileName, _countof(Globals.szFileName), szFileName); in SetFileName()
37 Globals.szFileTitle[0] = 0; in SetFileName()
38 GetFileTitle(szFileName, Globals.szFileTitle, _countof(Globals.szFileTitle)); in SetFileName()
249 ZeroMemory(&Globals, sizeof(Globals)); in NOTEPAD_InitData()
253 p = Globals.szFilter; in NOTEPAD_InitData()
264 Globals.hDevMode = NULL; in NOTEPAD_InitData()
265 Globals.hDevNames = NULL; in NOTEPAD_InitData()
371 if (Globals.hFont) in NOTEPAD_WndProc()
377 SetWindowLongPtr(Globals.hEdit, GWLP_WNDPROC, (LONG_PTR)Globals.EditProc); in NOTEPAD_WndProc()
[all …]
H A Dprinting.c23 Globals.szFileName[0] ? Globals.szFileName : szUntitled, in AlertPrintError()
371 lfBody = Globals.lfFont; in DoCreatePrintFonts()
378 lfHeader = Globals.lfFont; in DoCreatePrintFonts()
441 if (!Globals.szHeader[0]) in DoPrintDocument()
443 if (!Globals.szFooter[0]) in DoPrintDocument()
639 GetDlgItemText(hDlg, 0x141, Globals.szHeader, _countof(Globals.szHeader)); in DIALOG_PAGESETUP_Hook()
640 GetDlgItemText(hDlg, 0x143, Globals.szFooter, _countof(Globals.szFooter)); in DIALOG_PAGESETUP_Hook()
679 page.rtMargin = Globals.lMargins; in DIALOG_FilePageSetup()
680 page.hDevMode = Globals.hDevMode; in DIALOG_FilePageSetup()
688 Globals.hDevMode = page.hDevMode; in DIALOG_FilePageSetup()
[all …]
/reactos/base/applications/osk/
H A Dmain.c16 OSK_GLOBALS Globals; variable
147 ShellAboutW(Globals.hMainWnd, Globals.szTitle, szAuthors, in OSK_About()
173 Globals.hKeys = NULL; in OSK_DestroyKeys()
417 if (Globals.PosX == CW_USEDEFAULT && Globals.PosY == CW_USEDEFAULT) in OSK_Create()
487 KillTimer(Globals.hMainWnd, Globals.iTimer); in OSK_Close()
501 if (Globals.hBrushGreenLed) DeleteObject(Globals.hBrushGreenLed); in OSK_Close()
502 if (Globals.hFont) DeleteObject(Globals.hFont); in OSK_Close()
603 SendMessageW(Globals.hKeys[i], WM_SETFONT, (WPARAM)Globals.hFont, TRUE); in OSK_ChooseFont()
760 if (Globals.hFont) in OSK_Paint()
1005 ZeroMemory(&Globals, sizeof(Globals)); in wWinMain()
[all …]
H A Dsettings.c216 Globals.bShowWarning = TRUE; in LoadSettings()
217 Globals.bIsEnhancedKeyboard = TRUE; in LoadSettings()
218 Globals.bAlwaysOnTop = TRUE; in LoadSettings()
219 Globals.bSoundClick = FALSE; in LoadSettings()
222 Globals.PosX = CW_USEDEFAULT; in LoadSettings()
223 Globals.PosY = CW_USEDEFAULT; in LoadSettings()
246 Globals.PosX = dwValue; in LoadSettings()
251 Globals.PosY = dwValue; in LoadSettings()
263 StringCchCopyW(Globals.FontFaceName, _countof(Globals.FontFaceName), L"MS Shell Dlg"); in LoadSettings()
267 Globals.FontHeight = dwValue; in LoadSettings()
[all …]
/reactos/base/shell/progman/
H A Dmain.c45 GLOBALS Globals; variable
644 Globals.hAccel = LoadAcceleratorsW(Globals.hInstance, MAKEINTRESOURCEW(IDA_ACCEL)); in wWinMain()
659 !TranslateAcceleratorW(Globals.hMainWnd, Globals.hAccel, &msg)) in wWinMain()
869 Globals.bSaveSettings = !Globals.bSaveSettings; in MAIN_MenuCommand()
875 Globals.lpszIniFile); in MAIN_MenuCommand()
985 Globals.bAutoArrange = !Globals.bAutoArrange; in MAIN_MenuCommand()
993 Globals.bMinOnRun = !Globals.bMinOnRun; in MAIN_MenuCommand()
1001 Globals.bSaveSettings = !Globals.bSaveSettings; in MAIN_MenuCommand()
1088 Globals.hMDIWnd = NULL; in MAIN_CreateMainWindow()
1109 Globals.hMainWnd = in MAIN_CreateMainWindow()
[all …]
H A Dstring.c46 hMainMenu = LoadMenuW(Globals.hInstance, MAKEINTRESOURCEW(MAIN_MENU)); in STRING_LoadMenus()
47 Globals.hFileMenu = GetSubMenu(hMainMenu, 0); in STRING_LoadMenus()
48 Globals.hOptionMenu = GetSubMenu(hMainMenu, 1); in STRING_LoadMenus()
49 Globals.hWindowsMenu = GetSubMenu(hMainMenu, 2); in STRING_LoadMenus()
50 Globals.hLanguageMenu = GetSubMenu(hMainMenu, 3); in STRING_LoadMenus()
52 if (Globals.hMDIWnd) in STRING_LoadMenus()
53 … SendMessageW(Globals.hMDIWnd, WM_MDISETMENU, (WPARAM)hMainMenu, (LPARAM)Globals.hWindowsMenu); in STRING_LoadMenus()
55 SetMenu(Globals.hMainWnd, hMainMenu); in STRING_LoadMenus()
58 if (Globals.hMainMenu) in STRING_LoadMenus()
59 DestroyMenu(Globals.hMainMenu); in STRING_LoadMenus()
[all …]
H A Dgroup.c185 Globals.hInstance, in GROUP_GroupWndProc()
230 Globals.hActiveGroup->hActiveProgram = NULL; in GROUP_GroupWndProc()
313 ImageList_DragEnter(Globals.hMDIWnd, pt.x, pt.y); in GROUP_GroupWndProc()
340 ImageList_DragLeave(Globals.hMDIWnd); in GROUP_GroupWndProc()
377 wndClass.hInstance = Globals.hInstance; in GROUP_RegisterGroupWinClass()
531 Globals.hActiveGroup = hGroup; in GROUP_AddGroup()
535 for (p = &Globals.hGroups; *p; p = &hPrior->hNext) in GROUP_AddGroup()
629 if (Globals.hActiveGroup == hGroup) in GROUP_DeleteGroup()
630 Globals.hActiveGroup = NULL; in GROUP_DeleteGroup()
635 Globals.hGroups = hGroup->hNext; in GROUP_DeleteGroup()
[all …]
H A Ddialog.c47 LoadStringW(Globals.hInstance, ids, *p, MAX_STRING_LEN); in DIALOG_AddFilterItem()
67 openfilename.hInstance = Globals.hInstance; in DIALOG_Browse()
242 …ret = DialogBoxParamW(Globals.hInstance, MAKEINTRESOURCEW(IDD_NEW), Globals.hMainWnd, DIALOG_NEW_D… in DIALOG_New()
351 …ret = DialogBoxParamW(Globals.hInstance, MAKEINTRESOURCEW(IDD_COPY_MOVE), Globals.hMainWnd, DIALOG… in DIALOG_CopyMove()
494 …ret = DialogBoxParamW(Globals.hInstance, MAKEINTRESOURCEW(IDD_GROUP), Globals.hMainWnd, DIALOG_GRO… in DIALOG_GroupAttributes()
885 if (RegQueryValueExW(Globals.hKeyPMSettings, in DIALOG_ProgramAttributes()
1005 if (Globals.bMinOnRun) in DIALOG_EXECUTE_DlgProc()
1006 CloseWindow(Globals.hMainWnd); in DIALOG_EXECUTE_DlgProc()
1031 lRet = RegCreateKeyExW(Globals.hKeyProgMan, in DIALOG_Execute()
1062 lRet = RegQueryValueExW(Globals.hKeyPMSettings, in DIALOG_Execute()
[all …]
/reactos/base/applications/utilman/umandlg/
H A Dumandlg.c15 UTILMAN_GLOBALS Globals; variable
73 (bIsRunning ? Globals.szRunning : Globals.szNotRunning), in InitUtilsList()
106 Globals.hMainDlg = hDlg; in DlgInitHandler()
116 Globals.hIcon = ExtractIconW(Globals.hInstance, szAppPath, 0); in DlgInitHandler()
119 if (Globals.hIcon) in DlgInitHandler()
247 (bIsRunning ? Globals.szRunning : Globals.szNotRunning), in ListBoxRefreshContents()
265 SendMessageW(Globals.hListDlg, LB_SETCURSEL, (WPARAM)Globals.iSelectedIndex, 0); in ListBoxRefreshContents()
413 Globals.szRunning, _countof(Globals.szRunning)); in UManStartDlg()
415 Globals.szNotRunning, _countof(Globals.szNotRunning)); in UManStartDlg()
417 Globals.szGrpBoxTitle, _countof(Globals.szGrpBoxTitle)); in UManStartDlg()
[all …]
/reactos/base/applications/clipbrd/
H A Dclipbrd.c13 CLIPBOARD_GLOBALS Globals; variable
30 sfn.hwndOwner = Globals.hMainWnd; in SaveClipboardToFile()
31 sfn.hInstance = Globals.hInstance; in SaveClipboardToFile()
54 if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, in LoadClipboardDataFromFile()
87 ofn.hwndOwner = Globals.hMainWnd; in LoadClipboardFromFile()
114 CheckMenuItem(Globals.hMenu, Globals.uCheckedItem, MF_BYCOMMAND | MF_UNCHECKED); in SetDisplayFormat()
116 CheckMenuItem(Globals.hMenu, Globals.uCheckedItem, MF_BYCOMMAND | MF_CHECKED); in SetDisplayFormat()
151 DrawMenuBar(Globals.hMainWnd); in InitMenuPopup()
226 if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, in OnCommand()
693 ZeroMemory(&Globals, sizeof(Globals)); in wWinMain()
[all …]
H A Dfileutils.c302 ShowLastWin32Error(Globals.hMainWnd); in ReadClipboardFile()
309 ShowLastWin32Error(Globals.hMainWnd); in ReadClipboardFile()
332 …MessageBoxRes(Globals.hMainWnd, Globals.hInstance, ERROR_INVALID_FILE_FORMAT, 0, MB_ICONSTOP | MB_… in ReadClipboardFile()
341 ShowLastWin32Error(Globals.hMainWnd); in ReadClipboardFile()
365 ShowLastWin32Error(Globals.hMainWnd); in ReadClipboardFile()
371 ShowLastWin32Error(Globals.hMainWnd); in ReadClipboardFile()
439 ShowLastWin32Error(Globals.hMainWnd); in ReadClipboardFile()
474 ShowLastWin32Error(Globals.hMainWnd); in WriteClipboardFile()
505 …MessageBoxRes(Globals.hMainWnd, Globals.hInstance, ERROR_INVALID_FILE_FORMAT, 0, MB_ICONSTOP | MB_… in WriteClipboardFile()
514 ShowLastWin32Error(Globals.hMainWnd); in WriteClipboardFile()
[all …]
H A Dcliputils.c136 if (!OpenClipboard(Globals.hMainWnd)) in DeleteClipboardContent()
138 ShowLastWin32Error(Globals.hMainWnd); in DeleteClipboardContent()
144 ShowLastWin32Error(Globals.hMainWnd); in DeleteClipboardContent()
253 if (!OpenClipboard(Globals.hMainWnd)) in GetClipboardDataDimensions()
332 hDC = GetDC(Globals.hMainWnd); in GetClipboardDataDimensions()
356 ReleaseDC(Globals.hMainWnd, hDC); in GetClipboardDataDimensions()
H A Dwinutils.c92 FirstLine = max(0, (state.CurrentY + ps.rcPaint.top) / Globals.CharHeight); in DrawTextFromClipboard()
95 LastLine = (state.CurrentY + ps.rcPaint.bottom) / Globals.CharHeight; in DrawTextFromClipboard()
120 ptOrg.y = /* FirstLine */ max(0, (state.CurrentY + ps.rcPaint.top) / Globals.CharHeight) in DrawTextFromClipboard()
121 * Globals.CharHeight - state.CurrentY; in DrawTextFromClipboard()
148 ptOrg.y += Globals.CharHeight; in DrawTextFromClipboard()
/reactos/base/applications/winhlp32/
H A Dwinhelp.c222 if (Globals.active_win && Globals.active_win->page && Globals.active_win->page->file) in WINHELP_LookupHelpFile()
347 if (Globals.active_win->next || Globals.win_list != Globals.active_win) return TRUE; in WINHELP_HasWorkingWindow()
348 return Globals.active_win->page != NULL && Globals.active_win->page->file != NULL; in WINHELP_HasWorkingWindow()
561 Globals.active_win = Globals.win_list; in WINHELP_DeleteWindow()
585 if (!Globals.win_list) in WINHELP_DeleteWindow()
599 if (!Globals.history.index || Globals.history.set[0].page != wpage->page) in WINHELP_RememberPage()
608 memmove(&Globals.history.set[1], &Globals.history.set[0], in WINHELP_RememberPage()
609 Globals.history.index * sizeof(Globals.history.set[0])); in WINHELP_RememberPage()
1164 if (Globals.history.set[i].page->file == Globals.active_win->page->file) in WINHELP_HistoryWndProc()
1553 if (Globals.active_win && Globals.active_win->page && Globals.active_win->page->file) in WINHELP_CreateIndexWindow()
[all …]
H A Dmacro.c291 for (win = Globals.win_list; win; win = next) in MACRO_CloseSecondarys()
308 for (win = Globals.win_list; win; win = next) in MACRO_CloseWindow()
378 ret = ShellExecuteA(Globals.active_win ? Globals.active_win->hMainWnd : NULL, "open", in MACRO_ExecFile()
396 while (Globals.win_list) in MACRO_Exit()
397 WINHELP_ReleaseWindow(Globals.win_list); in MACRO_Exit()
520 if (Globals.active_win && !Globals.active_win->hHistoryWnd) in MACRO_History()
523 0, 0, 0, 0, 0, 0, Globals.hInstance, Globals.active_win); in MACRO_History()
558 return Globals.isBook; in MACRO_IsBook()
786 dll->next = Globals.dlls; in MACRO_RegisterRoutine()
787 Globals.dlls = dll; in MACRO_RegisterRoutine()
[all …]
H A Dmacro.lex.l128 WNDPROC lpfnDlg = MakeProcInstance(MACRO_TestDialogProc, Globals.hInstance);
129 … DialogBox(Globals.hInstance, STRING_DIALOG_TEST, Globals.active_win->hMainWnd, (DLGPROC)lpfnDlg);
368 return lex_data ? lex_data->window : Globals.active_win;
/reactos/sdk/lib/drivers/wdf/shared/inc/private/common/
H A Dfxtelemetry.hpp45 #define FX_TELEMETRY_ENABLED(TraceHandle, Globals) \ argument
46 (TraceHandle && IsDriverTelemetryContextInitialized(Globals)) \
72 #define WDF_CENSUS_EVT_WRITE_DRIVER_LOAD(TraceHandle, Globals, DrvImage, WdfVersion) \ argument
76 WDF_CENSUS_EVT_DATA_COMMON(Globals), \
78 …TraceLoggingString((Globals)->Public.DriverName, "DriverSe…
81 …TraceLoggingUInt32((Globals)->WdfBindInfo->Version.Major, "DriverVe…
82 …TraceLoggingUInt32((Globals)->WdfBindInfo->Version.Minor, "DriverVe…
83 …TraceLoggingBoolean((Globals)->FxVerifierOn, "FxVerifi…
84 …TraceLoggingBoolean(!!((Globals)->Public.DriverFlags & WdfDriverInitNonPnpDriver), "DriverNo…
154 _In_ PFX_DRIVER_GLOBALS Globals,
[all …]
H A Dfxglobals.h553 __in PFX_DRIVER_GLOBALS Globals, in __bcount()
563 Globals, in __bcount()
564 &Globals->FxPoolFrameworks, in __bcount()
567 Globals->Tag, in __bcount()
576 __in PFX_DRIVER_GLOBALS Globals, in __bcount()
583 Globals, in __bcount()
584 &Globals->FxPoolFrameworks, in __bcount()
588 Globals->FxPoolTrackingOn ? _ReturnAddress() : NULL in __bcount()
/reactos/sdk/lib/drivers/wdf/shared/inc/private/km/
H A Dfxtelemetrykm.hpp47 #define KMDF_CENSUS_EVT_WRITE_DEVICE_START(TraceHandle , Globals, DriverConfig, SetupClass, BusEnum… argument
51 …WDF_CENSUS_EVT_DATA_COMMON(Globals), …
52 …TraceLoggingString((Globals)->Public.DriverName, "DriverServiceName"), …
165 _In_ PFX_DRIVER_GLOBALS Globals,
187 _In_ PFX_DRIVER_GLOBALS Globals,
/reactos/sdk/lib/drivers/wdf/shared/inc/private/um/
H A Dfxtelemetryum.hpp41 #define UMDF_CENSUS_EVT_WRITE_DEVICE_START(TraceHandle , Globals, DriverConfig, SetupClass, BusEnum… argument
45 …WDF_CENSUS_EVT_DATA_COMMON(Globals), …
46 …TraceLoggingString((Globals)->Public.DriverName, "DriverServiceName"), …
/reactos/sdk/lib/drivers/wdf/kmdf/src/support/
H A Dfxrelateddevice.cpp30 __in PFX_DRIVER_GLOBALS Globals in FxRelatedDevice() argument
31 ) : FxObject(FX_TYPE_RELATED_DEVICE, 0, Globals), in FxRelatedDevice()
/reactos/sdk/lib/drivers/wdf/shared/irphandlers/pnp/um/
H A Dfxrelateddeviceum.cpp34 __in PFX_DRIVER_GLOBALS Globals in FxRelatedDevice() argument
35 ) : FxObject(FX_TYPE_RELATED_DEVICE, 0, Globals), in FxRelatedDevice()
/reactos/sdk/lib/drivers/wdf/shared/support/km/
H A Dfxtelemetrykm.cpp288 _In_ PFX_DRIVER_GLOBALS Globals, in GetDriverInfo() argument
296 DriverInfo->bitmap.IsVerifierOn = Globals->FxVerifierOn; in GetDriverInfo()
297 …DriverInfo->bitmap.IsEnhancedVerifierOn = FLAG_TO_BOOL(Globals->FxEnhancedVerifierOptions, FxEnhan… in GetDriverInfo()
303 …DriverInfo->bitmap.IsNonPnpDriver = FLAG_TO_BOOL(Globals->Public.DriverFlags, WdfDriverInitNonPnpD… in GetDriverInfo()
304 …DriverInfo->bitmap.IsNoDispatchOverride = FLAG_TO_BOOL(Globals->Public.DriverFlags, WdfDriverInitN… in GetDriverInfo()
646 _In_ PFX_DRIVER_GLOBALS Globals, in __drv_maxIRQL()
684 info = (PKEY_VALUE_PARTIAL_INFORMATION) FxPoolAllocate(Globals, in __drv_maxIRQL()

1234