|
Hi ,
I have a problem for which, I found no solution till now. Would be very happy if you could help me in this. This is in Windows OS.
I have a C# .NET windows application running. I go to TaskManager and kill the process. Now, I want my application to be aware of this killing.I tried all the WIN API's and events too but nothing is fired back to the application.
All these Closing and Handle destroying events are called only when I close the application.
Please help me in finding a solution for the same.
Thanks and Regards,
|
|
|
|
|
just curious, but why would you like to avoid one to kill the process ?
(is your code a virus like ? )
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You can't. Killing a process means the OS unceremoniously rips it out of memory. If an app were hung, and the OS notified it that it was being killed, then what? The app is hung and can't respond.
An app could also do all sorts of Bad Things in response (like a virus could run another copy of itself).
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
the best technique (and only technique ) for this i have seen is to run two processes, process_a.exe and process_b.exe
In each create and open a handle of the other process, and wait for close notification of the other process, when you get that notify, just shell the process again.
please dont send me a virus
[[[ sig goes here ]]]
|
|
|
|
|
Most viruses these days seem to be using this technique...
(Re.."In each create and open a handle of the other process, and wait for close notification of the other process, when you get that notify, just shell the process again."
)
How can it be countered .. programmatically or otherwise? Any ideas?
|
|
|
|
|
Hi Manivannan:
Itz by design. When you select 'End Process', did you go through the warning:
"Terminating a process can cause undesirable results including loss of data and system instability. The process will not be given a chance to save its state or data before it is terminated. Are you sure you want to terminate the process?"
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
is there any sw i can (re)define some own hot-keys?
i want to define all possible key actions (f.e. make arrow-up using win-u)
i like http://www.thewonderfulicon.com/ but seems is is not good enough for this (can't assing arrow-up)
|
|
|
|
|
Hi All, I am using Windows 2003 server and would like to make sure Dr. Watson
produces the appropriate log when a program crashes. I believe I have all
the setup done correctly. I ran a program that will crash and Dr. Watson produces
a log file that contains only the following 2 lines :
Microsoft (R) DrWtsn32
Copyright (C) 1985-2002 Microsoft Corp. All rights reserved.
Any suggestions on what needs to be done? Thanks.
|
|
|
|
|
I have a problem to connect to a remote SQL Server in WinXp SP2.
The error is "SQL Server does not exist or access denied".
I've done almost all of the solutions that are recommended in Microsoft support service.
I added sqlservr.exe program into the exception list of firewall included with XP SP2.
I added 1433 (TCP) and 1434 (UDP) ports into that exception list as well.
Even I disable XP SP2 firewall. but I got the problem again.
Finally I installed SQL Server Service Pack 3a but unfortunately the problem is still exist.
I really don't know what should I do after doing all of the above tasks.
Is there anybody here who can solve this problem?
Thank you in advance.
|
|
|
|
|
did you created a user account on your sql server to connect to ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi, I have a problem with my computer boot device priority. I have set the boot device as the following order.
1. CDROM.
2. Floppy A:.
3. Hard disk.
4. From network.
But when I first start the computer, it usually boot from the network. Unless I restart the computer again then it start to boot from the hard disk drive. I'm sure that when I exit the CMOS I already save the change to the configuration. But when I turn off the computer the computer and start it again. I try to check the battery and i found it run goods (the clock run correctly). I don't know where is the problem come from, does anybody have any idea?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Dear
I also face this problem....The problem is actually in Jumper Setting...Check the Jumper setting near your CMOS.....change the setting of jumper and save the CMOS setting in SETUP.....
A jumper is usually set to not save the CMOS change so that a user may not change accidently.....
bye
Saifi Hazarvi
Pakistan
|
|
|
|
|
Thank you very much for your comment. I already check it and found the reason is not from the jumper. The reason is the battery of CMOS is low. Now I laready chang the battery of the CMOS of my laptop.
|
|
|
|
|
|
Yes, it came from the batter of the CMOS that is low. Now i already change it.
|
|
|
|
|
Hi guyz,
What has occurred in my system today is the nuisance that I whenever hit the Ctrl+Alt+Del from the keyboard to open up the "task manager" it reports a message box saying "Task Manager has been disabled by your Administrator",whereas I being the administrator have had done nothing such(My OS is Windows XP).That's why I can't open up the task manager anymore.For your information I have checked for viruses with Norton Antivirus.It had reported some adware threats which it was unable to delete,might they had been running background,but I also did not find them as I was unable to open the task manager.Next, I took the repair wizard from the Windows XP installation CD ,but to no avail.
Now I have found an extra problem,my desktop is not working i.e.,I am unable to click the icons on the desktop.
Anyone knowing even little about the solutions please let me know . lt;/
|
|
|
|
|
first, keep you antivirus up to date.
second, cut off you interenet connection, and run a scan of you whole computer.
then, try to repair the infected files with norton AV, otherwise, click on the virus name (presented in the report) to go to the symantec webpage of that malicious threat, and find the section (on that page) called "removal information"... (it explains how to remove the viruses, tojans and so from your system).
follow the procedure for each threat on your PC.
you could also try to scan your computer with Ad-Aware for spy-wares...
if you think you cannot do this with your current session, reboot and launch a Safe-Seesion Windows (after booting, press F8)
for the task manager, try Ctrl+Shift+Esc... but i doubt it will work if you cannot access it via Ctrl+Alt+Del
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Try running it directly:
Start|Run|taskmgr.exe|Enter
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
|
Try to download windows defender[^], install it and update the virus definition for both anti-virus and windows defender. Disconnection your computer from the network and try to scan it.
Note: Try to identify the virus name of spyware name, then you would be able to delete it from your computer by search on the search engine to find the tool to kill it. After your computer is clean, try to update the security path from the Microsoft windows update website.
|
|
|
|
|
I need some help to switch keyboard layout (or language) programically. The idea is to have a UI with a set of textbox and I know with what language the user should write in each field. So as the focus is taken by the specific field I would like to set the language accordingly. I have no preferences for language etc. I will finally be implementing it in VB6 but even some WinAPI or COM solution will do. So I didn't really know where to post this one. I put it here since it seemed more general on OS.
Atanas
|
|
|
|
|
Dear
would you like to tell me that can we change Regional Language Support by Code...
Saifi Hazarvi
Pakistan
|
|
|
|
|
I found a way at least (although you have to be careful since it works only for the current thread - at most process). Check up the WinAPI functions:
ActivateKeyboardLayout
LoadKeyboardLayout
GetKeyboardLayout
GetKeyboardLayoutName
GetKeyboardLayoutList
I think that would be enough.
|
|
|
|
|
Hello,
I'm trying to read web pages from a command line program/script.
Basically, I wanting the equivalent of "type http://www.microsoft.com/default.htm"
or "copy http://www.microsoft.com/default.htm c:\"
I'm not allowed to use any 3rd party utilities, even if they're freeware.
Can anyone suggest a VBS, KIX, Perl or native command line method of looking at webpages?
thanks in advance!
|
|
|
|
|
HELP...!!!
Can any one show me the interface of Gina in XP??
I define my own MyGina.dll in XP and replace System's gina.dll ,but when i login,it meet bluescreen error ??what's wrong with this?? it works correctly in 2000 and 2000/server,
is there any more interface in Xp than in 2000?what are they??
|
|
|
|