windows

Can address space be recycled for multiple calls to MapViewOfFileEx without chance of failure?

Consider a complex, memory hungry, multi threaded application running within a 32bit address space on windows XP. Certain operations require n large buffers of fixed size, where only one buffer needs to be accessed at a time. The application uses a pattern where some address space the size of one buffer is reserved early and is used to...

How do I control the text input panel programmatically (tabtip.exe) in windows vista/7.

Hi, I'm adapting an application for touch screen interface and we're want to use the tablet text input panel included in windows vista/7, specifically its keyboard. I want to show and hide it as appropriate for my app. Basically I want ShowKeyboad() and HideKeyboard() functions. What's the best way to control this. I looked at the ITex...

VB.net Windows Service with File Watcher

Hello Experts, I have a windows service that runs at 5 PM everyday. Once it starts it will use a method to watcher that monitors a folder and if any new file is created it will upload it to Mainframes. My questions is once the service is started for how long will the filewatcher be effective?? When will the service stop watching the fo...

How to get the application exit code from the Windows command shell?

Possible Duplicate: How do I get the application exit code from a Windows command line? Of course, if possible, without any VBScript-like scripts. ...

How to cycle through xcode windows (or open 'help' within the bottom pane)?

Hi. I'm using a MBP... In Xcode 3.2 the help/reference pops up in a new window when I ALT, CMD, DOUBLECLICK on a class name**. In previous versions it looks like it used to open up in the bottom pane of the main Xcode window. Can I replicate that in 3.2+? The problem I'm having is that if either one of the Xcode windows (help or main) ...

Grabbing memory from another process

in Windows, lets say I have used DLL Injection to get into another process. I have also done some screencaptures of the memory on the process I have injected into and know the location of the data I want to pull out. Lets say there is data in the other process at 0xaaaaaaaa that contains a certain value. How do I grab this value from tha...

Accessing contents of char** on a windows x64 cause exception

The following piece of code is causing an exception on a windows vista x64 and i can't figure why. size_t pBaseAddr; char *lpszFuncName; IMAGE_EXPORT_DIRECTORY *pExportDir; const char **lpszNames; unsigned int dwIndex; lpszNames = ((const char **)(pBaseAddr + pExportDir->AddressOfNames)); if(lpszNames == NULL) return NULL; for(dwI...

Is it possible to ssh into Windows (through a cygwin sshd) and start a program on a logged in Windows user's desktop?

Is it possible to ssh into Windows (through a cygwin sshd) and start a program on a logged in Windows user's desktop? Put another way, say a user ABC is logged in on windows and a remote user logs in with ABC's login/password over ssh, can remote ABC pop up an app on the local ABC user's desktop? I am asking this on Stackoverflow and ...

Python detect USB drive then assign drive letter?

Here is the problem. We have 100s of external 500gb USB drives. Each drive will travel to a new location through the year. What is the best way to automatically detect that a USB drive has been plugged into a Windows system, then assign a Z:\ drive letter? These USB drives will be plugged into lots of different computers so a script like...

Effect of exit function in Windows Service Programs

I have a program that is a windows service. It is started by StartServiceCtrlDispatcher function. It's network server that accepts user's inputs as command for controlling purposes. Now, I want it to have the ability to be shutdown by users, i.e. when user type a "quit" command, the service will stop. (Don't worry about how the service c...

Resources To Learn About Batch Files

In my new project I need to use batch files(many of them), but now I need to know about they and where can I read some good tutorials to use they very good ;) PS: I need to distribute my application for end-users. ...

Collecting usage data for a desktop application

Hi, I'm going to be running some large scale usability tests of my software for a science project. We have a lab of about 30 computers running Windows XP. Our application is written in Python and PyGTK. We want to be able to collect the following without staff intervention (automatically on our application start): A recording of the...

Porting linux socket application to windows usins MsDev

Is there openly available headers which can be used to compile linux socket application (using socket/udp/ip headers). they should define structures like sa_family_t,in_port_t Mandatory is to use Msdev and not cygwin/gcc or mingw compiler. ...

UnsatisfiedLinkError When Loading a Library from Java in MATLAB

I've been integrating simple java modules into the MATLAB environment on Windows with some success. Recently I encountered a problem with a third-party library which attempts to load a dll. The java ClassLoader throws the UnsatisfiedLinkError when the load is attempted: java.lang.UnsatisfiedLinkError: no <libname> in java.library.path ...

Anybody tried to compile "Go" on Windows?, Its seems start supporting to generate PE Format now.

http://code.google.com/r/hectorchu-go-windows/source/list If you could compile it successfully, I like to know the procedures of how to. ...

One click closure windows tool to compile all js files in folder

Is there a tool or a bat file or some such that allows one click to compile all js files inside a folder into one compiled js file? Thanks. ...

Distributed caching on 64-bit Windows machines

Are there any production-ready distributed caching mechanisms like memcached that can be used in a Windows 64-bit environment? From what I've seen, memcached is run on linux machines in production environments, however I don't have control over the fact that we will be using 64-bit Windows machines. Additional requirements include for ...

What is the "Shell Namespace" way to create a new folder?

Obviously this is trivial to do with win32 api - CreateDirectory(). But I'm trying to host an IShellView, and would like to do this the most shell-oriented way. I would have thought that there would be a createobject or createfolder or some such from an IShellFolder. But neither IShellView nor IShellFolder nor even IFolderView seem to...

Windows Named Pipe Problem

I'm writing a driver that communicates with a userland application through a named pipe. The userland application creates the named pipe by calling CreateNamedPipe() and then passes the pipe name to the driver by invoking an IOCTL. The driver then opens the pipe by calling ZwCreateFile(). The userland application then hits a loop that r...

Opening a Web URL with a TCL App that is Sitting on a Network Drive

Hello: I just finished a TCL Db App that includes a featrue to open web page URLs. My code is as follows ($adr is the url): eval exec [auto_execok start] \"\" [list $adr] This code works fine on my Windows workstation. However, after I placed the app on a network drive I receive the following error: '\Drive\Share\Folder\Subfolder' ...