windows

Installer needs to distinguish Vista and XP

I need to install a USB driver for a device so that it is recognised by ActiveSync (under XP) or Mobile Device Center (under Vista). However the .INF file which needs to be installed for ActiveSync (XP) is different from the .INF file for MDC (Vista). So I need an installer which can determine if the target is XP or Vista and install th...

Sleep Windows from Java

Is there command to use on windows from java to make the computer sleep? ...

"Microsoft DNS Client" vs. getaddrinfo?

Right now, my application is using the c-ares asynchronous DNS resolver library on Windows below cURL, and I have users complaining that it behaves differently from other windows apps. One particular user said that "other applications are using the Microsoft DNS client" and experiences no problems. cURL itself has an asynchronous DNS im...

Building iPhone for WindowsXP with Cygwin

"Write native iPhone applications using Eclipse CDT How Windows and Linux developers can bypass the iPhone SDK and write iPhone apps using open source tools" by PJ Cabrera ([email protected]) I was following the instructions from this document and thought I made it pretty far, but I get an error and wondered if you know what is going ...

php project deployment new problem

i have done one php project and i have uploaded it on server.I had devlopveped it on windowas and now i am trying to deploy it on remote linux server. But i am geting error. Some parts of page are not shown i donr know why? For example i have one page appply as follows . i can see only top part other parts i cant see. <?php require 'i...

Reconnect to Process Started Via COM

First, I'd like to note that I need to use the COM/OLE2 APIs, the low level stuff, the stuff you can put in a C Windows Console program. I can't use MFC. I can't use .NET. My question is: Given the following code: CLSID clsid; HRESULT hr; hr = CLSIDFromProgID(L"InternetExplorer.Application", &clsid); assert(SUCCEEDED(hr)); hr ...

Detect if Windows is running from within Parallels?

I'm trying to figure out a way to programatically determine if a copy of windows is running inside a copy of Parallels. I have found this post with very good instructions for determining if Windows is running within VMWare, VirtualPC, or WINE, but I haven't been able to find anything similar for Parallels. How does one go about detecti...

what is meant by dependencies in merge module?

what is meant by dependencies in merge module? ...

Help on Basics of Windows-Mobile

Hi all, can any one suggest me, how to learn about custom controls in c# for windows mobile, any tutorials regarding some sample app's of windows mobile, how to create new custom control application, owner-draw, etc..please suggest me Thanks Grabit ...

Change domain when authenticating with IE8

When I try to login to our WSS demo site the authentication popup forces me to use the domain I'm currently using on my local computer. The WSS site does not have the same domain. I'm running IE8 on Windows 7. How do I change the domain!? ...

Let my MFC dialog receive keystroke events before its controls (MFC/Win32 equivalent of WinForms "KeyPreview")

I have an MFC dialog containing a dozen or so buttons, radio buttons and readonly edit controls. I'd like to know when the user hits Ctrl+V in that dialog, regardless of which control has the focus. If this were C#, I could set the KeyPreview proprety and my form would receive all the keystrokes before the individual controls - but how...

Restarting windows service from website

I've a website that puts info into a mySQL database and a windows service (written in VB.Net) that polls the db and actions what's in there. However, occasionally it stalls and rather than having to RDP into the server, I want superusers to click on a button to restart the service. I can get the button to say, do a directory listing of c...

Any documentation for Win32 ShellEx StorageHandler?

I'm currently poking around with a new archive format and was interested in implementing a shell extension like the native Zip support that Windows XP has. This appears to be done by registering a shell extension that implements a StorageHandler. Problem is that according to MSDN, this handler doesn't exist. I've tried Googling variou...

to run application automatically after CAB file installation in windows desktop , VC++

Hello I am creating a cab file .After installing cab file its upload exe file to the destination path whatever i given . But is it possible for run that application automatically after CAB file installation . ...

Link to a file in a MessageBox VC++2008 Windows xp

Hi, after some processing my program shows a messagebox saying you can read a log file to know more about what has been done. I would like to show a link to the file instead the name of it. How is this done? Thanks a lot UPDATE: IDD_RESULT_DIALOG DIALOGEX 0, 0, 228, 58 STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAP...

Why can't my Perl program create files over 4 GB on Windows?

Why is the size of files capped at 4 GB when outputting to a file using print? I would expect that with streaming output it should be possible to generate files of arbitrary size. Update: ijw and Chas. Owens were correct. I thought the F: drive was NTFS formatted, but in fact it used the FAT32 filesystem. I tried it on another drive a...

Open Barebones IE with Shortcut

Is there a method to launch an Internet Explorer window from a desktop Icon such that the Status Bar and tool bar are hidden? When a user clicks on the icon only the windows form (Maximize, Minimize etc) icons should be present. The URL bar, Toolbar, Status bar should not be present. ...

Least privileges required to install a Windows Service remotely

What is the least set of privileges required that an account needs to be assigned in order to install a service using sc.exe? With account privileges I mean Local Security Settings in Windows Server 2003. This service needs to be installed as part of a deployment script and is done remotely to said server by issuing something like the ...

Windows processes in kernel vs system

I have a few questions related to Windows processes in kernel and usermode. If I have a hello world application, and a hello world driver that exposes a new system call, foo(), I am curious about what I can and can't do once I am in kernel mode. For starters, when I write my new hello world app, I am given a new process, which means I ...

How to track keyboard input and bypass SendInput

I'm developing an application which needs to count user keystrokes. It works fine however user can trick the app with SendInput() WINAPI function. Is it any way to differentiate between keystrokes made by real user and those sent via SendInput? ...