windows-7

User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)

≡放荡痞女 提交于 2019-12-06 06:07:44
From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to C:\mounted_XPEmbedded\ ). (This is an administrative utility that runs on the Vista workstation that maintains files on the XP Embedded workstation, which is part of a larger device.) I can see the XP Embedded computer from the Vista workstation. For example, I can ::getnameinfo() to resolve the XP Embedded computer's name from its IP address. However, all calls to

how can i set the value of Minimum (Maximum) Processor state

喜你入骨 提交于 2019-12-06 05:58:40
Under Win7, open Control Panel -> Power Options -> Advanced Settings->Processor power management. you can see Minimum Processor state, Maximum Processor state. I have get the value by powercfg command using C#. Now,I want to set the value of Processor state by C#. For example the old value is 5%,execute the programe,update the value to 10%. I have search the powercfg help document,there are no such command to do this. How can I achieve this? I could only recommend calling WriteProcessorPwrScheme using PInvoke. Windows API Code Pack for .NET has some power management functions but probably not

Taskbar icon with lwjgl?

不想你离开。 提交于 2019-12-06 05:54:35
问题 I want to add a taskbar icon for my running lwjgl process on Windows 7. Display.setIcon changes successfully the icon in the topleft of the window, but not in the taskbar. What do to? My code, something like: ArrayList byteBuffers = new ArrayList(); byteBuffers.add( ImageHelper.loadImageAsIconImage("stickmanicon32x32.png") ); byteBuffers.add( ImageHelper.loadImageAsIconImage("stickmanicon16x16.png") ); System.out.println( "taskbaricon result: " + Display.setIcon(byteBuffers.toArray(new

VB6 Manifest not working on Windows 7

放肆的年华 提交于 2019-12-06 05:38:46
问题 I have created a manifest file for a VB6 application that is running on Windows 7 (not for any visual style changes, just to make sure it accesses the common registry and not a virtualised one) The exe name is Capadm40.exe, the manifest is named Capadm40.exe.manifest and contains the following: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name=

Python: How to start a process with Administrator Permissions?

只愿长相守 提交于 2019-12-06 05:35:10
问题 I am starting the following script from a Windows 7 command line with administrator permissions: import win32com.client import time import SendKeys import os from ctypes import * shell = win32com.client.Dispatch("WScript.Shell") os.startfile("C:\...exe") I have also assigned the feature 'Run this programme as an administrator' to python.exe under Properties > Compatibility > Privilege Level. This did not change anything. The programme still behaves differently when opened this way to how it

How to programmatically detect when the OS (Windows) is waking up or going to sleep

你说的曾经没有我的故事 提交于 2019-12-06 05:31:35
问题 Background My son likes to use his laptop when he's not supposed to and I just thought it would be handy if I could write an application that would email me whenever he opened / closed his laptop. (I'd even settle for something that notified me when there was network traffic on the machine) Question How do you programmatically detect when an OS is waking up or going to sleep? I found this link from this related post. But that covers OS X. I'm looking for the same thing for Windows 7. (I'd

Communicating to a C++ program from java

和自甴很熟 提交于 2019-12-06 05:29:27
问题 I want to execute a external .exe program from within java. The .exe is a CLI application which takes input in runtime( scanf() ) and outputs depending on the input. I can call the program to execute from java using Process p = Runtime.getRuntime().exec("cmd /c start a.exe"); instead of Process p = Runtime.getRuntime().exec("cmd /c start a.exe"); But I think it is also possible to call a program from within java. I have my whole program written in C++ just need a GUI which is written in java.

Windows 7 Jump-List (Windows Forms, C#)

余生长醉 提交于 2019-12-06 05:28:46
问题 Does anybody know how to customize the Windows Jump-List feature related to my own application in C#? I know it can be done, but I cannot find anything C#/Windows7 related on MSDN yet. The only info related to W7 and C# I can find so far is just compatibility junk which I've already read. Thanks all Baeltazor 回答1: You can do this with the Windows API Code Pack There is a sample in Samples\Shell\TaskbarDemo\CS which shows you how to customise the Jump List and icon. 来源: https://stackoverflow

Android studio: emulator-x86.exe stopped working after creating the window for the emulator

早过忘川 提交于 2019-12-06 05:26:36
I just installed Android studio, and I am now trying to set up the device emulator. But it keeps crashing in the middle of invoke process. The error says: emulator-x86.exe stopped working in the middle of invoking I've tried to: Change the resolution of the device to 800X600. Reduce the size of the Ram by 512 MB. But it didn't work out. For example, below is the message be in the 'Run' panel in the Android Studio: C:\Users\VAIO\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd II_Nexus_5_API_16 emulator: device fd:596 HAX is working and emulator runs in fast virt

ClickOnce deployment CheckForDetailedUpdate throws an exception

丶灬走出姿态 提交于 2019-12-06 05:06:24
问题 I have an application that's running 24/7 without attendance. It's deployed via ClickOnce and needs to check and download updates by itself. It checks for updates at application startup and at scheduled time at night. When it does it on startup, it works perfectly fine. However, when it does it at scheduled time, it crashes. In both cases it's using exactly the same piece of code. It's running under Windows 7 and might have something to do with UAC. I'm thinking that maybe it cannot access