windows

Windows equivalent of ulimit -n

Hi, What is the windows equivalent of the unix command " ulimit -n" ? Basically, i want to set the maximum fd limit via command prompt. ...

Windows Server 2008 (Domain Controller) local user problems

Hi, we have an issue with Windows Server 2008 when using it as a domain controller: We have an application that uses the local Windows database for keeping the user accounts. When a user inserts the username Padmin in all systems the login works perfectly. But in Windows Server 2008 (DC) the user is not found. The application doesn't a...

Overhead associated with OutputDebugString in release build.

Is there a significant overhead associated with calling OutputDebugString in release build? ...

WPF Gui that changes size with window?

Does anybody have a suggestion on how to create a gui that can change size with the size of the window. Similar to how Media Center works. If media center is maximized the fonts etc increase in size. So the gui is always "uniform"? ...

MySQL binary log file not being created - Windows XP

I've installed MySQL as part of XAMPP. While attempting to set up replication, I've added the following lines to c:\windows\my.ini: [mysqld] log-bin=C:/mysql-bin server-id=1 As you can see, I've specified a full path name for the logging file, so there should be no doubt about where it is. I've also used a forward slash as recommended...

Which one of the major operating systems is best suited for a quick boot and startup of a Java application?

I created a Java application which is the only application active on a workstation. (Similar to a kiosk system) The problem is that the application has to be up and running as fast as possible after starting the computer. I'm wondering which one of the major operating systems can be configured to provide the shortest startup time? I'm...

Check for null variable in Windows batch

I'm working on a Windows batch file that will bcp three text files into SQL Server. If something goes wrong in production, I want to be able to override the file names. So I'm thinking of doing something like this. bcp.exe MyDB..MyTable1 in %1 -SMyServer -T -c -m0 bcp.exe MyDB..MyTable2 in %2 -SMyServer -T -c -m0 bcp.exe MyDB..MyTable3 ...

Unable to connect to Web Developers built in web server

When I yesterday returned to Visual Web Developer I was no longer able to run/debug my projects. Clicking the green play button launches ASP.NET Development Server (and it shows up in the systray) but the browser only shows the error message "Firefox is not able to connect to localhost:58127" (translated from Swedish). IE7 says "Cannot s...

What is the easiest way to assign data in a Windbg script?

I have a windbg script that I plan on assigned to run via a breakpoint. In this script I want to tokenize a command using .foreach, but I want to be able to assign a variable to remember something about a current token for the next time around the for loop. For example, something like this (written in psuedo windbg-script-code): $this...

What is the best way to edit the middle of an existing flat file?

I have tool that creates variables for a simulation. The current workflow involves hand copying those variables into the simulation input file. The input file is a standard flat file, i.e. not binary or XML. I would like to automate the addition of the variables to the flat input file. The variables copy over existing variables in...

Windows Media Format SDK based encoder drops frame rate and will not recover

I have an application that runs 24/7 encoding video from a capture card. It goes into an encoder build against the Windows Media Format SDK. Under some circumstances (maybe a CPU spike?) the encoder will decide to drop to about 1/4 of the frame rate and never seems to recover. It just gets stuck at the lower frame rate until it is res...

What are some good tools for measuring memory allocations on Windows?

I have an application that keeps using up more and more memory as time goes by (while actively running), but there are no leaks. So I know the program isn't doing something totally wrong, which would be easy to find. Instead I want to track allocations so I can start tracking down the issue, and on a Mac I'd use Instruments, which gives...

Using 64-bits driver from 32-bits application

I have a Windows application that HAS to run as 32-bits (because of other limitations out of my control). However, my application has to call and access a driver which may be 32-bits or 64-bits depending on the system where it is installed. I access the driver through DeviceIoControl() calls, exchanging data structures declared in an in...

Is it possible to query a list of IP address(es) (or machine name(s)) that are currently logged into by a specific domain user?

Is it possible to query a list of IP addresses (or machine names) of domain computers that a domain user is currently logged into? The question "Getting logged on user’s name with or without domain in Windows" comes close, only I want to find the opposite. I ask about the possibility due to my lack of knowledge concerning the internal...

Good text editor for Windows?

I'm looking for a text editor, much like TextMate (www.macromates.com) on Mac, but I want it to have a built-in compiler. For example, I do not want an IDE like Visual Studio or Eclipse. I'm looking for an editor where I can click "Run" and it will compile my code and show me the results in a terminal. I know of a text editor, which ...

Find which drive corresponds to which USB mass storage device in WinXP

I have several USB drives connected to a WinXP SP3 computer, and I need to tell them apart programatically - I need to find which drive letter corresponds to which device (in this case, one device ~ one volume). I can get their Volume IDs and drive letters using mountvol, looking something like this: C:\WINDOWS\> mountvol \\?\Volume{bdb...

Integrated Windows Authentication with IIS, Firefox and SQL Server

Hi, I have a web site running on IIS on my localhost. This web site has directory security set to only allow Integrated Windows Authentication. It is part of an intranet and needs to authenticate by our domain accounts. I then connect to SQL Server with Integrated Security = SSPI in the connection string. This works fine with Microsof...

How to enumerate process' handles?

Is there any way how to enumerate process with given PID in windows, and get list of all his opened handles(locked files, etc.)? EDIT: I dont care about language. If it is in .NET, I'd be glad, if in WinApi (C), it won't hurt. If in something else, I think I can rewrite it :-) ...

Master Forms in windows form

Like Master pages in ASP.NET, do we have any similar concept for Windows Form application. So that I dont have to repeat the same portion of form (Header and footer) many times through out the application. ...

"call failed and did not execute"

I have a program that uses Microsoft RPC for interprocess communication. When a call of a method with [in, string] parameter like this (MIDL notation): interface IOurInterface { error_status_t rpcMethod( [in, string] const WCHAR* parameter ); } is invoked it is usually successful. But if the parameter string is long enough (more t...