taskmanager

How can I prevent my Android app/service from being “killed” from a task manager?

末鹿安然 提交于 2019-11-28 17:58:04
It is very important that my service stay running until someone with a password stops the service from my UI screen. My app runs great but it is designed to be turned on/off by parents (with a password) on their kids phones. I have managed to make everything work but the problem I'm having is that if the kid uses a task manager to kill my service then my app is useless. I would be grateful to anyone who knows a way to either 1) monitor the service and start it back up automatically if its "killed" or 2) prevent someone from being able to kill it except from the activity (administration screen)

Current memory usage display is always ~14MB more than task manager

六眼飞鱼酱① 提交于 2019-11-28 12:14:26
问题 I'm currently using the code in this answer, with some slight modifications as suggested in the comments. However, no matter how many objects I allocate in memory, the listed memory usage is always ~14MB more than what task manager lists. Why could this be? std::stringstream ss; PROCESS_MEMORY_COUNTERS_EX pmc; GetProcessMemoryInfo(GetCurrentProcess(), (PROCESS_MEMORY_COUNTERS*)&pmc, sizeof(pmc)); SIZE_T physMemUsedByMe = pmc.WorkingSetSize; ss << "\nMEM: " << (physMemUsedByMe / 1024 / 1024) <

Is it possible to hide winform in TaskManager application tab?

♀尐吖头ヾ 提交于 2019-11-28 07:45:16
I'm writing a transparent WinForms app and I want to hide the app from showing in Task Manager's applications tab. I'm OK with the fact that it will show in Processes (in fact it should). If I set: this.ShowInTaskbar = false; it only hides from taskbar. Full code i have i have a timer made from labels public Form1() { InitializeComponent(); this.BackColor = Color.LimeGreen; this.TransparencyKey = Color.LimeGreen; Timer time = new Timer(); time.Interval = 1000; time.Tick += new EventHandler(time_Tick); time.Start(); this.ShowInTaskbar = false; } void time_Tick(object sender, EventArgs e) {

How to hide C# application from taskmanager processtab? [duplicate]

谁说我不能喝 提交于 2019-11-28 00:36:39
This question already has an answer here: How do I hide a process in Task Manager in C#? 16 answers I need to hide my C# application from process tab of Taskmanager using this.ShowInTaskbar = false; I have hide it from application tab. Now I need to hide it from process tab. Is this possible?. Jeremy Thompson You could inject a DLL into the svchost process, that would camouflage it from Task Manager but not from ProcessExplorer. Here's how: How To Inject a Managed .NET Assembly (DLL) Into Another Process Here's some more background info on this technique: Three Ways to Inject Your Code into

C# Get RDC/RDP and “Console” Session information

◇◆丶佛笑我妖孽 提交于 2019-11-28 00:35:14
问题 I'm trying to retrieve some RDC/RDP and "Console" login information programmatically via C#. I want to develop a simple console application (.EXE) such that I can retreive the information from Task Manager -> Users Tab of any remote computer on our domain (Windows Server 2003 x86, or 2008R2 x64). This shows if a person is logged onto the server directly (i.e. the Console) or over RDC/RDP (including the client if it is still active) or disconnected if it is "suspended" (i.e. they have not

How can I set the Task Manager description for my program?

故事扮演 提交于 2019-11-28 00:31:22
问题 I have a CLI program and I'd like to modify the description shown for it in Windows Task Manager. I tried setting Description in the Assembly Info , but this only changes the .exe's Properties > Details . 回答1: Under the Project properties, click Assembly Information and set the Title field. You'll have to run without debugging to see the description display correctly in Task Manager. 回答2: I think, if in AssemblyInfo: [assembly: AssemblyProduct("")] and [assembly: AssemblyTitle("")] both are

How do I configure group policies using C#?

旧时模样 提交于 2019-11-27 19:28:01
问题 How can I manipulate group policy based restriction for the controlpanel and the taskmanager in C#? 回答1: Have a look at WMI. Here is a link to an article on WMI Group policy objects: http://msdn.microsoft.com/en-us/library/aa375082(VS.85).aspx This tool will generate example c# code for you: WMICodeCreator 回答2: you can use Registry key to restriction task manager and control panel easily! 回答3: There is some information on how to edit GPO Registry settings available here: http://msdn.microsoft

How to interpret Windows Task Manager?

半城伤御伤魂 提交于 2019-11-27 11:52:46
I run Windows 7 RC1, which uses the same WTM from Vista. When i look at the processes, there some columns I'm not sure what the differences are: Memory - working set Memory - private working set Memory - commit size can anyone tell me what they are? Gordon Thompson From the following article , under the section Types of Memory Usage : There are two main types of memory usage: working set and private working set. The private working set is the amount of memory used by a process that cannot be shared among other processes, while working set includes the memory shared by other processes. That may

How can I prevent my Android app/service from being “killed” from a task manager?

主宰稳场 提交于 2019-11-27 10:56:44
问题 It is very important that my service stay running until someone with a password stops the service from my UI screen. My app runs great but it is designed to be turned on/off by parents (with a password) on their kids phones. I have managed to make everything work but the problem I'm having is that if the kid uses a task manager to kill my service then my app is useless. I would be grateful to anyone who knows a way to either 1) monitor the service and start it back up automatically if its

Programmatically disabling Taskmanager using c#

笑着哭i 提交于 2019-11-27 07:03:03
问题 I am working on a Kiosk application, I need to disable the taskmanager. So that when the user press [Ctrl + Alt + Del] and [Ctrl + Shift + Escape], the taskmanager should not pop up. How? 回答1: You can do it by changing the group policy settings. public void KillCtrlAltDelete() { RegistryKey regkey; string keyValueInt = "1"; string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"; try { regkey = Registry.CurrentUser.CreateSubKey(subKey); regkey.SetValue("DisableTaskMgr