China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-04 20:35
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Show Quick Launch from the command line View 960 Replies 0
Original Poster Posted 2007-05-29 05:34 ·  中国 广东 茂名 电信
初级用户
Credits 42
Posts 23
Joined 2006-02-13 04:23
20-year member
UID 50270
Status Offline
A problem I ran into today, and I saw others had run into it too

http://www.cn-dos.net/forum/viewthread.php?tid=28997&fpage=1&highlight=%E5%BF%AB%E9%80%9F%E5%90%AF%E5%8A%A8

Hehe

I searched a bit, and there isn't much information on Baidu or Google

There is a way to modify the registry, sigh, not good

I got lucky and found a tool, don't know who wrote it

I'll offer it up to everyone then, hehe :)

Usage

C:\>toggleql 1 show Quick Launch

C:\>toggleql 0 do not show Quick Launch

Download: http://allyesno.gbaopan.com/files/b9dfe9e6e7de445f98a78c7c18774e7f.gbp



// toggleql.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>
#define WMTRAY_TOGGLEQL (WM_USER + 237)

VOID PrintUsage()
{
wprintf(L"\nToggleQL 1 | 0\n\n");
}

#define UI_CHECKERR(b) \
if (!(b)) \
{ \
PrintUsage(); \
return; \
}

void wmain(int argc, _TCHAR* argv)
{
ULONG NewState;
UI_CHECKERR(argc==2)
UI_CHECKERR(sscanf(argv,"%lu",&NewState))

//Make sure that it's either 1 or 0.
NewState = (NewState) ? 1 : 0;
SendMessage(FindWindow(L"Shell_TrayWnd", NULL),WMTRAY_TOGGLEQL,(WPARAM)0,(LPARAM)NewState);

}



[ Last edited by pighead123 on 2007-5-29 at 05:41 AM ]
我是allyesno 帐号忘记密码了 妈的
Forum Jump: