windows-vista

WMI - Directly accessing the singleton instance of Win32_OperatingSystem

佐手、 提交于 2019-12-07 16:32:54
问题 I've having trouble directly accessing the Win32_OperatingSystem management class that is exposed via WMI. It is a singleton class, and I'm pretty certain "Win32_OperatingSystem=@" is the correct path syntax to get the instance of a singleton. The call to InvokeMethod produces the exception listed at the bottom of the question, as does accessing the ClassPath property (commented line). What am I doing wrong? [I'm aware that I can use ManagementObjectSearcher/ObjectQuery to return a collection

Desktop problem with using CreateProcessAsUser from a service on Vista

回眸只為那壹抹淺笑 提交于 2019-12-07 14:32:33
问题 I am using VC++ to create a process from a service on Vista using CreateProcessAsUser. The process creation is succeeding when i execute this code by login on the machine locally. The same code is failing when I am using Remote Desktop (mstsc) to login in to my machine from another machine and launch my App. I can understand that when I do remote login the active desktop is taken as that of Remote Desktop. Can some one help me how to get the desktop name that of currently login users desktop

How to develop using WIA 1 under Vista?

女生的网名这么多〃 提交于 2019-12-07 14:07:56
问题 I'm using VS2008 SP1 under Vista SP1. My .Net-program uses a COM reference to WIA (Microsoft Windows Image Acquisition Library v2.0). I'm using CommonDialogClass.ShowAcquireImage to scan a document and it's working fine. One of my customers is running XP. As I understand WIA, under XP you have to use WIALib (WIA 1.0). Is it possible to develop under Vista using WIA1? 回答1: MS does allow you to download the WIA 2.0 library for XP here. That way your customer can use your app as is. Also, I like

How do I Access File Properties on Windows Vista with Python?

两盒软妹~` 提交于 2019-12-07 13:01:11
问题 The question is as simple as in the title, how do I access windows file properties like date-modifed, and more specifically tags, with Python? For a program I'm doing, I need to get lists of all the tags on various files in a particular folder, and I'm not sure on how to do this. I have the win32 module, but I don't see what I need. Thanks guys, for the quick responses, however, the main stat I need from the files is the tags attribute now included in windows vista, and unfortunately, that

“operation is not supported” when invoking an RPC call on Vista

旧时模样 提交于 2019-12-07 12:49:40
问题 My application uses Microsoft RPC for interprocess communications. When two processes are run on the same machine and one process tries to call a method declared as (IDL notation): error_status_t rpcMethod( [in] pipe byte parameter ); this call fails with RPC_S_CANNOT_SUPPORT ("The requested operation is not supported") and never reaches the server side and the push()/pull() primitives of the supplied pipe are never called. This is only reproduced on Vista when using ncalrpc protocol and not

Delphi multithreaded application built in vista and won't run in XP

邮差的信 提交于 2019-12-07 12:41:01
问题 I am really stumped. I am running delphi 2007 on vista. I have built many applications and run them in XP with no problem. This latest app had to make use of threads. I'm pretty sure my code is correct. It runs fine on Vista, but when I run it on XP (tried multiple PC's) my program seems to lag (both os's 32 bit, XP sp3 and Vista sp1, dotnet v2). Best example being if I unplug the serial port my coms will continue to run etc. I was installing delphi on my xp machine, and ran my program while

CreateDesktop() with Vista UAC (C Windows)

倖福魔咒の 提交于 2019-12-07 12:32:17
问题 I'm using CreateDesktop() to create a temporary desktop where an application will run, perform a cleanup action (while remaining out of the way) and terminate. I'm closing that desktop once the application is gone. Everything is fine when using Windows XP and even Vista. The problem arises when you enable the (annoying) UAC. Everything is OK when you create a desktop, but when you call CreateProcess() to open a program on that desktop it causes the opened application to crash with an

Why can't I get GetPrivateProfileString to work via pinvoke?

一笑奈何 提交于 2019-12-07 08:34:04
问题 Running a c# console app I wrote on 64 bit Vista. Here's the code: class Class1 { static void Main(string[] args) { Debug.Assert(File.Exists(@"c:\test.ini")); StringBuilder sb = new StringBuilder(500); uint res = GetPrivateProfileString("AppName", "KeyName", "", sb, sb.Capacity, @"c:\test.ini"); Console.WriteLine(sb.ToString()); } [DllImport("kernel32.dll")] static extern uint GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int

How do I make TProgressBar stop lagging?

强颜欢笑 提交于 2019-12-07 08:27:19
问题 I've got an app that runs a long set of operations, and I'm trying to use a TProgressBar to keep track of what's going on. I set a number of steps, and call .StepIt to increment the progress bar. Problem is, it doesn't keep up very well. Instead of jumping directly to the correct position, it seems to like to slide gradually up to it. That's all well and good if it's eye candy you're after, but when I'm trying to get an accurate representation of my routine's progress, this makes it appear to

How to get the File Description of a DLL or EXE

帅比萌擦擦* 提交于 2019-12-07 07:48:08
问题 I am creating a program that among other things is going to control Services. I am attempting to list the Services similar to the way they are listed in msconfig (the first window below). I found where the services are listed in the registry. In Vista and Win7 the DisplayName and Description are often references. For example @%SystemRoot%\system32\aelupsvc.dll,-1 is the DisplayName data for the Service Application Experience . In Win7 there is a location where these references are stored