windows

log information of remote login in xp

how can i get the user log information, who accessed the system using remote login for windows XP. ...

gVIM on Windows: execute buffer and paths with spaces

Hello. In gVim for windows it's possible to execute current buffer via :!% command. But, unfortunately, the buffer file name is supplied to cmd.exe without quotes, so if file path has spaces gVim will not be able to execute it. Is it any easy way to fix it in order to be able execute .bat, .py etc from within gVim? ...

cryptoapi windows 7 support

Hello Microsoft has introduced cryptography next generation (CNG) from Vista and server 2008 onwards. But my question is to know whether microsoft supports the old cryptoAPI(say for eg. in windows 2003 and windows xp, - crypt32.dll) in windows 7 and server 2008. Thanks Raj ...

How does a Windows antivirus hook into the file access process?

The subject says it all. A normal antivirus has to intercept all file accesses, scan the files and then optionally deny access to the file (possibly even displaying a prompt to the user). How can this be done? I'm aware of a method called API hooking, but that's a really dirty undocumented hack - and as such isn't really reliable. What'...

Reading HKEY CURRENT USER from the registry in Python, specifying the user

In my application I run subprocesses under several different user accounts. I need to be able to read some of the information written to the registry by these subprocesses. Each one is writing to HKEY_CURRENT_USER, and I know the user account name that they are running under. In Python, how can I read values from HKEY_CURRENT_USER for a...

Appropriate location for scheduled tasks

In Windows, where is the most appropriate place to store an executable that will be ran as a scheduled task on a server? A file share? "C:"? "C:\Windows"? Others? ...

Can a WIN32 program authenticate into Django authentication system, using MYSQL?

I have a web service with Django Framework. My friend's project is a WIN32 program and also a MS-sql server. The Win32 program currently has a login system that talks to a MS-sql for authentication. However, we would like to INTEGRATE this login system as one. Please answer the 2 things: I want scrap the MS-SQL to use only the Djang...

CFSTR_FILEDESCRIPTOR/CFSTR_FILECONTENTS 'Copying Files' Dialog missing

Hi, I have a namespace extension that supports copy-paste using the CFSTR_FILEDESCRIPTOR/ CFSTR_FILECONTENTS to copy virtual files to the clipboard. However, the 'Copying Files...' progress dialog does not show up. Explorer appears to hang until the copy operation is complete. Any suggestions as to how to get the progress dialog to w...

Best practices for windows applications?

I was wondering where one should place configuration files on Windows, as I heard Program Files was read-only on Vista. Come to think of it, I'm fairly behind the times on best practices so I'd appreciate any lists of them you have handy, such as... Best practices for installers? Best practices for user interfaces? Where should one put...

Getting a file path from a file handle in Windows

In Windows, is there a straightforward way to get the full path of a file, given only the file's handle? I can't use GetFinalPathNameByHandle() because that's Vista+ only and our product has to work on XP. However, something that simple, or close to it, would be best. ...

Where should I put configuration files in .NET?

In .NET, how should I get access to a folder for holding configuration data specific to the current machine or user (to avoid hard-coding a path)? (related:) http://stackoverflow.com/questions/1152065/which-is-the-best-location-to-keep-program-configuration-file-in-windows Question answered... by the way, here's typical WinXP output of...

NoClassDefFoundError on org.jruby.Main

I'm trying to install the hpricot gem on my Windows machine using JRuby 1.4.0RC1. I'm trying to follow the advice to the related question (see -> http://stackoverflow.com/questions/726412/installing-hpricot-for-jruby/1323619#1323619). Per the answer's advice I pulled the git head of hpricot and from it's dir ran: jruby -S rake package...

Why are Route.EXE and WMI / IpHelper reporting different metrics?

When I call "route PRINT" from the command line in Windows XP I get (? characters are IP addresses I obfuscated intentionally for posting): Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.50.1 192.168.50.106 25 0.0.0.0 0.0...

How to detect if a monitor is in standby mode?

Under Windows, is there a way to determine programmatically if the primary monitor is in standby mode or not? ...

Multithreading libraries for Objective-C

Excluding Cocoa (and its NSThread), what multithreading libraries would you recommend? The application's engine must run on multiple platforms (Windows, Linux, MacOS, iPhone), and be multithreaded. Abstracting the library to compile against platform-specific MT libraries is possible, but incurs an extra layer of overhead and complexity...

C++ change newline from CR+LF to LF

I am writing code that runs in Windows and outputs a text file that later becomes the input to a program in Linux. This program behaves incorrectly when given files that have newlines that are CR+LF rather than just LF. I know that I can use tools like dos2unix, but I'd like to skip the extra step. Is it possible to get a C++ program i...

[C#] Celsius symbol in RichTextBox

I write windows application using C# and .NET2.0. In RichTextBox I would like to show Celsius symbol. How to do it? Is it possible? ...

Running another program in Windows bat file and not create child process.

I have subversion server with a post-commit hook to do something. I want the checkin finish soon, not wait the hook script. But by design, the Subversion post-commit hook script will run until all child process exit, so using somthing like: start another_prog... in the hook bat file has no use. So I want to know how to run another p...

Maximum number of concurrent TCP/IP connections - Win XP SP3

Does anyone know what is the maximum number of concurrent TCP/IP connections on Windows XP SP3? I am trying to load test a machine and would like to know what is the max number of tcp connections that can be opened by an application (in my case, java application) towards that machine. ...

Converting a Windows Dll to .lib for C++ Visual Studio 2008

I know there is a tool called Dll to lib but the developer is asking $1000. I only need to convert one library, once, so its not easy to justify that price. I tried IMPLIB32.EXE, but I just get empty .lib files. How can I accomplish this? Perhaps I can write a simple conversion app? Added1: The Dll's are typically stdcall not cdecl an...