#include "precomp.h"
#include <conroute.h>
#include "csrhlpr.h"
#include "badapps.h"
Go to the source code of this file.
Defines | |
#define | DLLPATCH_NAME L"DllPatch" |
Typedefs | |
typedef BOOL(* | PFNLOADPATCHDLL )(LPSTR pwszPatchDll) |
Functions | |
BOOL | GdiProcessSetup () |
BOOL | GdiDllInitialize (IN PVOID hmod, IN DWORD Reason, IN PCONTEXT pctx OPTIONAL) |
BOOL | UserClientDllInitialize (IN PVOID hmod, IN DWORD Reason, IN PCONTEXT pctx OPTIONAL) |
BOOL | LoadCursorsAndIcons (VOID) |
BOOL | RW_RegisterControls (VOID) |
BOOL | RW_RegisterDDEML (VOID) |
LPSTR | GetBadAppCmdLine (IN LPCWSTR lpApplicationName) |
BOOL | CheckBadApp (VOID) |
VOID | LoadAppDlls (VOID) |
VOID | InitOemXlateTables () |
BOOL | ClientThreadSetup (VOID) |
HLOCAL WINAPI | DispatchLocalAlloc (UINT uFlags, UINT uBytes, HANDLE hInstance) |
HLOCAL WINAPI | DispatchLocalReAlloc (HLOCAL hMem, UINT uBytes, UINT uFlags, HANDLE hInstance, PVOID *ppv) |
LPVOID WINAPI | DispatchLocalLock (HLOCAL hMem, HANDLE hInstance) |
BOOL WINAPI | DispatchLocalUnlock (HLOCAL hMem, HANDLE hInstance) |
UINT WINAPI | DispatchLocalSize (HLOCAL hMem, HANDLE hInstance) |
HLOCAL WINAPI | DispatchLocalFree (HLOCAL hMem, HANDLE hInstance) |
PVOID | UserRtlAllocMem (ULONG uBytes) |
VOID | UserRtlFreeMem (PVOID pMem) |
VOID | UserRtlRaiseStatus (NTSTATUS Status) |
BOOL | InitClientDrawing (VOID) |
VOID | InitializeLpkHooks (CONST FARPROC *lpfpLpkHooks) |
BOOL | CtxInitUser32 (VOID) |
DWORD | GetRipComponent (VOID) |
DWORD | GetDbgTagFlags (int tag) |
DWORD | GetRipPID (VOID) |
DWORD | GetRipFlags (VOID) |
VOID | SetRipFlags (DWORD dwRipFlags, DWORD dwRipPID) |
VOID | SetDbgTag (int tag, DWORD dwBitFlags) |
Variables | |
BOOL | gfFirstThread = TRUE |
PDESKTOPINFO | pdiLocal |
BOOL | gbIhaveBeenInited |
DWORD | gdwLpkEntryPoints |
CONST WCHAR | pwszWindowsKey [] = L"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows" |
CONST WCHAR | szAppInit [] = L"AppInit_DLLs" |
CONST WCHAR | gwszShimDll [] = L"shim.dll" |
CONST CHAR | gszLoadPathDll [] = "LoadPatchDll" |
WCHAR | szWindowStationDirectory [MAX_SESSION_PATH] |
CONST PCSR_CALLBACK_ROUTINE | apfnDispatch [] |
CONST ULONG | ulMaxApiIndex |
const PFNCLIENT | pfnClientA |
const PFNCLIENT | pfnClientW |
const PFNCLIENTWORKER | pfnClientWorker |
|
Referenced by GetBadAppCmdLine(). |
|
Definition at line 875 of file clinit.c. Referenced by CheckBadApp(). |
|
Definition at line 877 of file clinit.c. References BOOL, DWORD, FALSE, GetBadAppCmdLine(), gszLoadPathDll, gwszShimDll, MAX_PATH, NULL, PFNLOADPATCHDLL, RtlFreeHeap, and TRUE. Referenced by ClientThreadSetup().
|
|
Definition at line 1219 of file clinit.c. References BOOL, ButtonWndProcA(), ButtonWndProcW(), ButtonWndProcWorker(), CheckBadApp(), _CLIENTINFO::CI_flags, CI_INITIALIZED, CI_REGISTERCLASSES, ComboBoxWndProcA(), ComboBoxWndProcW(), ComboBoxWndProcWorker(), ComboListBoxWndProcA(), ComboListBoxWndProcW(), DefDlgProcA(), DefDlgProcW(), DefDlgProcWorker(), DESKTOPINFO, DesktopWndProcA(), DesktopWndProcW(), DispatchClientMessage(), DispatchHookA(), DispatchHookW(), _USERCONNECT::dwDispatchCount, DWORD, EditWndProcA(), EditWndProcW(), EditWndProcWorker(), FALSE, fnHkINLPCWPRETSTRUCTA(), fnHkINLPCWPRETSTRUCTW(), fnHkINLPCWPSTRUCTA(), fnHkINLPCWPSTRUCTW(), gcsAccelCache, GdiProcessSetup(), gDispatchTableValues, gdwLpkEntryPoints, GetClientInfo, gfFirstThread, gfServerProcess, gfSystemInitialized, ghbrBlack, ghbrWhite, ghdcBits2, gpsi, gSharedInfo, hmodUser, tagMSG_TABLE_ENTRY::iFunction, ImeWndProcA(), ImeWndProcW(), ImeWndProcWorker(), InitClientDrawing(), InitOemXlateTables(), INT, ListBoxWndProcA(), ListBoxWndProcW(), ListBoxWndProcWorker(), LoadAppDlls(), LoadCursorsAndIcons(), MB_DlgProcA(), MB_DlgProcW(), MDIActivateDlgProcA(), MDIActivateDlgProcW(), MDIClientWndProcA(), MDIClientWndProcW(), MDIClientWndProcWorker(), MenuWndProcA(), MenuWndProcW(), MessageTable, NT_SUCCESS, NTSTATUS(), NtUserCallNoParam(), NtUserCallOneParam(), NtUserGetThreadDesktop(), NtUserInitializeClientPfnArrays(), NtUserProcessConnect(), NULL, pdiLocal, _PFNCLIENT::pfnButtonWndProc, _PFNCLIENTWORKER::pfnButtonWndProc, pfnClientA, pfnClientW, pfnClientWorker, _PFNCLIENT::pfnComboBoxWndProc, _PFNCLIENTWORKER::pfnComboBoxWndProc, _PFNCLIENT::pfnComboListBoxProc, _PFNCLIENTWORKER::pfnComboListBoxProc, _PFNCLIENT::pfnDefWindowProc, _PFNCLIENT::pfnDesktopWndProc, _PFNCLIENT::pfnDialogWndProc, _PFNCLIENTWORKER::pfnDialogWndProc, _PFNCLIENT::pfnDispatchHook, _PFNCLIENT::pfnDispatchMessage, _PFNCLIENT::pfnEditWndProc, _PFNCLIENTWORKER::pfnEditWndProc, _PFNCLIENT::pfnHkINLPCWPRETSTRUCT, _PFNCLIENT::pfnHkINLPCWPSTRUCT, _PFNCLIENT::pfnImeWndProc, _PFNCLIENTWORKER::pfnImeWndProc, _PFNCLIENT::pfnListBoxWndProc, _PFNCLIENTWORKER::pfnListBoxWndProc, _PFNCLIENT::pfnMB_DlgProc, _PFNCLIENT::pfnMDIActivateDlgProc, _PFNCLIENT::pfnMDIClientWndProc, _PFNCLIENTWORKER::pfnMDIClientWndProc, _PFNCLIENT::pfnMenuWndProc, _PFNCLIENT::pfnScrollBarWndProc, _PFNCLIENT::pfnStaticWndProc, _PFNCLIENTWORKER::pfnStaticWndProc, _PFNCLIENT::pfnTitleWndProc, tagSHAREDINFO::psi, RW_RegisterControls(), RW_RegisterDDEML(), ScrollBarWndProcA(), ScrollBarWndProcW(), _USERCONNECT::siClient, StaticWndProcA(), StaticWndProcW(), StaticWndProcWorker(), Status, TRUE, _USERCONNECT::ulVersion, and USERCURRENTVERSION. Referenced by xxxCreateThreadInfo().
|
|
Definition at line 1729 of file clinit.c. References BOOL, FALSE, gfServerProcess, ghbrBlack, ghbrWhite, ghdcBits2, InitClientDrawing(), ISREMOTESESSION, LoadCursorsAndIcons(), NULL, RW_RegisterControls(), RW_RegisterDDEML(), and TRUE. Referenced by CommonCreateWindowStation(), and W32WinStationDoConnect().
|
|
Definition at line 1549 of file clinit.c.
|
|
Definition at line 1599 of file clinit.c.
|
|
Definition at line 1572 of file clinit.c. References LPVOID.
|
|
Definition at line 1559 of file clinit.c.
|
|
Definition at line 1590 of file clinit.c. References UINT.
|
|
Definition at line 1581 of file clinit.c. References BOOL.
|
|
Referenced by UserClientDllInitialize(). |
|
Referenced by ClientThreadSetup(). |
|
Definition at line 598 of file clinit.c. References BOOL, DLLPATCH_NAME, FALSE, L, NT_SUCCESS, NtClose(), NtEnumerateValueKey(), NtOpenKey(), NtQueryValueKey(), NTSTATUS(), NULL, PBYTE, RtlAllocateHeap, RtlFreeHeap, RtlInitUnicodeString(), Status, and TRUE. Referenced by CheckBadApp().
|
|
Definition at line 1782 of file clinit.c. References DWORD, gpsi, and NULL.
|
|
Definition at line 1780 of file clinit.c. References DWORD.
|
|
Definition at line 1793 of file clinit.c. References DWORD, gpsi, NULL, RIPF_DEFAULT, and tagSERVERINFO::wRIPFlags.
|
|
Definition at line 1792 of file clinit.c. References DWORD, gpsi, NULL, and tagSERVERINFO::wRIPPID.
|
|
Definition at line 1639 of file clinit.c. References BOOL, FALSE, gcxGray, gcyGray, GetSysColor(), ghbrWindowText, ghdcGray, ghFontSys, gpsi, NULL, and TRUE.
|
|
Definition at line 1686 of file clinit.c. References FPLPKDRAWTEXTEX, fpLpkDrawTextEx, fpLpkEditControl, FPLPKPSMTEXTOUT, fpLpkPSMTextOut, FPLPKTABBEDTEXTOUT, fpLpkTabbedTextOut, and gdwLpkEntryPoints.
|
|
Definition at line 1062 of file clinit.c. References INT, NCHARS, NCTRLS, NtUserCallTwoParam(), and NULL. Referenced by ClientThreadSetup().
|
|
Definition at line 933 of file clinit.c. References BOOL, DWORD, FALSE, gfLogonProcess, gfServerProcess, NT_SUCCESS, NtClose(), NtOpenKey(), NtQueryValueKey(), NTSTATUS(), NULL, pwszWindowsKey, RtlImageNtHeader(), RtlInitUnicodeString(), Status, szAppInit, TRUE, UserGlobalFree, and VOID(). Referenced by ClientThreadSetup().
|
|
Definition at line 307 of file clinit.c. References BOOL, LoadIcoCur(), NtUserCallNoParam(), NULL, SYSMET, and TRUE. Referenced by ClientThreadSetup(), and CtxInitUser32().
|
|
Definition at line 378 of file clinit.c. References BOOL, BUTNWND, ButtonWndProcW(), CBEDITEXTRA, ComboBoxWndProcW(), ComboListBoxWndProcW(), COMBOWND, DefDlgProcW(), DIALOGCLASS, EDITWND, EditWndProcW(), FNID_BUTTON, FNID_COMBOBOX, FNID_COMBOLISTBOX, FNID_DIALOG, FNID_EDIT, FNID_IME, FNID_LISTBOX, FNID_MDICLIENT, FNID_STATIC, hmodUser, IMEWND, ImeWndProcW(), L, LBWND, ListBoxWndProcW(), max, MDIClientWndProcW(), MDIWND, NULL, RegisterClassExWOWW(), StaticWndProcW(), STATWND, TRUE, and UINT. Referenced by ClientThreadSetup(), and CtxInitUser32().
|
|
Definition at line 511 of file clinit.c. References BOOL, DDEMLClientWndProc(), DDEMLMotherWndProc(), DDEMLServerWndProc(), FNID_DDE_BIT, hmodUser, L, NULL, PSVR_CONV_INFO, RegisterClassExWOWA(), RegisterClassExWOWW(), and TRUE.
|
|
Definition at line 1800 of file clinit.c. References NtUserSetDbgTag(), and VOID().
|
|
Definition at line 1795 of file clinit.c. References NtUserSetRipFlags(), and VOID().
|
|
Definition at line 59 of file clinit.c. References apfnDispatch, BOOL, FALSE, fpImmRegisterClient, gbIhaveBeenInited, gcsAccelCache, gcsClipboard, gcsDDEML, gcsHdc, gcsLookaside, GdiDllInitialize(), GetImmFileName(), gfServerProcess, gHighestUserAddress, ghImm32, ghinstOLE, ghinstWinStaDll, gpsi, gSharedInfo, hmodUser, InitializeImmEntryTable(), IS_IME_ENABLED, ISTS, L, MAX_PATH, MAX_SESSION_PATH, NT_SUCCESS, NtQuerySystemInformation(), NTSTATUS(), NULL, pfnFindResourceExA, pfnFindResourceExW, pfnLoadResource, pfnSizeofResource, tagSHAREDINFO::psi, pUserHeap, RtlCreateHeap(), RtlDeleteCriticalSection(), RtlDestroyHeap(), RtlGetNtGlobalFlags(), RtlInitializeCriticalSection(), RtlInitUnicodeString(), SESSION_ROOT, _USERCONNECT::siClient, strRootDirectory, szWindowStationDirectory, TRUE, _USERCONNECT::ulVersion, USERCONNECT, UserConnectToServer(), USERCURRENTVERSION, WaitForInputIdle(), and WINSTA_DIR.
|
|
Definition at line 1614 of file clinit.c.
|
|
Definition at line 1620 of file clinit.c.
|
|
Definition at line 1626 of file clinit.c. References RtlRaiseStatus(), Status, and VOID().
|
|
Definition at line 56 of file clinit.c. Referenced by UserClientDllInitialize(). |
|
Definition at line 26 of file clinit.c. Referenced by UserClientDllInitialize(). |
|
Definition at line 27 of file clinit.c. Referenced by ClientThreadSetup(), and InitializeLpkHooks(). |
|
Definition at line 24 of file clinit.c. Referenced by ClientThreadSetup(). |
|
Definition at line 33 of file clinit.c. Referenced by CheckBadApp(). |
|
Definition at line 32 of file clinit.c. Referenced by CheckBadApp(). |
|
Definition at line 25 of file clinit.c. Referenced by ClientThreadSetup(). |
|
Initial value:
Definition at line 1156 of file clinit.c. Referenced by ClientThreadSetup(). |
|
Initial value:
Definition at line 1178 of file clinit.c. Referenced by ClientThreadSetup(). |
|
Initial value:
Definition at line 1200 of file clinit.c. Referenced by ClientThreadSetup(). |
|
Definition at line 29 of file clinit.c. Referenced by LoadAppDlls(). |
|
Definition at line 30 of file clinit.c. Referenced by LoadAppDlls(). |
|
Definition at line 41 of file clinit.c. Referenced by InitCreateObjectDirectory(), NtUserCreateWindowStation(), UserClientDllInitialize(), UserInitialize(), xxxResolveDesktop(), and xxxResolveDesktopForWOW(). |
|
|