windows

Get remote servers environment variables

The problem: We have Cobol applications that run from many servers (mostly server 2003) on our network. Many if not all of these applications use environment variables for there setting. The Question: From one workstation can you gather the full list of environment variables from a list of known servers remote? Optimally i would like to...

Where the MSI file is copied after the installation?

I have to replace it because of a bug that blocks the software uninstallation, but Windows can't find the MSI file if I use the file search utility, but I think the MSI is stored somewhere where the Add or Remove Programs utility can use it. ...

Can I develop for IPhone using Pear-PC or similiar besides VMWare?

Good morning I've got Windows Vista and Windows 7 here. I intend to create an IPhone application which connects to my website in order to read and show some database records. I cannot afford a Mac Mini or buying expensive hardware and software. I was wandering if it's legal and possible to create IPhone applications, running Mac OS ...

WinInet and SOAP

Hi, Currently I use the CURL open transport library to genereate http requests with a soap header. This all is implemented in C/C++. I was able to port this to Windows mobile howver I wonder whether I can use WinInet to do the SOAP request? Just to use less memory on the mobile device. Are there samples on how to do this? Thanks in ad...

Does C# windows service takes time to start around 60-65 sec?

HI guys, I have designed a windows service in C# and it takes time to start(60-70 sec).I was wondering does it generally take that long to start or it is my code which is taking that much time. I have two threads which runs every 6 seconds and 1 minute. And if it takes that much time, can somebody tell me why it takes that much time. No...

hudson with NAnt - build file access

Hi, I'm new to all this. I have installed Hudson with the NAnt plugins on my box running MS Server 2008. My first test project is to run a build on one of the NAnt-0.85 example builds (Simple.build). This continually fails with console error message: Error loading buildfile. Access to the path 'C:\Users\xxx\nant-0.85\nant-0.85\exa...

Win32: Does a window have the same HDC for its entire lifetime?

Am i allowed to use a DC outside of a paint cycle? Is my window's DC guaranteed to be valid forever? i'm trying to figure out how long my control's Device Context (DC) is valid. i know that i can call: GetDC(hWnd); to get the device context of my control's window, but is that allowed? When Windows sends me a WM_PAINT message, i am ...

C# Drawstring clear rectangle Or no rectangle? possible

here is the code i'm using, i really need to make it so the text does not appear inside of a box. is that possible? int width = (int)g.MeasureString(line, f).Width; int height = (int)g.MeasureString(line,f).Height; b = new Bitmap(b, new Size(width, height)); g = Graphics.FromImage(b); g.Clear(Color.Empty); g.DrawString(line,f, new S...

how can I find out which user send the print command to windows/windows server programmatically?

Hi , I have a windows network (peer-2-peer) as well as Active Directory and I need to log the name of users who send any kind of print to the server. I want to write a program to log their username and/or their respective IP and I'm familiar with c#.net and c++ but I haven't found any clue regarding how to solve my problem. is there any...

Way to programmatically set Java options for Tomcat as a Windows Service

I am looking for a way to programmatically set Java Options for Tomcat 6.0 running as a Windows service. When using startup.bat and shutdown.bat, you can set these variables in a setenv.bat or catalina.bat file. However, for Tomcat running as a Windows Service, these options must be manually set in the Java Options section of the config...

Creating Windows Account using C++

Hi all, I will give a basic rundown of the situation first. I work for a game server rental company that is falling victim to an exploit inside of a major game engine (source). Basically, the developers left not one but two exploits inside the code, one to Send/Recieve files, and one that lets clients run plugins. Whats happening is cli...

Windows 7 theme for WPF?

Is there any way to make a WPF app look like it's running on Windows 7 even if it's running on XP? I'm looking for some kind of theme I can just paste in. I'm aware of the themes project on Codeplex (http://www.codeplex.com/wpfthemes), but it lacks support for DataGrid, which is something I critically need. I was thinking maybe the Windo...

Connecting to Oracle 8.1.7 - how to get the right ODBC driver?

I have a Vista machine that needs to remotely connect to Oracle 8.1.7 database. Installing the instant client with the ODBC pack gets an ODBC driver, but when you create a datasource with it, it says it's no longer compatible with that database version. What's the best way to get the correct ODBC driver? ...

How to use patches created in windows (with CRLF) in linux?I

Standard linux patch hard-coded only for unix text files. PS: I do no want convert ALL to unix and then convert result back. ...

Context menu Items missing

I have an operating System Vista(64-Bit). I have made a dll.For example, i have installed "folder protect". due to this dll when i right click on any folder the "folder protect" appears in the context menu.Actually any software being installed appears in the context menu.But sometimes it appears and sometimes not.on the other hand in wi...

Understanding the C function call prolog with __cdecl on windows

Compiling this simple function with MSVC2008, in Debug mode: int __cdecl sum(int a, int b) { return a + b; } I get the following disassembly listing: int __cdecl sum(int a, int b) { 004113B0 push ebp 004113B1 mov ebp,esp 004113B3 sub esp,0C0h 004113B9 push ebx 004113BA push esi 00...

Spurious 'system\cmd.exe' in FOR /F loops

Hi folk, This is one of those requirements that seem to get more complicated, every time I find a Windows/cmd shell hack that need a 'work around'. Essentially ... I need to iterate through a specific list of folders in a DOS Shell FOR loop. Here is the loop I came up with: echo ^ [start for test] for /F "usebackq " %%f IN (`dir...

interactive communication console programs(like client-server) windows

I have two console programs (ex. first - client, second - server). Do Windows have a command or resource to connect it? Client ask question, Server answer. Anyone encountered this problem? (just win) ...

how can i get connection bandwidth used per process under windows os?

i would like to know about software that can do this and if it is possible to be programmed under the .net framework. please dont post irrelevant software! thank you ...

Why does this trick not work for me?

http://stackoverflow.com/questions/192479/whats-the-coolest-hack-youve-seen-or-done/192691#192691 I just changed mplayer to woplayer, and I don't see what this does: findstr /I /R %1 dirlist.txt > playlist.txt What's dirlist.txt? ...