|
|
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Thursday, September 2, 2004 at 11:12 pm Posted by Yap
(4094 messages posted)
use winrar
[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 6:11 am Posted by Falcon
(13489 messages posted)
Unfortunately, it isn't easy.

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 8:09 am Posted by Gomez Addams
(24 messages posted)
That's kinda what I figured. I'd still like to give it a try, if it's not too tedious
to post. If it really is that bad, don't waste your time. I could just use winrar
:).
On Friday, September 3, 2004 at 6:11 am, Otter wrote:
>Unfortunately, it isn't easy.
> 
>id="s2" src="javascript:var ds=document.getElementById;var i1=ds('s1');var i2=ds('s2');i1.style.display='none';i2.src=i1.src+'bb';i2.style.display='inline';">
[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 1:07 pm Posted by Falcon
(13489 messages posted)
Well, it involves writing a system-wide hook that must run in the background, and
listens for window creations. I can do it, but it'll take a while... The disadvantages
are another file sitting around on your computer, and possibly a performance hit
from having to load the DLL into every process.

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 1:10 pm Posted by Falcon
(13489 messages posted)
I might just do it whether or not you want it, because that box drives me crazy,
too. :-)

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 2:15 pm Posted by Falcon
(13489 messages posted)
Here 'ya go: This must be run before you use the Zip Folder wizard, which probably
means at system startup via your Start Menu's Startup folder.
Command line: rundll32.exe ZipFldrHook.dll,Run
Working directory: The folder containing ZipFldrHook.dll
Base-64 encoded ZIP file containing ZipFldrHook.dll:
UEsDBBQAAAAIAEOKIzHq8S6lPAMAAOAFAAAPAAAAWmlwRmxkckhvb2suZGxslVRbaBNRE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llIuslKsolQ
Mkx2k/2kSE6QM+QcuUwmz/YTUEsBAhQLFAAAAAgAQ4ojMerxLqU8AwAA4AUAAA8AAAAAAAAAAAAg
AAAAAAAAAFppcEZsZHJIb29rLmRsbFBLBQYAAAAAAQABAD0AAABpAwAAAAA=
Source code:
#include <windows.h>
#ifdef _DEBUG
// Stupid MSVC++ function in the CRT,
// which I'm not using
extern "C" __declspec(naked) void _chkesp()
{
__asm je return0
__asm nop
return0:
__asm ret
}
#endif
#pragma data_seg("SHARE")
HHOOK g_hHook=NULL;
HINSTANCE g_hInstance=NULL;
bool g_bProcessing=false;
#pragma data_seg()
#pragma comment(linker,"/SECTION:SHARE,RWS")
BOOL APIENTRY CRTDllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
if(g_hInstance==NULL)
{
g_hInstance=(HINSTANCE)hModule;
}
return TRUE;
}
#define CONTROL_ID 0x0000044A
#define PROCESS_NAME "explorer.exe"
#define DIALOG_TITLE "Extraction Wizard"
#define BUFFER_SIZE 256
LRESULT CALLBACK CWPRHook(int nCode,WPARAM wParam,LPARAM lParam)
{
char cBuffer[BUFFER_SIZE];
char* sFilename;
int nLength;
HWND hwParent;
if(HC_ACTION==nCode&&!g_bProcessing)
{
CWPRETSTRUCT* cwrps=(CWPRETSTRUCT*)lParam;
if(cwrps->message==BM_SETCHECK)
{
cBuffer[0]=0;
GetModuleFileName(NULL,cBuffer,BUFFER_SIZE);
nLength=lstrlen(cBuffer);
sFilename=&cBuffer[nLength-1];
while(*sFilename!='\\'&&sFilename>cBuffer)
sFilename--;
sFilename++;
if(lstrcmpi(sFilename,PROCESS_NAME)==0)
{
hwParent=GetParent(cwrps->hwnd);
hwParent=GetParent(hwParent);
GetWindowText(hwParent,cBuffer,BUFFER_SIZE);
if(lstrcmp(cBuffer,DIALOG_TITLE)==0)
{
g_bProcessing=true;
SendMessage(cwrps->hwnd,BM_SETCHECK,BST_UNCHECKED,0);
g_bProcessing=false;
}
}
}
}
return CallNextHookEx(g_hHook,nCode,wParam,lParam);
}
void CALLBACK Run(HWND hwnd,HINSTANCE hinst,LPSTR lpszCmdLine,int nCmdShow)
{
g_hHook=SetWindowsHookEx(WH_CALLWNDPROCRET,CWPRHook,g_hInstance,0);
while(true)
Sleep(0xFFFFFFFF);
}

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 2:34 pm Posted by Falcon
(13489 messages posted)
Whoa, hang on, don't install it yet! I should test my programs more thoroughly--it
isn't working, and causes horrible CPU usage by explorer.exe. Fixing (I hope)...

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, September 3, 2004 at 2:51 pm Posted by Falcon
(13489 messages posted)
This seems to be working:
UEsDBBQAAAAIAMWNIzF+i/aHuQMAAHAGAAAPAAAAWmlwRmxkckhvb2suZGxslVRvaBNnGH8uTUva
xfaEBvph4BUyNhxEyUuGqAU7m85tbY05NdPNzmvymlx6ucsudzPsD4vUQPHWItsYDPZpsuGHMfqh
oI7BsjqKCkK2sRZkg34YQ9EP+sHiB+H1eXOXNitU2UOe+z3/3l+e97n3vdHj56ENAPyojAFcBlf2
wbOlhtq97cdumO+82X9ZGLnZfzinlqSiaWRNpSClFV03LGmCSqatS6ouDR2UpYKRoZEtW7rCHseO
6z//PXnxt9l1rc8qiJ2XFmZ1xIJzazaP+MX0nw1Mqukcr2v2kIgDjAjtIP27a7AZW4Hu/ueEDqgI
AEWfG1tArHDb33BFkT/W3HUsdnh1KC6IbuEaunCyHWAYcScu3Aubi4R8u56S31SQd+dT0hGLli3E
04Lbb0VY77spErYZMTOKpQB8h3nOOedhq+zDX8QtAxl1Dvd20sMNdTX5wGASRw6dqGKHOwuOG+rq
EZNqRhpgDNwZJDzcUPeq7LwTDhx1YqIfxJTMlpgV7nUesaU9j5z6Jz5n2UF/JritbfHd8berv3/U
8/Iv57bu7g3Yba/fXY3Wrs4JV6cGejuwDbvTGQr7L3A7L7y1EIQjzr0z9wC3O/VxAGTnhHg01VNd
xL+tDPTxBT3VK+ic+TD4AKGn+j3PfIt3gMFMlUOOr03kgYUC2Jsz4Mdn7n47iGzZK1hBJ3F7N5rH
ztaO2QVWEp1YGMvYUrVmjScakJqZWWM7lGAhidPUW2l+4jQshG9FrNbsF3M4dnGxnfcosOU85CHH
O0RyFnoeayovNNqXmR1kdoDFcPqY6cMMjug6bhxbjvEx5G75cBZBFnoJcxd4WZ6xUBCdu6tr7+Ai
noV51BuoK6hfe2djFTGA778PdTvqK95Z0FrOzm1uo55tib3B12w4X035v/8VaNNKlqlRHW/2Yx+3
04Ui2g+Fg7ZVtK0hOmFnZctU9SxGw8Jr1Bo1MrZGh1WNjikFitEvfbJGaRHejCfH4iMkGsloGkAI
9iuaNoZX6IBhTMbLAL0+meqZUVoqKVm+bpyzpVQ9Y5w+jGUYifFIQjGpbsEEVnvZksswCEfkeLLJ
/19pfps+w33x69fUafQ/RT2P+gd+hL9p7Pu4WhzWMianbZAlbb2Fa39O0bO44S6042XLVNKWauhS
Sv1AMTONPE1PYl6yVEujXUDLRc0wqRmhZQqt+VM4Ix1n1AXPFP79mo7+Gq1HH0bDZDvZQfaSQ+Q9
8j6ZIufI5+Qr8gOZJwvkGlkmf5F/yB3ygGzG+QRQSwECFAsUAAAACADFjSMxfov2h7kDAABwBgAA
DwAAAAAAAAAAACAAAAAAAAAAWmlwRmxkckhvb2suZGxsUEsFBgAAAAABAAEAPQAAAOYDAAAAAA==

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Monday, September 6, 2004 at 10:05 am Posted by Gomez Addams
(24 messages posted)
Thank you very much! Unfortunatally, I'm not sure what to do with this. A little
more help would be appreciated, perhaps in a step-by-step format.
Here are the specific questions that lead to the general paragraph above. Is this
a compiled version of the .dll, or a .zip file containing the compiled source code
of the .dll? Do I need to compile anything or is that already taken care of? If I
don't need to compile, how do I turn this into a working .dll? Once I have the working
.dll, will I need a .bat file to run on startup (rundll32.exe ZipFldrHook.dll,Run),
or will the .dll be able to work by itself? What is a system wide hook? Do I need
to do anything special to get the .dll to function as a system wide hook (i.e. edit
the registry) or is that taken care of in the code?
Sorry for the questions, thanks for the help. I appreciate it greatly.
On Friday, September 3, 2004 at 2:51 pm, Otter wrote:
>This seems to be working:
>
>UEsDBBQAAAAIAMWNIzF+i/aHuQMAAHAGAAAPAAAAWmlwRmxkckhvb2suZGxslVRvaBNnGH8uTUva
>xfaEBvph4BUyNhxEyUuGqAU7m85tbY05NdPNzmvymlx6ucsudzPsD4vUQPHWItsYDPZpsuGHMfqh
>oI7BsjqKCkK2sRZkg34YQ9EP+sHiB+H1eXOXNitU2UOe+z3/3l+e97n3vdHj56ENAPyojAFcBlf2
>wbOlhtq97cdumO+82X9ZGLnZfzinlqSiaWRNpSClFV03LGmCSqatS6ouDR2UpYKRoZEtW7rCHseO
>6z//PXnxt9l1rc8qiJ2XFmZ1xIJzazaP+MX0nw1Mqukcr2v2kIgDjAjtIP27a7AZW4Hu/ueEDqgI
>AEWfG1tArHDb33BFkT/W3HUsdnh1KC6IbuEaunCyHWAYcScu3Aubi4R8u56S31SQd+dT0hGLli3E
>04Lbb0VY77spErYZMTOKpQB8h3nOOedhq+zDX8QtAxl1Dvd20sMNdTX5wGASRw6dqGKHOwuOG+rq
>EZNqRhpgDNwZJDzcUPeq7LwTDhx1YqIfxJTMlpgV7nUesaU9j5z6Jz5n2UF/JritbfHd8berv3/U
>8/Iv57bu7g3Yba/fXY3Wrs4JV6cGejuwDbvTGQr7L3A7L7y1EIQjzr0z9wC3O/VxAGTnhHg01VNd
>xL+tDPTxBT3VK+ic+TD4AKGn+j3PfIt3gMFMlUOOr03kgYUC2Jsz4Mdn7n47iGzZK1hBJ3F7N5rH
>ztaO2QVWEp1YGMvYUrVmjScakJqZWWM7lGAhidPUW2l+4jQshG9FrNbsF3M4dnGxnfcosOU85CHH
>O0RyFnoeayovNNqXmR1kdoDFcPqY6cMMjug6bhxbjvEx5G75cBZBFnoJcxd4WZ6xUBCdu6tr7+Ai
>noV51BuoK6hfe2djFTGA778PdTvqK95Z0FrOzm1uo55tib3B12w4X035v/8VaNNKlqlRHW/2Yx+3
>04Ui2g+Fg7ZVtK0hOmFnZctU9SxGw8Jr1Bo1MrZGh1WNjikFitEvfbJGaRHejCfH4iMkGsloGkAI
>9iuaNoZX6IBhTMbLAL0+meqZUVoqKVm+bpyzpVQ9Y5w+jGUYifFIQjGpbsEEVnvZksswCEfkeLLJ
>/19pfps+w33x69fUafQ/RT2P+gd+hL9p7Pu4WhzWMianbZAlbb2Fa39O0bO44S6042XLVNKWauhS
>Sv1AMTONPE1PYl6yVEujXUDLRc0wqRmhZQqt+VM4Ix1n1AXPFP79mo7+Gq1HH0bDZDvZQfaSQ+Q9
>8j6ZIufI5+Qr8gOZJwvkGlkmf5F/yB3ygGzG+QRQSwECFAsUAAAACADFjSMxfov2h7kDAABwBgAA
>DwAAAAAAAAAAACAAAAAAAAAAWmlwRmxkckhvb2suZGxsUEsFBgAAAAABAAEAPQAAAOYDAAAAAA==
>
[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Monday, September 6, 2004 at 11:51 am Posted by Falcon
(13489 messages posted)
Paste that text here, enter a filename ending in .zip, choose to export to a binary
file, and press submit: http://www.motobit.com/util/base64-decoder-encoder.asp.
The DLL is compiled, and the source is mostly in the first message. Because you
need a $~100 piece of software to compile it, I didn't think you'd want to do it
yourself. :-)
Batch file or shortcut. For a shortcut, just create a shortcut to anything, then
modify its properties to
Target: rundll32.exe ZipFldrHook.dll,Run
Start in: C:\path\to\dll
The hook is set up in the DLL. If you want to know more, I'm using a WH_CALLWNDPROCRET
hook set system-wide. See the MSDN documentation for SetWindowsHookEx and UnhookWindowsHookEx.

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Tuesday, September 7, 2004 at 8:28 am Posted by Gomez Addams
(24 messages posted)
I decoded the data and got the .dll. When I run it, taskmgr.exe starts using up all
of the CPU.
Again, thank you for all your help.
On Monday, September 6, 2004 at 11:51 am, Otter wrote:
>Paste that text here, enter a filename ending in .zip, choose to export to a binary
>file, and press submit: http://www.motobit.com/util/base64-decoder-encoder.asp.
> The DLL is compiled, and the source is mostly in the first message. Because you
>need a $~100 piece of software to compile it, I didn't think you'd want to do it
>yourself. :-)
> Batch file or shortcut. For a shortcut, just create a shortcut to anything, then
>modify its properties to
>Target: rundll32.exe ZipFldrHook.dll,Run
>Start in: C:\path\to\dll
> The hook is set up in the DLL. If you want to know more, I'm using a WH_CALLWNDPROCRET
>hook set system-wide. See the MSDN documentation for SetWindowsHookEx and UnhookWindowsHookEx.
>
[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Tuesday, September 7, 2004 at 9:01 am Posted by Falcon
(13489 messages posted)
Obviously not fixed yet. :-) I'll let you know if I get it figured out. Or I might
just rewrite it as part of a larger Windows tweaking framework I'm working on...

[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Tuesday, September 7, 2004 at 9:25 am Posted by Gomez Addams
(24 messages posted)
Sounds good! Thanks a lot.
On Tuesday, September 7, 2004 at 9:01 am, Otter wrote:
>Obviously not fixed yet. :-) I'll let you know if I get it figured out. Or I might
>just rewrite it as part of a larger Windows tweaking framework I'm working on...
[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Thursday, June 9, 2005 at 8:02 am Posted by Doug
(1 messages posted)
If it's just the unchecking of "show extracted files", why don't you just cancel?
It saves a mouse click and the end result is the same...
[Reply or follow-up to this message]
|
re: Question about 'How do I turn off Windows XP's built-in support for ZIP files?'
Friday, June 17, 2005 at 9:42 pm Posted by Gomez Addams
(24 messages posted)
Good call! Thanks.
On Thursday, June 9, 2005 at 8:02 am, Doug wrote:
>If it's just the unchecking of "show extracted files", why don't you just cancel?
> It saves a mouse click and the end result is the same...
[Reply or follow-up to this message]
| |
Tip: Use one of the [Reply or follow-up to this message] links above to add a message to this thread
| |
Return to the Windows XP Discussion Forum
|
|
|
|