windows-vista

eclipse stuck when building workspace

此生再无相见时 提交于 2019-11-27 09:10:12
问题 I am using eclipse 3.4.1 Java EE under Vista. It seems to like getting stuck when building my workspace. Canceling the build doesn't seem to do anything as well. Why is this happening and how do I fix the problem? 回答1: You may want to take a look at How to report a deadlock. You may also want to check the Error view and/or the error log ([workspace]/.metadata/.log). If that doesn't help, you'll probably need to include more info about which plugins you have installed and which projects you

Delphi 2009: How to communicate between Windows service & desktop application under Vista?

我只是一个虾纸丫 提交于 2019-11-27 07:55:27
How can a desktop application communicate with a Windows service under Vista/Windows2008/Windows7? The application needs to send small strings to the service and receive string responses back. Both are written in Delphi 2009. (Please provide sample code also) The way to go is named pipes , you'll probably have to take a look at the communication across different Integrity levels . This article explores how to do this in vista. Although it's written in c++ it's just basic Windows API calls, so it should translate fast enough to Delphi. If you want to search for more on this subject, this

windows batch files: setting variable in for loop

与世无争的帅哥 提交于 2019-11-27 07:36:53
I have a number of files with the same naming scheme. As a sample, four files are called "num_001_001.txt", "num_002_001.txt", "num_002_002.txt", "num_002_003.txt" The first set of numbers represents which "package" it's from, and the second set of numbers is simply used to distinguish them from one another. So in this example we have one file in package 001, and three files in package 002. I am writing a windows vista batch command to take all of the files and move them into their own directories, where each directory represents a different package. So I want to move all the files for package

UAC and Java

给你一囗甜甜゛ 提交于 2019-11-27 05:54:27
问题 Is it possible to ask for elevated permissions from within a Java Application? Suggestions I've seen seem to all be centered around running an external executable or setting up a manifest to request privileges on launch. These aren't available to, for instance, applets. Is there any way to request elevation from a running application? 回答1: UAC is not something that a running process can request (doesn't matter what language you are running in). You have to request elevation at launch time.

Rails on Windows is so slow (rails -v takes 4 seconds)

感情迁移 提交于 2019-11-27 05:33:16
问题 I'm using rails Version 3.0.3 and ruby Version 1.9.2p136 (2010-12-15) on a Intel Core 2 Duo 2,6 Ghz with 4 GB Ram and Windows Vista Business SP2 with no other (heavy) applications running. I have already read that rails development on Windows is slower than on Unices and most people do there for not recommend it but this is silly. I can't think of any good reason for using 4 seconds to display a simple Version number. And rails generate needs up to 10 seconds to complete! Something in my

Looking for an alternative to windows messages used in inter-process communication

前提是你 提交于 2019-11-27 05:26:33
问题 I a have a multithread application (MIDAS) that makes uses of windows messages to communicate with itself. MAIN FORM The main form receives windows messages sent by the RDM LogData(‘DataToLog’) Because windows messages are used they have the following attributes Received messages are Indivisible Received messages are Queued in the order they are sent QUESTION: Can you Suggest a better way doing this without using windows messages ? MAIN FORM CODE const UM_LOGDATA = WM_USER+1002; type TLogData

How do you retrieve the tags of a file in a list with Python (Windows Vista)?

烂漫一生 提交于 2019-11-27 05:13:11
I want to make something of a tag cloud for various folders I have, but unfortunately, I can't seem to find a way to access the tags of a file in Windows Vista. I tried looking at the win32 module, and os.stat, but I can't seem to find a way. Can I get some help on this? JellicleCat I went about it with the win32 extensions package, along with some demo code I found. I posted a detailed explanation of the process on this thread . I don't want to reproduce it all here, but here is the short version (click the foregoing link for the details). Download and install the pywin32 extension . Grab the

Disabling UAC programmatically

♀尐吖头ヾ 提交于 2019-11-27 04:24:37
Is it possible to programmatically disable UAC in Vista? Or, can I make my application run unrestricted by the UAC setting in any way? FYI, the application needs to mount hard drives on the fly, which is why I can't ask for UAC permission each time... Update: I'm looking for something in line with what Kosi2801 mentioned, basically to ask the user to always start the program in an 'elevated' mode. I'd want the permission to be a 1 time thing, I'm not saying that I programmatically disable UAC without asking permission first. I'm sure there are lots of programs that need to operate in this mode

How to draw custom button in Window Titlebar with Windows Forms?

↘锁芯ラ 提交于 2019-11-27 04:18:23
How do you draw a custom button next to the minimize, maximize and close buttons within the Titlebar of the Form? I know you need to use Win32 API calls and override the WndProc procedure, but I haven't been able to figure out a solution that works right. Does anyone know how to do this? More specifically, does anyone know a way to do this that works in Vista? Matthew Scharley The following will work in XP, I have no Vista machine handy to test it, but I think your issues are steming from an incorrect hWnd somehow. Anyway, on with the poorly commented code. // The state of our little button

Programmatically prevent Windows screensaver from starting

情到浓时终转凉″ 提交于 2019-11-27 04:04:34
问题 Is there a recommended way to prevent the Windows screensaver from starting? The closest thing I've found is this article, but what I would really like to do is just tell Windows that the computer isn't idle rather than fooling with the currently set screensaver values. 回答1: For testing, I set the screensaver to 1 minute and required a password. I tried capturing SC_SCREENSAVE and returning -1 in VB .Net. As commented, it works when there is no screensaver password but fails if the