windows

Where to find documentation about multitouch API for Windows 7?

Where can I get the documentation about multitouch API for Windows 7? ...

Is it possible to use GCC without Cygwin or MinGW?

GCC is a very well respected multi-language compiler (from what I've gathered). One thing I've not been able to definitively find out is: Is it possible to use GCC on windows without anything extra like Cygwin or MinGW? I've learned that if you use GCC on Cygwin, there is a dependency on a DLL. If you use GCC with MinGW, you eliminate ...

Performances issues when launching an application on a parallel machine

Hi, I've a really strange problem: I've an application that launches some workers on parallel: for (it = jobList.begin(); it != jobList.end(); it++) { DWORD threadId; Job job = *it; Worker *worker = new Worker(job); workers[i] = worker; threads[i++] = CreateThread((LPSECURITY_ATTRIBUTES)NULL, (DWORD)0, &launchThread...

How to extract .inf/.sys install files?

Hello, I have a .inf file that install a .sys file from the windows xp system folder when the user plugs an USB hardware. I would like to trace the files that the windows auto-install on the system, so I can develop an automated installer that doesnt bother the user. Any ideas? Thanks ...

User right for application data special folder in ASP.NET

I have a ASP.NET MVC application that runs in both IIS 6 and 7. The application requires special right and needs to run in a application pool with a special users that are part of of some specific groups. The application also stores a a lot of settings in a couple of XML files. These files are stored under "Application Data" special fold...

How do I determine which monitor my .NET Windows Forms program is running on?

I have a C# Windows application that I want to ensure will show up on a second monitor if the user moves it to one. I need to save the main form's size, location and window state - which I've already handled - but I also need to know which screen it was on when the user closed the application. I'm using the Screen class to determine th...

How can I run an application on startup on a Windows system which has been modified to not run explorer

SUMMARY How can I make my GUI application run on windows startup on a modified Windows box that will not start explorer.exe. Placing a link in Programs -> Startup folder doesn't get executed. My Application is graphical so I cannot just modify application to run as a service. Background I have an application that needs to run on...

Getting icons out of DLL

I'm getting the following from a third party library (one example): @%SystemRoot%\SomePath\SomeFile.Dll,-203 I know from context that this is an icon. My question is, how would I take these "addresses" and actually pull out the data? On a related note, I'd also like to know the best way to pull the displayed (from the shell) icon...

WMI Cheatsheet?

Is there a cheatsheet available for WMI? Like what can be queried, where to query it from? ...

Updating the region behind a resized window

We have a fairly complex GUI, so when certain windows are resized their Redraw() is set to false till the operation is completed. The problem with this is that if the OS "Show window content while dragging" setting is checked, when decreasing the window's size the windows behind it are not repainted. This means I have to force the repain...

How does file recovery software work?

I wanted to make some simple file recovery software, where I want to try to recover files which happen to have been deleted by pressing Shift + Delete. I'm working in Windows, can anyone show me any links or documents which can help me to do so programatically? I know C, C++, .NET. Any pointers? ...

What is the best practice in deploying application on Windows?

Hello, I have an application that consists of several .dlls, .libs, .pyd (python library), .exe, .class-es. What is the best practice in the deployment process? I plan to put .dlls - managed into GAC and unmanaged into WinSxS folder. What should I do with .libs, .exe, .class and .pyd? Is it ok to put it to /ProgramFiles/Applicatio...

Interact with a Windows console application via Python

Hello, I am using python 2.5 on Windows. I wish to interact with a console process via Popen. I currently have this small snippit of code: p = Popen( ["console_app.exe"], stdin=PIPE, stdout=PIPE ) # issue command 1... p.stdin.write( 'command1\n' ) result1 = p.stdout.read() # <---- we never return here # issue command 2... p.stdin.write...

VBS Script: Copy directories listed in web file from Windows machine to Unix/Samba Share

[Outline] Hello Folks. In the home here we have five windows PC's running various editions of XP and Vista. As a backup solution, we have a file server with ample space for backups to be made too. Some of the users are not very competent at remembering to back their files up. I'd like to run a script on shutdown of a machine to fetch a ...

getting the HWND for my own application in C

since I couldn't find an answer to this question I researched a bit further into the MSDN and I found isChild(). It might give me the answer to that other question. Now, in order to use isChild() I need to pass the HWND of the parent application that I want to check, in this case my own application. How do I get the HWND of my own appli...

Why does flock occasionally take a long time on Windows / NTFS?

I use the file system to create a application wide persistent singleton (application does not use a database). Occasionally a page will take 1-2 minutes to load and I have narrowed the problem down to the use of flock in the function that gets an instance of the singleton. Here is a simplified version of the code: (edit: left out the m...

Trouble with linking ImageMagick libraries using MinGw on Windows

I started using Qt Creator recently and it seems to work well. A sample application I build on OS X uses the ImageMagick library. No problems there - everything works as expected. I built the ImageMagick libraries from source. Now I move over to the Windows side and the linking troubles start. Qt Creator on Windows uses MinGW and not t...

Opening and editing SQLWindows applications

Hi All, I have to edit a number of SQL Windows applications that I have inherited. This is not something that i've done before and i'm having trouble finding an IDE or similar (never mind editing the code!) as it seems a number of responsible companies have gone bust in the years since these apps were written, can anybody advise on how ...

Is it possible to programatically log access to a windows share (SMB share) using the .Net framework?

Just wondering if it is possible to figure out who has read files from a Windows share (using .NET ideally but win32 native will do)? What I'm try to do is create something like awstats for a windows share so I can see who is accessing what and which are the most popular files. I'm not interested in changes - I just want to log access ...

Creating a windows installer for a Visual Studio project

I want to create an installer for my project, primarily to handle the external dependencies which are starting to grow in number. The problem is most of these components seem to be distributed in different manners, so I need an installer that can cope with all the following. Ive looked at various things around, however many dont seem to...