windows

C# How to show a icon when multiple window forms are minimised on the taskbar

Hi All I hope someone can help as I have been pulling my hair out trying to figure this out. I have an application with multiple forms, each form has the same icon, so when I minimise that form the form appears on the taskbar with the specified icon. However, when I have multiple form windows minimised onto the taskbar the the forms a...

Get Windows Server shutdown reason in C#

Hi, is it possible to get shutdown reason in Windows Server 2008 immediately after user choose the reason in dialog window? For the shutdown event i'm using SystemEvents.SessionEnding.. I want to write windows service, which will send e-mail about this event. Or is there any other way in windows server to send e-mails about shutdown/re...

What rendering API does Qt use on Windows?

What underlying rendering system does the Qt GUI toolkit use on Windows? (I'm assuming it is GDI) ...

Rendering 2D primitives in scrollable view

What is the best approach to render a large number of 2D graphical elements (lines, text, shapes, etc.) in a scrollable view on windows using C#? ...

Facing an issue with recv() and send() winsock api. Recv() hangs while receving the last packet

Hi, I am facing an issue with recv() and send() winsock api. Recv() hangs while receving the last packet. Problem Description:- System A's app is writing data over a non-blocking socket and system B's app is receiving data over a blocking socket in chunks of 64k. It seems that while reading probably the last packet of 64k, which may ...

Linux distribution for a programmer's private server

I'm going to get a low-end old (CHEAP!) computer to run non-stop as a little server for Subversion, Mercurial, Trac and maybe a little other things 99% for myself - performance isn't a concern. It'll probably have a 1 GHz P3/P4/Celeron, 256 MB SDRAM, 30 GB IDE HDD or something like that, any video card so I can hook up a monitor. I could...

Windows DNS hooks

How does Windows resolv DNS and how can I intercept the calls, in order to inject my own domains? I need this in an application, and running my own DNS server or modifying the hosts file is not a solution. ...

Sql Server Compact Edition database deployment strategy

Hello, I have a question about the most appropriate way to deploy a SQL Server CE database with our client application. I understand we need to install the SQL Server CE prerequisites etc., so this isn't a question about getting it to work. It already does. Right now the way we have it is that we just ship a copy of the .mdf file (co...

Getting the Local AppData folder in Haskell

Hi, I'm trying to get the location of Window's Local AppData folder in a version-agnostic manner using Haskell, and I'm having a bit of trouble doing so. I've tried using the System.Win32.Registry library, and I was able to get the code below (after some trial and error), but I wasn't able to figure out how to use the regQueryValueEx or ...

Microsoft Windows DRM Server tips

We are looking into solution which involves playing copyright protected video using Microsoft DRM Server and Silverlight player. the video will be played to registered users on the web using Silverlight player. I've read all MSDN documentation on this subject and kind of get an idea how it is supposed to work. However, I couldn't find ...

Windows Server 2008 scheduler issue and cross domain permission issue

I am using windows server 2008 + Plesk to setup website. I have certain program want to install in subfolder. eg: trial.blablabla.com/username1 eg: trial.blablabla.com/username2 eg: trial.blablabla.com/username5 So everytime when there's a new installation, I will insert it into database and it as pending status. Then every minute, .v...

How do I get output in a Perl process started from Win32::Process?

I have a Perl script that launches another Perl script in a new console through Win32::Process as follows: Win32::Process::Create($ProcessObj, "C:\\Perl\\bin\\perl.exe", "$path_to_other_perl_script", 0, NEW_CONSOLE, "."); $Proc...

How can my UnInstaller tell it's being called during a version upgrade?

Hello everyone, We are using VS2008 native Installer to set up our product. During both installation and product removal, we use Custom Actions to ask the user if he would like to keep his existing DB and settings (if detected). The arises when the user is upgrading: the Installer starts, recognizes there is a previous version installed...

Threads using visual stdio2008

I want to implement threading in c++.I am using visual stdio2008 and wish to implement threading using pthreads.can any one guide me about pthreads and also about there implementations in vs2008.Thanking in anticipation ...

Need help with Windows Journal Record Hook

I want to build a software test automation software and I'm playing around with Windows Hooks for that. So I built the following C code. Can anyone tell me how to correct it ? #include "windows.h" // the call back function LRESULT CALLBACK JournalRecordProc(int code, WPARAM wParam, LPARAM lParam) { HHOOK hhk = 0; if (code > ...

Analysing a crash in Windows: what does the error message tell us?

A small utility of mine that I made for personal use (written in C++) crashed randomly yesterday (I've used it roughly 100+ hours with no issues so far) and while I don't normally do this, I was feeling a bit adventurous and wanted to try and learn more about the problem. I decided to go into the Event Viewer and see what Windows had log...

Application Level shortcut keys in WPF

Hi, In WPF application I am currently trying to bind a Command to launch a calculator Tool form any where in the application using shortcut keys, I have created a command but not getting how to map commands and shortcut keys to create universal shortcut keys in my application. Thanks in advance. ...

Which USB classes are supported driver-free?

Which USB classes are supported by a standard installation of Windows/Linux/etc, without product-specific drivers? For example, a mass storage device is always supported, no matter what its VID/PID combination. What other classes work like this? ...

Firewall start/stop using win32 api for windows XP os

I am trying to start and stop the firewall in Windows XP using the win32 api for changing settings in the registry, i.e HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile. I am trying to change a data value but it's not changing. So can tell me any other way how I can stop the fire...

Why isn't cl.exe producing a valid Windows module?

I have a simple C DLL that exposes functions from a static library. The DLL compiles without errors and I can run DUMPBIN on it to see the exports. However, when I attempt to load it with DllImport in C#, it says this: System.DllNotFoundException: Unable to load DLL 'ei.dll': The specified module could not be found. (Exception from H...