windows

SetWindowsHook stops working after some time

I defined a global hook on WM_MOUSE that works perfectly for some time. It post a message to a specific window each time the mouse move. After some random time the hook stop sending messages. If I unregister and register the hook it works again. I suppose some specific thing happening in Windows cause the hook to stop, but I can't find ...

Detecting Keyboard Hooks

Is there a way to detect which programs or modules are listening to a keyboard hook? By Sysinternals maybe? ...

service and registry

Hello, I have a problem in understanding the relationship between services and registry. I have the task of taking my windows C++ program and transform it from simple application to a service. I read that I need to produce some more functions as: start stop resume install. The problem is: Why I need the regisrty ? how I enter the new...

Will Google Chrome Frame be Installable on Locked down Windows Machines?

Does anyone know if Google Chrome Frame will be installable onWindows machines in the dreaded Corporate IT World where machines are locked down with a Khaki Fist? I suppose that's really two questions Can Windows be locked down to prevent IE from installing plug-ins? Is Google being clever and finding a way around this? (i.e., is the ...

.NET App which has initial WindowState == Minimized, but shows up in the taskmgr->applications tab on Vista/Windows7 but NOT on WinXP

I have a windows form application in which the Form1 object's initial WindowState == Minimized. This works as desired in the sense that the application does indeed start minimized etc. However, the application shows up in the applications tab of the taskmgr which is undesirable. I've only personally been able to reproduce this on Vist...

loading a simple semi transparent PNG in Windows Mobile using C#.

Hi, I am new to Windows Mobile programming. I want to load a PNG file which has an Alpha Channel. After 2 days of searching in Internet, I am still at square 1. Can someone help me? I got an example which uses uses a wrapper to access the AlphaBlend API. But when I set the AC_SRC_ALPHA flag in BlendingFunction, it does not draw anything...

Showing multiple lines of text in a console application?

I need a way to show multiple lines of text (e.g. 1000 lines) in a console application, and be able to scroll through all lines. However, when I do something like the code snippet below, I can only see the last 100 or so lines in the console. for (int i = 1; i <= 1000; i++) { Console.WriteLine(i.ToString()); } My initial though was...

Windows print spooler limitations?

Is there a limit on how many print jobs can be queued up in the Windows Print Spooler? ...

FileSystemWatcher, Strange Response

I created a FileSystemWatcher (as a Windows Service) to watch for plug-ins being dropped in a directory (as ZIP files) so I can automatically unzip them, set some registry keys, and install them into my application. This works fine. I also have the FileSystemWatcher looking to see when a ZIP file is deleted, so I can delete the install...

Need Help Porting Win32 C++ to Unix

I'm looking for help porting this Windows tool to Unix (Mac/OSX); http://www.oxyron.de/html/netdrive01src.zip First off I'd like to know, if anyone could take a moment to have a quick look at the (small) source code, if it's a reasonably straight-forward task. Secondly, any tips on porting the code would be much appreciated. I've tri...

[Visual Studio 2008] unable to load Assembly

Hi! I'm getting a strange error from my VisualStudio 2008 installation in Windows 7 and I wonder whether anyone knows how to fix that: Unable to read the project file "cs.proj". Could not load file or assembly Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral, [...] System cannot find the file specified. ` I che...

Jboss failover testing

Hi All, I have a peculiar situation here. I have installed JBoss 5.1.0 as a service in Wintel box. The service will restart itself if the JBoss instance fails. However I could not find a way to test this scenario. I killed the JVM that was running the JBoss, but it did not restart the service. I need to make the JBoss service end abnor...

Monitoring general keyboard shortcuts in Windows (Ex. Ctrl twice to bring up Google Desktop Search)?

Google Desktop Search has this nice feature of catching monitor shortcuts (such as CTRL + CTRL) while running in the background. Once the event is caught, the desktop search bar is being shown. Is there a way to simply implement this in C#? ...

how to pen Iphone .plist file in Windows Machine?

In my Iphone application i have .plist file in which i am putting all the Input data. I will further use this data in the code: directly from .plist file. The problem is that when i am going to open the .plist file in a windows machine, it is not showing its original content. It is just showing the Binary characters or junk characters. ...

Is it possible to prohibit putting my in-proc component into COM+?

I have an ATL C++ in-proc COM component. This component is not for external use - I only need it for use in our application. Once in a while users put it into COM+ and this leads to all sorts of weird errors - "Access denied", etc which I'd like to just never hear about. The best way would be to do something that would prohibit putting ...

Windows Vista users verification

hi! I want to verify that given username/password pair is a valid windows vista account using c#. ...

Unix tools in GUI for Windows

I'm a Windows user and would really like to have the power of the Unix command-line for things to speed up programming. (clean up datafiles, search for occurrences of things in files, file/folder operations/ etc.) Now I know that using Cygwin and a few ports, I could use these command-line tools in Windows as well. However, the idea of...

Prevent the access from copying a file when other resources are using it.

In my application, i have one exe file that will do some conversion on my videofiles in a directory, and also i have used cute ftp to transfer the files present in the directory to another server. CUTE FTP is configured to be run on every mins. When 25% of job is over for a video file, CUTEFTP is transferred that file to other server. ...

Reparing a "disconnected" drive mapping

Sometimes a network drive that is already mapped to a drive letter because "disconnected". Using the normal Windows functions to access files / folders on that drive fail. As soon as the user manually clicks on that drive it the Windows Explorer dialog, it's magically repaired. Since my program is a batch program I'd like to start this ...

How to flush pending FileSystemWatcher events?

I need to ensure that all pending FileSystemWatcher events are processed before executing my operation. Is there any way to do this? ...