windows

hEvent member in OVERLAPPED Win32 structure

When asynchronous I/O (or "overlapped" I/O in Win32 jargon) is used, we need to deal with the OVERLAPPED structure and his hEvent member. If the I/O function will delay the read or write operation, we will get an ERROR_IO_PENDING error code, then we will wait the asynchronous operation to complete with a WaitForXxxEvent function, then we...

Can't step into stored procedure on remote SQL Server 2008

I have a domain controller installed on virtual Windows Server 2008 x64. SQL Server 2008 Express x64 is running on Windows Server 2008 x64 and client on Windows 7 RTM x86. Both have joined the domain. I'm starting both Visual Studio 2008 and SQL Server Management Studio 2008 under domain admin user. This account is a member of group sy...

Help getting MVVM ViewModel to bind to the View

Okay guys, I'm new to this model and Silverlight in general. I have the following code (changed object names, so syntax/spelling errors ignore). public class ViewModel { ViewModelSource m_vSource; public ViewModel(IViewModelSource source) { m_vSource= source; m_vSource.ItemArrived += new Action<Item>(m_vSou...

PHP on Windows: Apache or IIS7?

Here's the thing: Due to a new project, I have to learn PHP from scratch. I'm now in windows and I DON'T want to change quickly, so, don't tell me to change. I need to setup a DreamWeaverCS4/PHP5 develop environment, and, I don't have a clue whether to use Apache or IIS7. I just need some advice relating to it. Remarks: I really don'...

ctrl+alt+del disable using c in window OS

How to disable ctrl+alt+del using c in window OS. I have use SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, true, &bOldState, 0); but it doesn't working for me, kindly guide me, so that i can make it possible. ...

Prossess state getting in c under window plateform

I am using CreateProcess function for creating the process, is there any option to get the current state of the process (running or not). Kindly guide me how can I make it possible. ...

Disable All I/O Ports on a Windows PC Using C?

Is it possible to disable all the I/O ports of the Windows PC my program is running on? If so, can that be done using C? The goal is that the user should not be able to interact with the PC through any path except for the network card while my program is running. ...

Windows Forms: Enable/Disable WS_CLIPCHILDREN

How do I turn on/off the WS_CLIPCHILDREN window style in a Windows Forms parent control? I would like to display some text on top of the child control after it has painted. In my parent control, this is what I have: class Parent : public Control { void Parent::OnPaint(PaintEventArgs ^e){ Control::OnPaint(e); // par...

How can we manage ProductVersion(A Windows Resource) automatically?

Windows resources have a FileVersion and a ProductVersion. In native development environment(eg. Win32 app, device driver) How do you manage the ProductVerion automatically? My language is c/c++. And I use Visual Studio 2008. I want to increase the version automatically when I build my projects. Is it possible? I guess there is a sim...

How to modify Registry of window OS from c or c++

I want to modify the registry of window OS using c. kindly guide me or give me some hints so that I can make it possible. ...

Desktop project management software that syncs with smartphone?

Hello, I went through the archives here and the Wikipedia page on Project management software, but didn't find information on this type of application to manage projects: Windows, natively-compiled (no Java, preferably Windows instead of cross-platform) desktop based (don't like to use a browser for this) can scale from one to a few p...

The value returned from a function in a windows batch script is ignored in a FOR loop

Hi, I need a script that inserts a number at some point into a file path, like this: from C:\WINDOWS\system32\ansi.sys to C:\WINDOWS\system32\5.ansi.sys I made a function using a label and it seems to work fine, until I invoke it from within a FOR loop. This is the code I wrote: @ECHO OFF SET PATHTOPROCESS="C:\WINDOWS\system32\ansi...

How to get a filetype icon in Windows using C/C++?

I am looking for a C/C++ code which can get icon for a given filetype (eg. .doc, .pdf) on Windows. I need to make an application which will display a list of files and I need to have the file icons corresponding to those files. I have seen C# code for the same but I have never worked with C# and don't think that I can use the same code ...

How to find version of WIC Windows Imaging Component

How to find version of WIC Windows Imaging Component. Is it shipped with OS like XP, Vista, etc. I am using WPF application having TIFF image, which is having some issues ie the image is showing black with certain height; someone on the forum suggested that it might be the issue with WIC version 1. Can anybody please tell me how to fi...

WPF: Displaying two windows simultaneously (extended desktop) in full screen

Hi, I just want to find out how to run two WPF windows (one in extended desktop) while in Full screen mode. ...

What is the recommended version of Java for Windows 7 ?

Can someone advice which is the recommended version of Java Runtime Environment for Windows 7, since older version may have some incompatibilities etc? Thanks in Advance ...

Placing a window in WIN CE

How do we specify the placement position of a window using MFC in Win CE? It does not support the WINDOWPLACEMENT class that is available in Windows. ...

SHAddToRecentDocs without a file?

I was toying with an IRC client, integrating it with the windows 7 app bar. To get a "Frequent" or "Recent" items list one has to call SHAddToRecentDocs API. I want to add recent IRC channels visited to the Windows 7 Jumplist for the IRC application. Now, my problem is, IRC channels don't exist in the file system. And SHAddToRecentDocs ...

what are LPARAM and WPARAM defined as

I know I'm being lazy here and I should trawl the header files for myself, but what are the actual types for LPARAM and WPARAM parameters? Are they pointers, or four byte ints? I'm doing some C# interop code and want to be sure I get it working on x64 systems. ...

Unresolved external symbol while using wpp tracing

Hi, I'm getting the following error message when I try using WPP tracing in my user mode application. 3>hooktest.obj : error LNK2019: unresolved external symbol _WppCleanupUm referenced in function _main 3>hooktest.obj : error LNK2019: unresolved external symbol _WppInitUm referenced in function _main 3>hooktest.obj : error LNK2001: un...