windows-xp

Windows Service startup time

天大地大妈咪最大 提交于 2019-12-24 21:43:41
问题 Is there a way to programmatically retrieve start-up time/duration for all the Windows Services that have started during boot in Windows XP? That is, the time the service was initialized to getting to the "started" state. Thank you in advance! P.S. I'm not asking for software recommendation. 回答1: I would start with looking at the logs in event viewer, check if that information you want is there. If it is, then use Microsofts EventLog class to get the log you want. For example if you're

How do I preserve files' timestamps using SVN? [duplicate]

拈花ヽ惹草 提交于 2019-12-24 17:19:04
问题 This question already has answers here : How can I keep the original file [commit] timestamp on Subversion? (4 answers) Closed 3 years ago . When I import files into a repository ( svn import ), they get new timestamps. So when I checkout these files into a working copy, they have those new "last modification date". I would like to preserve the original files' timestamps. Is it possible with SVN 1.6.x? 回答1: You can set the svn:date revision property to simulate any commit time. See SVN commit

How to create an app for Windows XP using Visual Studio Express 2012 for Windows 8

假如想象 提交于 2019-12-24 14:56:20
问题 I have very little knowledge on apps for Desktop. I created a Simple app for Windows 8 using the free Visual Studio Express 2012 for Windows 8 (in C#, XAML). Now I am wanting that app to run on other Windows platforms like Windows XP, Windows 7 etc. I understand, that Metro apps can't run on Windows 7 or XP, but All I want is stripped down version of my app which runs on Windows 7 and XP as well. I am looking for options like Project->News->Target Windows XP... I also have another question,

FIPS-compliant Isolated Storage in WinXP?

给你一囗甜甜゛ 提交于 2019-12-24 13:26:35
问题 I've read (but not tested) that Isolated Storage uses Sha1Managed, which is not FIPS-compliant? Is that accurate, and can anything be done to use Isolated Storage on a FIPS-compliant WinXP SP2 box? I've seen mention of "Isolated Storage" within both the ClickOnce and Silverlight spaces. I'd appreciate an informed answer regarding either (or both!). 回答1: Yes, Isolated Storage does use SHA1Managed internally, which is not FIPS compliant. You will get an exception thrown from within the

Unable to kill instances of cmd.exe on Win XP

安稳与你 提交于 2019-12-24 11:52:09
问题 A new command prompt pops up when I debug a windows console application and it doesn't go away when application finishes. I have to plenty (in fact 18) of them open and it is annoying. The following doesn't help: Pressing "X" button on top right of command prompt. Go to task manager and kill the cmd.exe. kill/pskill commands etc. I know the last resort would be to reboot the machine. But I want to avoid that. Is there a option? Thanks in advance. 回答1: Are you using Visual Studio 2005 or 2008

Unable to kill instances of cmd.exe on Win XP

淺唱寂寞╮ 提交于 2019-12-24 11:48:10
问题 A new command prompt pops up when I debug a windows console application and it doesn't go away when application finishes. I have to plenty (in fact 18) of them open and it is annoying. The following doesn't help: Pressing "X" button on top right of command prompt. Go to task manager and kill the cmd.exe. kill/pskill commands etc. I know the last resort would be to reboot the machine. But I want to avoid that. Is there a option? Thanks in advance. 回答1: Are you using Visual Studio 2005 or 2008

Crashing with C# and Directory Services on XP

断了今生、忘了曾经 提交于 2019-12-24 10:35:26
问题 I'm trying to do some simple data retrieval with C# and Directory Services, but for some reason it doesn't work on any XP machines. If I run my code on a Server 2003 machine, there are no problems. I've spent a fair bit of time trying to find out if maybe there's some redistributable I need on XP or if the functionality simply isn't there, but I've found references to other developers who have similar code working under XP. If anyone has any experience or advice to share, I'd appreciate it. A

XLL doesn't properly load

若如初见. 提交于 2019-12-24 10:27:08
问题 I've got a XLL Addin and I'm trying to run it under Excel 2007 XP without VBA installed. My addin is well registered (OPEN key as /R "C:\Program Files (x86)\MyAddin\myAddin.xll" in HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Options). When debuging, I see that DLLMain is called... but not xlAutoOpen (neither others xlSomethings functions): my UDFs are thus not registered (it was done in xlAutoOpen). Do I miss something ? Do I absolutly need VBA installed ? If yes, is there another

How to detect an incoming USB device in windows Service on Windows XP machine?

↘锁芯ラ 提交于 2019-12-24 09:42:50
问题 I an trying to write a simple Windows Service that shall detect any incoming USB device and Launch a GUI application. WqlEventQuery query = new WqlEventQuery("SELECT * FROM Win32_VolumeChangeEvent WHERE EventType = 2"); watcher.EventArrived += watcher_EventArrived; watcher.Query = query; watcher.Start(); watcher.WaitForNextEvent(); This solution works well in Win 7 However, it fails in XP (I have XP SP3). I found another solution here http://www.codeproject.com/Articles/63878/Enumerate-and

Invalid parameter creating image or bitmap from stream c# XP only

て烟熏妆下的殇ゞ 提交于 2019-12-24 09:06:26
问题 I believe what I am doing is pretty standard. I create some images from embedded resources by calling GetManifestResourceStream on the resource, giving it the path to the .ico file: Bitmap bmp = new Bitmap(Assembly.GetEntryAssembly().GetManifestResourceStream("MeterView.Resources.unlocked.ico")); The bitmap is then used to display an image on my form. This has always worked perfectly on Windows 7 and 8, but now when I try to run the app on an XP SP3 box I get "Invalid Parameter" on the line