|
I'm developing an application that needs to lock the desktop, taskbar, switching keys, ...
I'm hidding the desktop using the following code:
ShowWindow(FindWindow(NULL, "Program Manager"), SW_HIDE);
I'm hidding the taskbar using the following code:
ShowWindow(FindWindow("Shell_TrayWnd", NULL), SW_HIDE);
The problem arrives if the user double click the desktop area - the start menu appears !
I need to disable the mouse clicks in the desktop.
I used the following (hook) code in Win9x:
LRESULT CALLBACK MouseHookProc(int nCode, WORD wParam, DWORD lParam)
{
if (nCode >= 0)
if (wParam == WM_LBUTTONDBLCLK)
if (((MOUSEHOOKSTRUCT *)lParam)->hwnd == GetDesktopWindow())
return 1;
}
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
or
LRESULT CALLBACK GetMessageHookProc(int nCode, WORD wParam, DWORD lParam)
{
MSG *p = (MSG *)lParam;
if(nCode >= 0)
if ((p->hwnd == GetDesktopWindow()) && (p->message == WM_LBUTTONDBLCLK))
p->message = WM_NULL;
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
This works fine in Win9x but doesn't work in Win2K !
If I use the WH_MOUSE_LL in Win2K it works fine !
I would like to use the same code for Win9x and WinNT/2K.
Can anyone help me ?
|
|
|
|
|
I have converted our production server to 2003 Server and
have one website that is giving me fits. I am getting the
following error on a CreateObject("scripting.dictionary")
command. The error is
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
The call to Server.CreateObject failed while checking
permissions. Access is denied to this object.
I have found and followed the knowledgebase articles that
tell you to make sure IUSR_<servername> has read execute
acces to the msvbvm60.dll and it doesn't correct the
error. If I make IUSR_<servername> and member of the
administrator group it works. I have even tried to get
IUSR_<servername> full access to the C Drive and even that
doesn't work. Only thing that does work is to make the
user part of the Admistrator group and thas leaves a
security problem. Any ideas on how to fix the problem?
Please help
Thanks in advance,
Navneet
|
|
|
|
|
This object is implemented in the scrrun.dll library; you should ensure that the IUSR_ user has read and execute access to the System32 directory (I think).
The full access to C: had no effect, at a guess, because the Windows\System32 folder doesn't inherit its ACL from the parent. I can't test this theory right now because I don't have a Windows Server 2003 system handy.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I would suggest you right click on your c Drive and go to the security tab. In that see if the windows 2003 administrator is available. Go to the advance tab and see who the owner is. change the owner to the windows 2003 administrator. Add the user to this file in the security tab and give him rights.
Tarakeshwar
CCIE Q(Routing and Switching), MCSE Security
|
|
|
|
|
Hi Friends,
Is there any way to install office 2000 developer on named instance?
VikramS
|
|
|
|
|
Hi boys
any boady knows to lock a file ?
krishnadk
|
|
|
|
|
Hi,
I have an remote Win-XP box to which I need to connect (Means I want to log on to Win-XP box from Win 2000 Prof box) . How can I get connected on to it. I am on a box which has Windows 2000 Professional.
Came to know that Terminal services is not for Win-XP, Will WinVNC work?
Or any other way.
Thanks,
Prashant
|
|
|
|
|
If it's Windows XP Pro, go to Control Panel > System, Remote tab, and check 'Allow Users To Connect Remotely To This Computer'. You can now use Remote Desktop Connection[^] to connect to the PC. Remote Desktop Connection is basically the new name for Terminal Services Client.
XP Home doesn't offer Remote Desktop.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi guys
How we can recover a deleted file in windows. i think we can do it by changing some file table entry.
Help me if any one knows.
Thanks in advance
bye
i can do anything
|
|
|
|
|
What do you mean? By any software or by your software?
There are alot of utilities that can help you recovered deleted files. For example: GetDataBack, DiskEdit, iRecover, NU...?
|
|
|
|
|
I have a standard Win32 application ( MFC, SDI ) that I have written.
On most user's desktops, set to run at 1280x1024 with "small fonts", the application appears fine.
However, when the application runs on one user's machine the fonts appear larger than normal causing the application's window to not fit on the display without showing scroll bars.
I have verified her settings are 1280x1024 with "small fonts" like everybody elses ..
What else should I look at to determine why the application is behaving differently on her machine ?
|
|
|
|
|
You'd think something like this would be easy... but it has been a difficult journey so far. But anyway, I am simply trying to be able to run the MSDN installer from the command line, in an unattended mode.
I can mostly make it work with this gem:
msiexec /qb /i F:\msdn.msi SETUP_EXE=yes
(assuming F: is a CD or network share or someplace containing the MSDN install package.) That will always install it into C:\Program Files\MSDN, and I may or may not want it there. I want to be able to specify a target directory on the command line.
After some poking in the MSI package, I tried this, but to no avail:
InstallFolder=C:\Foo
I then found I can specify this property to make it work:
MSDN_QTR.3643236F_FC70_11D3_A536_0090278A1BB8=C:\Foo
There has to be a better way. I am worried that the identifier there is arbitrary and might change on me when the next MSDN comes out. Does anyone know a better or more reliable way of doing this??
Sometimes I feel like I'm a USB printer in a parallel universe.
|
|
|
|
|
Do you have a copy of ORCA or msi2xml?
This would let you look in the tables, and you could examine different MSIs from say, Jan and April, and see if the install folder is different. This will be in the properties table somewhere.
The trailing bit looks suspiciously like a GUID, so it may well change from release to release...
Steve S
|
|
|
|
|
Yes, I found it using ORCA. I should probably look in the April release (I used this one from the January release) to see if it changes... if it does, I guess I'm hosed.
Sometimes I feel like I'm a USB printer in a parallel universe.
|
|
|
|
|
This is odd. The PC I gutted last week, replacing the PII motherboard with a 3GHz P4, runs as slow as the old one. A bit of exploration revealed that the C: drive is operating in MS-DOS Compatibility Mode. That explains the slow operation, but none of the Technet Knowledge Base solutions applies to this unit. I've sorted through about 40 of the articles, and all talk about specific situations which are not applicable. Any other ideas?
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
Roger Wright wrote:
replacing the PII motherboard with a 3GHz P4
I can't say I've ever used a P4 as a motherboard for a PII system...
Seriously though, you might want to check the bios see if there is something in there. (Assuming this was the Win 98 machine you were talking about earlier) Could it be something with some of the P4 features that aren't compatible with 98? Is hyperthreading enabled?
Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
|
|
|
|
|
Matt Newman wrote:
Could it be something with some of the P4 features that aren't compatible with 98?
I doubt it, as I've seen a few systems using a P4 with Win98SE. Things just got weirder, too. I was working on another Win98SE PC today for an entirely different customer, and that one is running in MS-DOS Compatibility Mode, too! What the heck is going on here, some kind of plague?
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
MS-DOS Compatibility Mode can sometimes be caused by a boot-sector virus. Use a virus scanner.
My other suggestion is to use a modern operating system
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Although searching Technet has been futile, Google came up with some interesting tidbits. For one, if the PCI controller supports serialization between channels, and a CD-ROM driver is loaded from AUTOEXEC/CONFIG, the hard drive is forced to operate on Compatibility Mode. Another is a damaged MBR caused by an earlier virus infection - and I know that both PCs have had virus problems before. A third possibility is that, at some time in the past, the system failed to intialize 32-bit protected mode drivers for the drive controller. Once that happens, a NoIDE value is added to HKLM\System\CurrentControlSet\Services\VxD\IOS, and several entries of BAD_IDE are written in the Registry. If these are manually removed the system will attempt to detect a 32-bit driver again, but as long as they remain it will never try again.
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
I am not sure what the problem could be, but I am unable to bring up the IIS
web site properties. It won't come for the default web site as well as for
sub-webs. I have IIS 5.1 on XP Professional SP 1. I did install PHP earlier
today and am not sure if that might have caused any issues.
Any help is appreciated.
Now with my own blog - void Nish(char* szBlog);
My MVP tips, tricks and essays web site - www.voidnish.com
|
|
|
|
|
Sounds like maybe PHP's isapi dll was not installed correctly. You could try reinstalling php maybe that would clear it up. If not you could try uninstalling php then IIS, reinstalling IIS and PHP.
Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
|
|
|
|
|
|
Nishant S wrote:
I was hopin' there'd be an easier way out
Yeah, it would be my last resort too but I couldn't find anything else.
Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
|
|
|
|
|
Hi to all,
i have developed a Remote Desktop application.
The server in a Windows Service.
When i restart the PC, i send ctrl+alt+del from client, and then i must send the authntication data.
I'm not able to capture the login screen.
Can anyone suggest me a function to capture the login screen, or how i can log in my system by-passing the windows login window (not auto-login)
Thanks in advance
Davide Vitiello
|
|
|
|
|
Some time I can't delete files (avi) and I get the well known message:
Cannot delete file abcd.avi. It is used by an another process. Try closing any process using this file and try again"
But unfortunately, I don't have no process using this file, and trying to delete it at windows boot up don't succeed any more.
Do anyone have a utility forcing deleting.
thanks,
H.
|
|
|
|