windows

calling win32 dll api from C# application

Hi friends, I have created a win32 dll which sends and recieves ssl data packets from our server, I am calling a dll function using P/Invoke mechanism from my C# app which does all necessary tasks. When I call Connect(char* lpPostData) function and I use static char postData [] array as a posting request it works fine , if I use c...

How to get location of %temp%\Low when running as a low intergrity process

When a process is running at the low integrity level, you can't write to %temp% so I need a way to find the path to the %temp%\Low directory (Without hardcoding the word "Low") ...

Capture desktop without my window

I want to create a recording of desktop content, but without a certain window. The role of this window is to provide a text that will be read, while recording desktop changes. Any suggestions? ...

Installing cygwin with compilers and development packages

I need to compile kannel for windows and I installed cygwin. It says I don't have compilers to compile with cygwin. How do I resolve this ? Is there any full-featured cygwin image available anywhere on the internet ? Please help. SOS! I'm following this tutorial to compile kannel with cygwin. http://saurabhsachdeva.wordpress.com/2008...

Win32 multiline edit control loses carriage returns on SetWindowText()

In my C++ Win32 GUI application I have a dialog with an edit control created from a dialog template: EDITTEXT IDC_EDIT_Id, X, Y, W, H, ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL Whenever I manually input multiline text with carriage returns and call GetWindowText() the retrieved text is broken into lines with CR ...

Running a code before any operating systems is booted?

Is there a way to write a code that may run when System starts while a operating system is not loaded? I actually want to copy data of a particular partition, sector by sector, into another partition with the help of that code. ...

Can I use the .NET Framework from JavaScript (JScript) or VBScript?

I want to write a script that can run on a vanilla Windows (XP or later) system and call methods in an installed (GAC'd) .NET assembly. (I need to deliver the script to other people and I don't want to assume that they have anything in particular installed (other than the the assembly in question). Can I use JavaScript (JScript) or VBS...

Websphere Portal

What is the Websphere portal6???? What all can i do with this??? How can i install or run this thing??? What langauge is used in it??? is it free??? is it somewhat like drupal?? so plzz excuse my ignorance m a newbie and hv spent a lot of tym over net for finding the answer to there questions.... so plz help me out guys ...

CMake linking against shared library on windows: error about not finding .lib file.

I've got a library definition in CMake that builds a shared library out of a small set of files, and I've got it compiling just fine on both linux and windows. However, I've also got another library that links against the shared library and it works fine on linux, however, on windows I get a message along the lines or "error can't find ...

How properly bundle&install python to windows users

I need to redistribute Python 2.6 for my users. Currently, I execute the silent instalation for the msi installer from http://www.python.org/download/, but I have some problems, like if other version of python is installed this not get the default. In the other hand, despite this could be rare, if a user have already python and I insta...

Use PuTTY as a local terminal emulator?

Currently, I use PuTTY for SSHing into my linux server and Cygwin for local development when working on my Windows machine. Sadly, the terminal emulator that comes with Cygwin doesn't approach the quality of the excellent terminal emulator that comes with PuTTY. And it occurs to me that there really shouldn't be any conceptual difference...

Looking for a cocoa method to simulate a button press that does not have an Event as a paramter

I need to simulate a button press on my Cocoa button programatically and I am trying to do this on cocotron which unfortunately does not have the NSEvent method: mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure: implemented. Is there anyway to programatically simulate a button pre...

How can I develop windows driver that does not touch hardware?

I need to create a WDM driver that emulates a device that is not present. The driver needs to be loaded when the O/S boots, opened and closed via SetupDiXXX and CreateFile, needs to respond to DeviceIoControl, etc. I have the driver coded, but XP refuses to load it. The system event viewer says: The MyDevice service failed to sta...

Run windows service from winform

Hello All How can i control (start, stop) windows service from my windows application? ...

Build problems with Visual C++ project after checking in and checking out from CVS

Hi, I am building a cross platform product and one of the requirements is across windows(win32,AMD64 and IA61). The product as is relatively simple CLI but we have a separate build team who checks out the code from CVS and build in separate build environments. I am able to build succesfully(using Visual C++ 2005) in one platform(AMD ma...

Maximum number of drives in windows?

I'm trying to figure out the available disk space programmatically in windows. For this, I need to first get a list of the available drives, then check which of those are local drives and then query the available bytes on each local drive. I'm a bit stuck on the first part, where the API presents two functions: GetLogicalDrives (http:...

Close all popup dialogs when main window closed in ASP.NET

In my web application a lot of popups opened from the parent window using 'window.open'. So I want to close all those popups when my application's main window is closed. How can I do that? ...

Windows vista CD Autorun does not execute

Hi All, I have three files 1. index.htm 2. autoplay.exe (I have written this to run index.htm in the root folder using default browser.) 3. autorun.inf: [autorun] Open=autoplay.exe Label=My Presentation Action=Run my presentation Publisher=Ali Habibzadeh I have copied this to a blank cd but it only triggers the autoplay dialog rat...

How can i restrict the behavior of a Windows service?

How can i restrict the behavior of a Windows service? ...

Programming for Windows with no redistributable

Hello! It might be a stupid question, but all of my tries to google this failed. The question is: How can you develop windows applications that don't need a redistributable pre-installed? I want to create applications that run also under older versions of Windows which don't have the .NET Framework or something similar included. Thank ...