windows

Is there An Appllication For Testing Various File I/O In Windows?

I'm developing a network-redirector like SMB. I want to test various file I/O to compare NTFS or SMB implementation. What I want to test are, CreateFile Read, WriteFile DeleteFile RenameFile Set, GetFileInformationByHandle etc. And it' would be better if it can measure each I/Os duration. Is there a program I can use? ...

How to read some data from a Windows application memory?

Hi, guys. I have an application, which displays me some data. I need to attach to this app's process, find the data I need in memory (one single number, actually), and save it somewhere. This application doesn't seem to use standard windows controls, so things aren't going to be as simple as reading controls data using AutoIt or somethi...

Why would running a Rails app as a WEBrick server work, but installing it as a Mongrel service would not?

Yet another newbie RoR question from me. I started banging my head against a wall last night when I simply could not get my Rails app to display in my browser after installing it as a Mongrel service. I installed it using a command like this (from the app's root directory): mongrel_rails service::install -N MyAppName -e development -...

Getting Function for a DLL Address Following a Crash

I know that when an application crashes, the system reports that it crashed at location 0x00004b79 in mydll.dll. I have the source code, and I have the binary, but I don't have a PDB or any listing files from the build of that DLL. The crash is repeatable, but I can't install a debugger on the production machine, and the crash does not...

Adding a logoff script

I have some scripts that I would like to run every time a user logs off. I would like to create something that programatically sets up the logoff scripts. For example, an exe or a cmd file that can be executed to add the logoff script to the list of logoff scripts that Windows executes. Because of this, a Windows API function or a Window...

How can I get the size of an autosized WPF Window?

I have a Window that is autosized around it's content. For an animation I'd need it's width and height. ActualWidth is always the max width of the window, Width and Height properties say NaN. ...

Calling C++ function from JavaScript script running in a web browser control

I have embedded a web browser control in my c++ application. I want javascript running in the web browser control to be able to call a c++ function/method. I have found mentions of three ways to do this: Implement an ActiveX component that acts as a middle man. (Implementation details here: http://blogs.msdn.com/b/nicd/archive/2007/04...

Starting a service?

Well, I've recently been getting into developing drivers, so I thought I should make a class to programmatically start services. But of course, I ran into some trouble on the way, as usual. I'm using StartService to start it, but for some reason it just hangs, I've done some research over the internet and it seems it waits for ensurance...

C# - Gets user input, convert the inputted data and then output it into a text box

I'm trying to compile my first C# application (based on Visual Studio) ... also using Windows Forms for input (from user) and output. User puts numbers into six text boxes (e.g. 2009 20 02 02:49:35) and then when the 'Convert' button is clicked, the program outputs E1234FB3278DC0 in a different text box. Not sure if this is relevant bu...

Creating RightClick Menu for Explorer

If some one can provide some sample articles on how to create Right Click Menu for Drives. Here is what needed: The right click menu will contain two additional things, i.e: Connect and Disconnect. Can we make it conditional? I mean for some condition The drive will make the Connect enabled(Ideally when not connected) and when connected...

Query the Windows registry through batch syntax

I'm trying to query a particular registry folder (or whatever you want to call it) to obtain some information. Particularly the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall folder contains a list of installed software. The issue is that each software is identified through a random key value like {0001B4FD-9EA...

Windows: How to change monitor's backlight brightness

Ever since I've been using an external monitor with my laptop, when I need to change the backlight brightness I have to press the monitor's buttons to navigate through its menu and adjust the brightness. That is really a pain. It's too many button presses! When I was using my laptop's integrated monitor, that was as simple as presing the...

How important is a good modeling tool toward system design

While a quick wiki/google flood me with numerous uml freeware, most of them doesn't meet my expectation (limited to "drawing" level instead of "modeling"). I know sparx's EA and IBM rational rose offers complete design-to-implementation toolkits but they are out of my budget :( Would if be significantly different if I were to sketch usi...

Can I prevent digital signature warning when I start a java application from command line?

Is there any way to prevent the "The application's digital signature cannot be verified" warning message from appearing when you run a Java application from the command line? I'm looking for a command line solution that would allow to start an application like this on a continuous integration server, so I need a solution that would not ...

Device driver without the device?

I'm creating an application that needs to use some kernel level modules, for which I've divided the app into 2: one user-level program and one kernel level program. After reading about device drivers and walking through some tutorials, I'm a little confused. Can there be a device driver without any specific device associated with it? ...

Open file in exclusive lock mode

Is there any way to open the file with exclusive lock on windows machine?(without using any code,etc) ...

Windows Search using OLE DB SQL Fields

Hi I need to use Windows Search within my .NET application to search for certain files containing certain keywords. All of this seams easy enough using OLE DB to connect to the Windows Search data store on Windows 7. I have what I hope is a seriously easy question. I have been searching high and low for the field definitions for the SQ...

How can i set the proper font for java application on windows and mac?

I have been developing a program on a windows machine. All dimensions for the application are based on the default windows font and size. The default mac font seems to be larger in size, therefore not all text is visible in labels, comboboxes, ... How can i make sure that the proper font size is used on mac machines? ...

Process sleep when form loses focus

While writing a server application with a windows form for a GUI a problem appeared. When a form loses focus the process sleep, so any networking will not work unless the form is in focus the whole time. Is there any way of creating a dialog or window that will keep its process running continuously? I call a function called cServer::Ge...

C++, workaround for macro using 'this' in static member functions

I've overridden new so that I can track memory allocations. Additional parameters such as __FILE__, __LINE__, module name etc are added in the #define. However I want to add the address of the calling object to the parameters so that I can backtrack up allocations when hunting down problems. The easiest way is to add 'this' to those add...