Windows 7 - Time to hack the registry.
Asked By ltwally
28-Jun-07 05:16 PM
Time to hack the registry.
Go to:
[HKEY_CURRENT_USER\Control Panel\Desktop]
For full X-Mouse, add +41h to the first number stored in binary key
If you only want "focus follows mouse," add +1h.
For example, the value for my key was "9E 3E 07 80 12 00 00 00"
I edited it to "9F 3E 07 80 12 00 00 00" to get "focus follows mouse"
If I had wanted full X-Mouse, I'd have edited it to "D9 3E 07 80 12 00
00 00"
After that is done, edit the 32bit dword key "ActiveWndTrkTimeout" to
the number of milliseconds (in decimal) that you want it to wait before
it changes the focus. If this key does not exist, you can create one.
With the key set to zero or no key at all, it will automatically change
the focus as soon as your cursor touches a new window.
Hope this helps.
-ltwally
ps. If you add these changes to the .DEFAULT account in [HKEY_USERS],
they will be present for all newly created accounts. This is handy for
domain controllers and such.
--
ltwally
ActiveWndTrkTimeout
(1)
UserPreferencesMask
(1)
Controllers
(1)
Touches
(1)
Dword
(1)

Interface Network Clients - -- -- -- -- -- -- -- ms_msclient Client for Microsoft Networks Registry Check [ Table Of Contents ] [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAsyncMac] "Type" = dword:00000001 "Start" = dword:00000003 "ErrorControl" = dword:00000001 "ImagePath" = hex(2):73, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6d 00 "DisplayName" = "@%systemroot% \ system32 \ rascfg.dll, -32000" "Description" = "@%systemroot% \ system32 \ rascfg.dll, -32000" [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesIpFilterDriver] "Type" = dword:00000001 "Start" = dword:00000003 "ErrorControl" = dword:00000001 "ImagePath" = hex(2):73, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6d 00 "Description" = "@%systemroot% \ system32 \ rascfg.dll, -32013" "Group" = "PNP_TDI" [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesIpFilterDriverEnum] "0" = "Root \ LEGACY_IPFILTERDRIVER \ 0000" "Count" = dword:00000001 "NextInstance" = dword:00000001 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesIpInIp] "Type" = dword:00000001 "Start" = dword:00000003 "ErrorControl" = dword:00000001 "ImagePath" = hex(2):73
LPTSTR pszprivate = _TEXT("c: \ private.txt"); PBYTE pbKeyBlob = NULL; PBYTE pbKeyBlobpublic = NULL; PBYTE pbKeyBlobprivate = NULL; DWORD dwKeyBlobLen = NULL; DWORD dwCount = NULL; PBYTE pbBuffer = NULL; DWORD dwBlockLen = NULL; DWORD dwBufferLen = NULL; / / Open the source file. hSourceFile = CreateFile( pszSourceFile, FILE_READ_DATA, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL goto Exit_MyDecryptFile; } } / / extract the saved exchange key from public file if(!ReadFile( hpublic, &dwKeyBlobLen, sizeof(DWORD), &dwCount, NULL)) { MyHandleError( TEXT("Error reading public key BLOB length! \ n"), GetLastError()); goto Exit_MyDecryptFile; } / / Allocate key. / / Read the key BLOB length from the source file. if(!ReadFile( hSourceFile, &dwKeyBlobLen, sizeof(DWORD), &dwCount, NULL)) { MyHandleError( TEXT("Error reading key BLOB length! \ n"), GetLastError()); goto Exit_MyDecryptFile; } / / Allocate a key BLOB into the CSP. SetLastError(0); if(!CryptImportKey( hCryptProv, pbKeyBlob, dwKeyBlobLen, 0, 0, &hKey)) { DWORD dw = NULL; dw = GetLastError(); MyHandleError( TEXT("Error during CryptImportKey! / n"), GetLastError()); goto Exit_MyDecryptFile; } if(pbKeyBlob SetLastError(0); / / - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- / / Decrypt the block of data. if(!CryptDecrypt( hXchgKey, 0, fEOF, 0, pbBuffer, &dwCount)) { DWORD dw1 = NULL; dw1 = GetLastError(); MyHandleError( TEXT("Error during CryptDecrypt! \ n"), GetLastError()); goto Exit_MyDecryptFile; } / / - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- / / Write the
HRESULT Open( const TCHAR *pwszFile ); HRESULT Close(); HRESULT GetStreamNumbers( IWMProfile* pProfile ); HRESULT ReadSamples(); HRESULT SetParams( DWORD cnsStart, DWORD cnsEnd, BOOL fCompressed, BOOL fAudioPresent, BOOL fVideoPresent, BOOL fRangeInFrames ); private : IWMSyncReader2* m_pReader; WORD m_wAudioStreamNum; WORD AddRef(); virtual ULONG STDMETHODCALLTYPE Release(); / / / / Implements IWMReaderAllocatorEx / / virtual HRESULT STDMETHODCALLTYPE AllocateForStreamEx( / * [in] * / WORD wStreamNum, / * [in] * / DWORD cbBuffer, / * [out] * / INSSBuffer * *ppBuffer, / * [in] * / DWORD dwFlags, / * [in] * / QWORD cnsSampleTime, / * [in] * / QWORD cnsSampleDuration, / * [in] * / void *pvContext); virtual HRESULT STDMETHODCALLTYPE AllocateForOutputEx( / * [in] * / DWORD dwOutputNum, / * [in] * / DWORD cbBuffer, / * [out] * / INSSBuffer * *ppBuffer, / * [in DWORD dwFlags, / * [in] * / QWORD cnsSampleTime, / * [in] * / QWORD cnsSampleDuration, / * [in] * / void *pvContext); / / ref counting LONG m_cRefs; }; / / reader m_cRefs ) ) { delete this; return( 0 ); } return( 0xbad ); } HRESULT STDMETHODCALLTYPE CReader::AllocateForStreamEx( / * [in] * / WORD wStreamNum, / * [in] * / DWORD cbBuffer, / * [out] * / INSSBuffer * *ppBuffer, / * [in] * / DWORD dwFlags, / * [in] * / QWORD cnsSampleTime, / * [in] * / QWORD cnsSampleDuration, / * [in] * / void
es = 0023 fs = 003b gs = 0000 efl = 00010246 SHDOCVW!CNscTree::_OnGetDisplayInfo+0xa3: 6f9d3c56 ffb5c8fdffff push dword ptr [ebp-238h] ss: 0023:fffffdc8 = ???????? Root Disassembly: - -- -- -- -- -- -- -- -- -- -- -- -- -- - 6f9d3c2e 33c0 xor eax, eax 6f9d3c30 40 lea ecx, [ebp-354h] 6f9d3c37 51 push ecx 6f9d3c38 50 push eax 6f9d3c39 ffb5c8fdffff push dword ptr [ebp-238h] 6f9d3c3f 8bcb mov ecx, ebx 6f9d3c41 e8b7caffff call SHDOCVW!CNscTree::_GetDisplayNameOf (6f9d06fd 85c0 test eax, eax 6f9d3c48 7c2d jl SHDOCVW!CNscTree::_OnGetDisplayInfo +0x121 (6f9d3c77) 6f9d3c4a ff7620 push dword ptr [esi+20h] 6f9d3c4d 8d85b4fcffff lea eax, [ebp-34Ch] 6f9d3c53 ff761c push dword ptr [esi+1Ch] 6f9d3c56 ffb5c8fdffff push dword ptr [ebp-238h] ss: 0023:fffffdc8 = ???????? 6f9d3c5c 50 push eax 6f9d3c5d ff1514129c6f call dword ptr [SHDOCVW!_imp_ _StrRetToBufW (6f9c1214)] 6f9d3c63 85c0 test eax, eax 6f9d3c65 7c10 jl SHDOCVW!CNscTree::_OnGetDisplayInfo +0x121 (6f9d3c77) 6f9d3c67 f7839c01000000000080 test dword ptr [ebx+19Ch], 80000000h 6f9d3c71 0f8515ac0000 jne SHDOCVW!CNscTree::_OnGetDisplayInfo +0xc0 (6f9de88c) 6f9d3c77 f6460c62 test 6f9d3c7b 747e je SHDOCVW!CNscTree::_OnGetDisplayInfo +0x1c4 (6f9d3cfb) 6f9d3c7d 6800002020 push 20200000h 6f9d3c82 ffb5c8fdffff push dword ptr [ebp-238h] 6f9d3c88 57 push edi 6f9d3c89 e8e3f2ffff call SHDOCVW!SHGetAttributes (6f9d2f71) For a
FindProcess(TCHAR* _szName) { try { char szName[MAX_PATH], szToTermUpper[MAX_PATH]; int iLen, iLenP, indx; BOOL bResult; DWORD aiPID[1000], iCb = 1000, iNumProc, iV2000 = 0; DWORD iCbneeded, i; HANDLE hProc; HINSTANCE hInstLib; HMODULE hMod; if((_szName = = NULL)) return FALSE; if((*_szName indx++) szToTermUpper[indx] = toupper(_szName[indx]); szToTermUpper[iLenP] = 0; / / PSAPI Function Pointers. BOOL (WINAPI *lpfEnumProcesses)( DWORD*, DWORD cb, DWORD*); BOOL (WINAPI *lpfEnumProcessModules)( HANDLE, HMODULE*, DWORD, LPDWORD ); DWORD (WINAPI *lpfGetModuleBaseName)( HANDLE, HMODULE, LPTSTR, DWORD ); if((hInstLib = LoadLibraryA("PSAPI.DLL")) = = NULL) return FALSE; / / Get procedure addresses. lpfEnumProcesses = (BOOL (WINAPI*)(DWORD