windows-vista

What is PnPUtil.exe location in 64bit systems?

假如想象 提交于 2020-01-12 09:38:41
问题 I would like to install my USB device driver [.inf file] using PnPUtil.exe utility on both 32bit and 64bit systems for Windows Vista and Windows 7. I tested on my machine [Windows 7 32bit] and everything was fine because PnpUtil.exe is located in: C:\Windows\System32\PnPUtil.exe . But in 64bit Windows 7 the utility is not in this directory. When I tried installing driver on different Windows 7 - 64bit machine I could found PnPUtil.exe in this location: C:\WIndows\winsxs\amd64_microsoft

Find out if Windows Defender disk scan is running

懵懂的女人 提交于 2020-01-11 10:23:07
问题 The Windows Defender disk scan takes a lot of performance from the system. Is there a way for a C# application to find out if the disk scan is currently running? 回答1: You can check for the processor load that MsMpEng.exe (Antimalware Service Executable) is currently producing. On my computer it runs with 50% CPU (one CPU core fully occupied) while observing an installation. It blocks an EXE or DLL file that my installer writes to disk for up to 25 seconds! (The installer is hanging, obviously

Unable to find an entry point named 'TaskDialogIndirect' in DLL 'ComCtl32'

烈酒焚心 提交于 2020-01-11 08:59:10
问题 We have a particular Vista x64 machine that, when running our C# WinForms app, displays the following error: System.EntryPointNotFoundException: Unable to find an entry point named 'TaskDialogIndirect' in DLL 'ComCtl32'. This same code works fine on other Vista machines. For some reason, this particular Vista machine always throws this exception. How can we fix this? 回答1: I had problems with this and Naughter's free XTaskDialog API, to get a fallback mechanism on Windows XP machines via

Set app to require elevation?

佐手、 提交于 2020-01-09 11:39:28
问题 I'm working on the bootstrap application of a new installer for some of our products. So far, I've been relying on two things that I read about somewhere: Applications whose name contains "setup" or "install" will run elevated by default. Applications that run elevated will launch other applications in elevated mode. Recent testing has found that one or both of these statements is false, because one of the applications that I'm launching is a third party installer that requires elevation, and

Set app to require elevation?

醉酒当歌 提交于 2020-01-09 11:39:28
问题 I'm working on the bootstrap application of a new installer for some of our products. So far, I've been relying on two things that I read about somewhere: Applications whose name contains "setup" or "install" will run elevated by default. Applications that run elevated will launch other applications in elevated mode. Recent testing has found that one or both of these statements is false, because one of the applications that I'm launching is a third party installer that requires elevation, and

Create Process with FS Virtualization Enabled

情到浓时终转凉″ 提交于 2020-01-07 04:19:10
问题 With UAC disabled, I need to create a process with the same characteristics as the process created with UAC enabled - basically I'm emulating process creation with UAC enabled. My only roadblock is virtualization. The sample code below should create an instance of notedpad at medium IL with virtualization enabled. In actuality, it creates an instance of notepad at medium IL with virtualization disabled. I'm not entirely sure why the virtualization token is being ignored. Any ideas? BOOL bRet;

Unable to obtain profile of connected network in Vista/7

半世苍凉 提交于 2020-01-06 07:27:14
问题 I have a piece of code implemented using the Managed Native WiFi. It is used to obtain the profile details of the connected network for displaying on screen. // Start the wireless configuration service if it is stopped startservice(); WlanClient client = new WlanClient(); bHasWiFi = false; string strConnectionStatus = Constants.BlankString; // Enumerate all interfaces foreach (WlanClient.WlanInterface wlanIface in client.Interfaces) { bHasWiFi = true; strConnectionStatus = wlanIface

Unable to obtain profile of connected network in Vista/7

≯℡__Kan透↙ 提交于 2020-01-06 07:26:10
问题 I have a piece of code implemented using the Managed Native WiFi. It is used to obtain the profile details of the connected network for displaying on screen. // Start the wireless configuration service if it is stopped startservice(); WlanClient client = new WlanClient(); bHasWiFi = false; string strConnectionStatus = Constants.BlankString; // Enumerate all interfaces foreach (WlanClient.WlanInterface wlanIface in client.Interfaces) { bHasWiFi = true; strConnectionStatus = wlanIface

Why I receive a message from the Program Compatibility Assistant?

痴心易碎 提交于 2020-01-05 04:37:09
问题 The setup of my own program produce after finish a message from the "Program Compatibility Assistant" that the program was not installed correctly but it is all correctly. The same problem I have with the uninstaller. The problems occur under Vista. I use launch4j. Why occur this message? How can I eliminate this message that my customer does not see it? 回答1: The problem occur if you does not change any in the registry and/or the directory "program files". To solve this you need to do some

GUI design issues using C++ , Qt on Windows (Vista)

和自甴很熟 提交于 2020-01-04 13:50:13
问题 This concerns C++ (MinGW), Qt, Windows Vista: all this while i's developing non-GUI applications in C++. Recently i decided to try a GUI one in Qt and am having some design issues. Here's the problem: step 1: Load and display a background gif Animation using QMovie... step 2: process huge dump files (over 2GB's)....so when i reached step 2 expectedly my GUI froze.. i was using while(getline(inputFileStream,stringLine)) {...} so i placed QCoreApplication::processEvents(); inside the loop. The