windows

API for displaying video and drawing 2D elements

I'm looking for a Windows library/SDK that will allow me to do the following: Display video from a network stream Draw 2D elements on the displayed image in real time, such as lines, circles, text, etc. Use it in a commercial application (I don't mind paying for it) I'm willing to use any programming language or environment so there'...

TortoiseSVN file overlay performance - are there any ways of improving it?

Hi all, I'm using TortoiseSVN on my development machine (running Windows Server 2003) and VisualSVN Server on the server side. Both are the latest versions (against Subversion 1.6.5). Everything works well generally; however I'm getting a little frustrated with the TortoiseSVN file overlays (the little icons that show locked or modifie...

File.WriteAllText throws UnauthorizedAccessException

Doing File.WriteAllText to a remote path throws UnauthorizedAccessException. When I open the file in notepad I can edit it without a problem. The process that's trying to modify the file is running as my own user account, so it should be able to access it. ...

running bat file using windows schedualer

Hi there i wanted to run a .bat file in windows task schedualer, so i opened it, added a new task, browsed to the bat file, and... nothing happened. so i changed the timing to see if it'll run, and it didn't. next i right-clicked on the task and chose "run"- it didn't run. the file itself is only one line, basicly backups a folder to a ...

Shell execute from Ruby

Assume, I have a file 'text_file.txt' within my .rb script. How do I execute a default windows program for that file from the Ruby? ...

How exactly do Windows portable applications work?

Portable applications can be run from USB-drives and all and are thus very convenient, but unfortunately they are slow (as a USB drive is usually slower). How exactly does the installation of a portable app differ from that of a normal app? I know they do not create registries and all, but then how do they achieve the same thing as oth...

Not able to run my jar file on Windows

I have these files board.class and x4.class (x4.class has main() method). To jar these files, I wrote jar cf x4.jar *.class and got a x4.jar file. I copied this x4.jar file to my Desktop (on windows Vista) and double-clicked it. I am getting this error: Failed to load Main-Class manifest attribute from C:\Users\eSKay\Desktop...

Can I handle the killing of my windows process through the Task Manager?

I have a windows C++ application (app.exe). When the app is closed, I need to perform some cleanup tasks specific to my application. What happens when this process (app.exe) is killed through the Task Manager. Assuming that the application is still responsive, can I somehow handle this situation in my app.exe? I am looking for something...

Python 2.6.2, Django 1.0.3, Windows XP, Page not found: /

I'm just starting to learn Python and Django and an unable to get the most basic app working. I've setup Python, added python to the Path environment variable, installed Django using install.py script. I created an app by running the command django-admin.py startproject my_project updated the settings.py file for a database DATABAS...

Windows Scripting: What and How to do this? Batch Files or Something else?

Hello all, What I am trying to do is have some sort of script run in windows (ideally .cmd file/batch file) when double clicked it should create a short-cut menu in the start menu and set a path in the windows registry (i think thats what it is called) so that next time, for example, all I have to is get the variable JAVA_HOME to get th...

Is it possible to build a Console app that does not display a console Window when double-clicked?

Related: Should I include a command line mode in my applications? How to grab parent process standard output? Can a console application detect if it has been run from Explorer? I want to build a console app, that is normally run from the command line. But, when it is double clicked from within Explorer (as opposed to being r...

C# make a window topmost using a window handle

After launching an application using the Process class I'd like to make that window topmost. Currently, my app is the topmost window so when i launch the other app it doesn't display. One thing that came to mind is that I could set topmost = false for my application before launching the process, the problem with this is I want to give ...

Split large file without copy?

Question: Are there Windows API calls (perhaps NTFS only) which allows one to split a very large file into many others without actually copying any data (in other words, specify the logical breakpoints between joined files, with file names and sizes)? Examples: SetFileValidData, NtSetInformationFile Scenario: I need to programatically...

Prevent a process from displaying a window during startup

I'm launching an application from a WPF app using the Process class that displays a splash screen at startup. Rather than show the user the splash screen, I'd like to hide the application for the first couple of seconds after starting it by keeping my window topmost and maximized. The problem is that starting this application automatic...

Can a WIN32 program authenticate into Django authentication system, using MYSQL?

I have a web service with Django Framework. My friend's project is a WIN32 program and also a MS-sql server. The Win32 program currently has a login system that talks to a MS-sql for authentication. However, we would like to INTEGRATE this login system as one. Please answer the 2 things: I want scrap the MS-SQL to use only the Djang...

Detecting the Loopback Adapter

What is the best way for detecting whether a network interface is a loopback adapter? The windows API's GetAdaptersInfo and GetAdaptersAddresses state in the documentation that they will return whether an interface is a loopback through the Type (MIB_IF_TYPE_LOOPBACK) but neither of these do for the Microsoft Loopback Adapter at least, ...

What are MMC extension snap-ins?

Looking through our MMC snap-in code I can't get one concept. We have a tree of different class items inserted into MMC snap-in root node and only two of them register themselves as extensions. These two classes are nothing special compared to any other classes we use to represent the MMC tree items. Yet only these two register themselve...

Place a window behind any other existing third party window

In order to take a screenshot of a specific window, I need to place a white colored TForm behind that window. What Windows API could I use to change the z-order of my window and place it correctly ? ...

What errors / exceptions trigger Windows Error Reporting?

When running a Delphi application outside the debugger most exceptions that occur seem to be silently ignored (like an access violation). Sometimes however there appears the Windows error reporting dialog (send or not send, you probably know what I mean). What exactly does this mean? What errors trigger this behaviour? Additional info: ...

How to install Winlogon Notification Packages without restarting

To install Winlogon Notification Package you need to add entries in registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify. Then you must restart computer so winlogon will read this configuration. Is there a way to force winlogon to refresh this configuration without restarting? OR How can I det...