windows

How to embed user-specific data in .NET windows setup app at setup download time?

I'd like to have a link in my ASP.NET web site that authenticated users click to download a windows app that is already pre-configured with their client ID and some site config data. My goal is no typing required for the user during the client app install, both for the user friendliness, and to avoid config errors from mis-typed technic...

Get a list of current windows, and give one of them focus, in .Net

Hey all, Without resorting to PInvoke, is there a way in .net to find out what windows are open? This is slightly different than asking what applications are running in memory. For example, Firefox could be running, but could be more than one window. Basically, I just want to be privy to the same information that the taskbar (and al...

MySQL shell on Windows

The command line interface to MySQL works perfectly well in itself, but when using my local copy I'm forced to interact with it using the old-fashioned DOS windows. Is there some way I can redirect it through a better shell? ...

How to best implement software updates on windows?

I want to implement an "automatic update" system for a windows application. Right now I'm semi-manually creating an "appcast" which my program checks, and notifies the user that a new version is available. (I'm using NSIS for my installers). Is there software that I can use that will handle the "automatic" part of the updates, perhap...

What steps can I give a windows user to make a given file writeable

Imagine we have a program trying to write to a particular file, but failing. On the Windows platform, what are the possible things which might be causing the file to be un-writable, and what steps could be suggested to an end user/administrator to fix it. Please include steps which might require administrator permissions (obviously u...

Can you start a scheduled Windows task from SQL Server Integration Services ?

Hello, Does anyone know if you can and how to start off a scheduled Windows task on a Remote Server from within a SQL Server Integration Services (SSIS) package? Cheers Nigel ...

What is WPF?

I have seen lots of questions recently about WPF... What is it? What does it stand for? How can I begin programming WPF? ...

What is the best winform UI component set?

I've been looking for a commercial winform UI component set for a while now. I've looked at most of the big players out there and I think I'm going to spend my cash on the Developer Express DXperience package. It's not cheap, but does a lot of great things like integrated printing and reporting, a good spell checker implementation, etc...

C++ : What's the easiest library to open video file

I would like to open a small video file and map every frames in memory (to apply some custom filter). I don't want to handle the video codec, I would rather let the library handle that for me. I've tried to use Direct Show with the SampleGrabber filter (using this sample http://msdn.microsoft.com/en-us/library/ms787867(VS.85).aspx), but...

How can I write a bat file to download only new FTP files?

Hi, I would like to use the built in windows ftp application to download some files on a periodic basis using a scheduled task and a .bat file. However I don't want to download the whole directory each time just the files that have changed or are new. Can this be done or do I need to write .NET application or the like? UPDATE: After ...

Thread pool for executing arbitrary tasks with different priorities

I'm trying to come up with a design for a thread pool with a lot of design requirements for my job. This is a real problem for working software, and it's a difficult task. I have a working implementation but I'd like to throw this out to SO and see what interesting ideas people can come up with, so that I can compare to my implementatio...

How do you find out which NIC is connected to the internet?

Consider the following setup: A windows PC with a LAN interface and a WiFi interface (the standard for any new laptop). Each of the interfaces might be connected or disconnected from a network. I need a way to determine which one of the adapters is the one connected to the internet - specifically, in case they are both connected to diffe...

Getting an error when starting WAMP - "VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results"

I'm running WAMP v2.0 on WindowsXP and I've got a bunch of virtual hosts setup in the http-vhosts.conf file. This was working, but in the last week whenever I try & start WAMP I get this error in the event logs: VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with ...

How do I run my app with large pages in Windows?

Large pages are available in Windows Server 2003 and Windows Vista. But how do I enable large pages for my application? ...

OpenGL or Direct3D for a new Windows game project? Or something else?

I'm starting a hobby game project on Windows that will make heavy use of 3D graphics effects. It will most likely be written in C++. Should I use OpenGL or Direct3D for my graphics backend? Why? Or should I use a ready-made graphics engine such as OGRE 3D? Which one? Some "how to get started" links would be useful. (On either technolo...

Fastest, easiest way to recover PCs lost to viruses and malware?

Probably like most people here I get the awesome task of looking after all my elderly relatives PCs, because 'you know about computers'. Right now I'm reinstalling XP on two of them, instead of doing useful work, because they are so infected with viruses and malware from general internet surfing ("you're our thousandth customer, click he...

Modifying the MBR of Windows

I need to modify the MBR of Windows, and I would really like to do this from Windows. Here are my questions. I know that I can get a handle on a physical device with a call to CreateFile. Will the MBR always be on \\.\PHYSICALDRIVE0? Also, I'm still learning the Windows API to read directly from the disk. Is readabsolutesectors and writ...

How to add submenu items to the Windows Explorer context menu?

I can create a menu item in the Windows Explorer context menu by adding keys in the registry to HKEY_CLASSES_ROOT\Folder\shell. How can I create submenu items to the just created menu item? ...

How do I set windows to perform auto login?

Windows has a feature that allows an administrator to perform auto-logon whenever it is started. How can this feature be activated? ...

How to tell which disk Windows Used to Boot

Hi, I'm need to find a method to programmatically determine which disk drive Windows is using to boot. In other words, I need a way from Windows to determine which drive the BIOS is using to boot the whole system. Does Windows expose an interface to discover this? With how big the Windows API is, I'm hoping there is something buried i...