windows-7

disable online driver search on windows 7 programatically

和自甴很熟 提交于 2019-12-24 10:13:42
问题 I am working on a program that requires to install a driver for Plug and Play. My issue is that the first time the device plugs into, by default, windows 7 32-bit automatically search online for drivers that better match to device. As i observe, it takes too long (15m) to correctly install the driver. How can i turn off the automatic search on windows 7? Thank you for any useful information. 回答1: Apparently you do this through GPO, as described here: http://www.verboon.info/index.php/2010/12

I'm trying to get all the processes and applications that are currently running using Python on Windows 7

痴心易碎 提交于 2019-12-24 09:53:22
问题 I'm currently running Windows 7, and I'd like to be able to check whats going on programaticly using Python. How would I go about getting all the currently runing processes and applications? 回答1: Get the WMI module and then check out this cookbook for some simple examples. Note this is not the most efficient way, talking to the win32 api with ctypes is faster but much much more legwork. To list all currently running processes: import wmi c = wmi.WMI () for process in c.Win32_Process (): print

How can I find the physical address of a file?

笑着哭i 提交于 2019-12-24 09:47:59
问题 I'm using the GoAsm assembler on a Windows 7 - 64 bit OS and I'll be asking you a few (not so dumb) questions. First question : How can I find the physical address of a file ? Let's suppose file "Text.txt" is at the root of my C:\ partition. Is there a way to get the exact memory address where this file is ? Second question : Is it possible to call a routine which will just do like if I invoked a C function ? (i.e. : Consider a C function "WriteToScreen", is it possible to have the same

how to set REG_KEY_DONT_VIRTUALIZE flag in c#

雨燕双飞 提交于 2019-12-24 09:37:44
问题 My question is very simple, but i dint found an answer googling long time. How to set REG_KEY_DONT_VIRTUALIZE flag to registry key created by me (i.e. HKLM\Software\MyApp )? I want my program to be user-independent. Every user starting my app should have access to the same configuration options located in that location). Changing application manifest I can disable registry virtualization by running program as administrator, but I want normal user be able to run the program and read registry

Get sample of sound from stereo mix in Windows

∥☆過路亽.° 提交于 2019-12-24 09:20:46
问题 Is there a way in Windows using C# to record a sample of the stereo mix? In other words, record all pings, beeps and music being played via any application? I've had a look at NAudio which will record the microphone as it's source, but I can't figure out how to point it at Windows' stereo mix? Or, if anyone knows, any pointers on how to target and record sound from a specific application? For this I'm only concerned with Vista or Windows 7, as both the aforementioned operating systems support

This program has stopped working

泪湿孤枕 提交于 2019-12-24 08:55:10
问题 In a visual C++ mfc program, which I run on Wondows 7, I always get the error message This Program Has Stopped Working after I close the main dialog/exit the application. But it doesn't happen in Windows XP. Can anyone explain what the matter is and how to solve it? Thanks a lot. 回答1: It seems to be a general problem for both vista/7. Try this, it may work: http://thewinforums.com/topic/17070-resolvedprogram-has-stopped-working/ 回答2: My guess is that the program is trying to write to a file

Get the drive letter of a given volume?

笑着哭i 提交于 2019-12-24 08:34:46
问题 Given a hard drive volume name how can I get the drive letter using a batch file in Windows 7? 回答1: Using powershell: Get-WMIObject Win32_logicaldisk | where {$_.volumename -eq "<volumename>"} | select DeviceID 回答2: @ECHO OFF SETLOCAL SET "volname=System Reserved" FOR %%d IN (Z Y X W V U T S R Q P O N M L K J I H G F E D C B A) DO IF EXIST %%d:\. ( FOR /f "tokens=5*" %%L IN ('VOL %%d:^|FIND /i "drive"' ) DO IF "%%L"=="is" IF "%%M"=="%volname%" ECHO %%d is %%M ) GOTO :EOF Demonstrating how to

Sending WM_COPY from a Delphi app. to another process in Windows 7

怎甘沉沦 提交于 2019-12-24 07:34:32
问题 I have a Delphi (BDS 2006) application which sends keystrokes to QuickBooks accounting software to traverse QuickBooks forms (invoices), copy text from the current edit control to the Windows clipboard (to gather data), do some calculations based on the gathered data, and finally write results on the form by sending keystrokes. This application has been developed over a number of years, uses extensive (for me at least) Windows API techniques to identify the foreground window, focused window,

Sending WM_COPY from a Delphi app. to another process in Windows 7

旧时模样 提交于 2019-12-24 07:32:54
问题 I have a Delphi (BDS 2006) application which sends keystrokes to QuickBooks accounting software to traverse QuickBooks forms (invoices), copy text from the current edit control to the Windows clipboard (to gather data), do some calculations based on the gathered data, and finally write results on the form by sending keystrokes. This application has been developed over a number of years, uses extensive (for me at least) Windows API techniques to identify the foreground window, focused window,

Windows XP/7 copy FILE hook

…衆ロ難τιáo~ 提交于 2019-12-24 05:46:21
问题 There's a possibility to hook folder modification operations(copy, delete, rename and so forth), but unfortunately I need hook those operations applied to files. Any thoughts? Environment: Delphi XE2, Windows XP/7/2008 Thanks. 回答1: I know two options 1) You can hook the WinAPi functions like CopyFile and CopyFileEx creating a system wide hook, wrtting the hook yourself or using a API hook library like madCodeHook or Deviare API hook (I've used both libraries with great results.) 2) Writting a