controlpanel

Changing Power Scheme settings through Registry instead of Control Panel in Windows 7

笑着哭i 提交于 2021-01-20 20:24:05
问题 I'd like to change the settings of a power scheme (say, go to sleep after 45 minutes instead of 30) through the registry, rather than the control panel, in Windows 7. I'd also like to turn hot keys off the same way. Any suggestions how I do it? 回答1: I suspect this would be non-trivial due to the complexity of the power management architecture (schemes etc) & its always better to go through an abstracted API rather than fiddling with the underlying configuration data. If you dont want to use

Changing Power Scheme settings through Registry instead of Control Panel in Windows 7

落爺英雄遲暮 提交于 2021-01-20 20:22:21
问题 I'd like to change the settings of a power scheme (say, go to sleep after 45 minutes instead of 30) through the registry, rather than the control panel, in Windows 7. I'd also like to turn hot keys off the same way. Any suggestions how I do it? 回答1: I suspect this would be non-trivial due to the complexity of the power management architecture (schemes etc) & its always better to go through an abstracted API rather than fiddling with the underlying configuration data. If you dont want to use

Xampp - Apache Shuts Down Unexpectedly, Empty Log File And No Events

不想你离开。 提交于 2020-03-21 10:59:29
问题 I have XAMPP installed on my machine. I am trying to run Apache from the XAMPP Control Panel. I start the XAMPP Control Panel by right-clicking the shortcut and selecting "Run as administrator" (I am logged in on an account with Administrator privileges). The Control Panel starts up and everything appears to be in order (no error messages/warnings). When I click the Start button next to Apache I get the following error message: 2:22:44 PM [Apache] Attempting to start Apache app... 2:22:45 PM

Android BluetoothPAN to create TCP/IP network between Android device and Windows7 PC

不打扰是莪最后的温柔 提交于 2020-01-06 14:12:41
问题 Question 1) I'm trying to create a TCP/IP connection between Android device and a Windows 7 PC. For this purpose, I'm using Android's hidden BlutoothPan class using Java reflection API. Here is the code: private void invokeConnectMehotd() { String sClassName = "android.bluetooth.BluetoothPan"; try { Class<?> classBluetoothPan = Class.forName(sClassName); Constructor<?> ctor = classBluetoothPan.getDeclaredConstructor(Context.class, ServiceListener.class); ctor.setAccessible(true); Object

Cron job in a different timezone

余生颓废 提交于 2019-12-29 06:15:11
问题 Is there a way of setting up a cronjob for a specific timezone? My shared hosting is in USA (Virginia) and I am in UK. If I set a cron job to be executed at 1600 hrs every friday, then it will execute when its 1600 in Virginia. I was wondering if I can setup my cronjob in such a way that it understands which timezone to pick. I am not too worried about daylight saving difference. I have asked my shared hosting providers about it and they said I should be able to set the timezone in some cron

How to query Windows Control Panel Programmatically?

允我心安 提交于 2019-12-24 14:55:25
问题 I need to search the entire Windows Control Panel for a string (just like windows search from start menu or control panel explorer) in C++ MFC, anyone could help me? I've already tried to search within the control panel virtual folder but doesn't work... EDIT: It Works NOW! but only if compliled to the proper plataform (x86 or x64) (x86 dosen't work on x64 SO) void CSearchView::BuildControlPanelCache() { CComPtr<IShellFolder> pDesktop; SHGetDesktopFolder(&pDesktop); PIDLIST_ABSOLUTE path;

Control Panel Settings from Command Line

不羁的心 提交于 2019-12-24 11:47:34
问题 I'm looking for a way to make a Registry Change take affect right away. Specifically the value I want to touch is: HKEY_CURRENT_USER/Control\ Panel/Desktop/WindowArrangementActive When you change this setting directly from the Control Panel it takes effect immediately, but when I'm changing it manually, it is not registered before rebooting. I'm trying to make a script to disable/enable window snapping in Windows 10. I've currently tried running the following command after the change with no

How do I make a Delphi control panel applet be non-'legacy'?

放肆的年华 提交于 2019-12-23 17:02:41
问题 I have a Delphi .CPL currently written with Delphi 7 which needs to update settings in HKLM (to be used by a service application) and which must support Vista, Win7 and Server 2008. Currently this can be done by adding a RUNASADMIN value to AppCompatFlags/Layers, using the CPL file as the value name. This causes Windows to ask for elevation for a 'legacy control panel applet'. I need to find a way to build the CPL in Delphi 2010 without it appearing to be 'legacy' and, if possible, not to

How to programmatically open control panel?

自古美人都是妖i 提交于 2019-12-21 17:49:21
问题 How do I open a custom control panel programmatically, like custom.cpl? Specifically, how do I open a 64-bit cpl when running as 32-bit application? 回答1: Vista added support for canonical names so you don't have to hard code dll filenames and tab indexs Example: WinExec("%systemroot%\system32\control.exe /name Microsoft.WindowsUpdate", SW_NORMAL); (Names are always in english) See MSDN for a list XP/2000 supports "control.exe mouse" and a few other keywords, see the same MSDN page for a list

How can you programmatically turn off or on 'Windows Features'

匆匆过客 提交于 2019-12-19 06:03:31
问题 Currently, users must go into Control Panel > Programs > Turn Windows features on or off, then click on the check the box of the feature that they want to activate. I'd like to give them the ability to do this from my application. Any idea on how to automate this process via .NET (preferably in C#)? 回答1: I do this using NSIS for IIS using : $Sysdir\pkgmgr.exe /n:$Temp\iis7Unattend.xml You can call the pkgmgr program from your c# program and usually you would create an unattend file with the