windows-7

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

Service wont start under Windows 7: FAILED 1053

混江龙づ霸主 提交于 2020-01-06 06:05:47
问题 I wrote a C++ service that functions perfectly under Windows XP but fails to start in Windows 7. SC CREATE returns success, however, SC START returns FAILED 1053: The service did not respond to the start or control request in a timely fashion. From what I understand this is caused by timeout, but I receive the error immediately. Is this a problem with my service code or some setting in 7? Does Windows 7 send service control requests differently then XP? If so, how would I go about catching

How to get a serial number of a Windows disk?

☆樱花仙子☆ 提交于 2020-01-06 06:02:15
问题 I'm trying to get a serial number of a disk, using IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER: HANDLE h = CreateFile ("\\\\.\\PhysicalDrive0", GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_WRITE_THROUGH | FILE_FLAG_NO_BUFFERING, 0); if (h != INVALID_HANDLE_VALUE) { struct { USHORT Reserved; USHORT SerialNumberLength; UCHAR SerialNumber[252]; } dsn; DWORD nr; memset(&dsn, '\0', sizeof dsn); if ((DeviceIoControl(h, IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER, NULL, 0,

PnP-X and automatic installation of network storage to Windows 7

瘦欲@ 提交于 2020-01-06 03:37:24
问题 I tested successfully with Linux by using Avahi(Bonjour) and Netatalk(AFP) to provide network storage to Mac OS X seamlessly (as like Time Capsule). I want to make one another question for Windows 7. As I searched Windows 7 uses PnP-X and UPnP to provide Bonjour like zero configuration experience. What I want to achieve is: Use Samba on Linux to share one folder Publish this shared folder as NAS service by using PnP-X and UPnP If a Windows 7 PC attached to the LAN which have the Linux it will

Trouble Installing SimpleCV

拈花ヽ惹草 提交于 2020-01-06 03:28:05
问题 I am trying to install SimpleCV on Windows 7 with Eclipse Indigo. I used the superpack-installer with Python, Numpy etc. Everything works fine except for SimpleCV, when I try to import SimpleCV I get the following error output: import SimpleCV File "build\bdist.win32\egg\SimpleCV_init.py", line 3, in # $Id$ File "build\bdist.win32\egg\SimpleCV\base.py", line 31, in File "C:\Python27\lib\site-packages\scipy\spatial_init.py", line 25, in from kdtree import * File "C:\Python27\lib\site-packages

Is directshow.net video input device filter enumeration broken (in newer environments)?

随声附和 提交于 2020-01-06 03:06:32
问题 Every example in the directshow.net samples folder (marked "2010-February") compiles fine, and those that play videos from files work great. However, every example that tries to enumerate the FilterCategory.VideoInputDevices always fails to find any of my filters, specifically DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice); always returns that I have no devices. This same problem occurs for me in every other program that uses directshow.net, like touchless and the various examples

Windows 7 - UAC - VB6 - Text File Can't Be “Seen” By Application

我的未来我决定 提交于 2020-01-06 02:26:08
问题 We've got a VB6 application that reads a simple text file with a .LIC file extension. When everything is working correctly, if the file exists in the same directory as the executable, it reads it. If not, it does other stuff. I've got a customer with Windows 7 machines, and if he right-clicks the EXE and "Runs as Administrator" it "sees" the LIC file. If he runs the EXE as a basic user, the LIC file cannot be seen. I've had enough issues with UAC to guess that UAC is running the application

Manipulating windows from other applications in Java

孤者浪人 提交于 2020-01-06 02:21:09
问题 I want to write a Windows 7 Window Manager in Java, but there are some issues. First of all, how do i manipulate the size and position of a window that doesn't belong to my own application? In other words, how can I manipulate the windows of other applications? And, related to my first question, is it possible to get a list of all current windows? And, the last question: is Java suited for this task or should I take a look at C#? 回答1: First: Java is probably not the best suited language for

How to check service startup type from batch script? (in windows 7)

岁酱吖の 提交于 2020-01-06 01:16:20
问题 I need to start a service from batch file (using sc start XXX ), but ONLY if it is configured with an automatic start up type. I read the instructions of sc /? and I tried calling first to sc qc XXX command in order to query for it's configuration and then use findstr on the result, but I got the following error after sc qc XXX command: [SC] QueryServiceConfig FAILED 122: The data area passed to a system call is too small. [SC] GetServiceConfig needs 718 bytes The specified service does not

windows 7 control playback volume of microphone

被刻印的时光 ゝ 提交于 2020-01-05 19:08:32
问题 I was trying to adjust playback volume level of microphone; but unfortunately I couldn't. I can control recording volume of microphone by using NAudio library but I want to control playback volume. Is there any way to control microphone playback volume on windows 7. Either C++ or C# solution is acceptable for me. Here are some attempts to solve my problem: http://www.computercabal.com/2010/11/mute-microphone-from-c-on-windows.html (This guy wrote a small library that can mute microphone