windows

What exactly occurs when selecting windows "Install Updates and shut down" logoff option?

When updates are available and the user selects Shut Down from the Windows start menu, a dialog appears with a menu for Shutdown, Log Off etc. One option which appears is "Install Updates And Shut Down" The question is, what exactly happens when the user presses OK? Is the task showing the dialog Explorer? (It seems impossible to tel...

Guidance : I want to work at Process Information level

I couldn't find a suitable title for this. I'm going to express my query with examples. Consider following softwares: Process explorer from sysinternals (an advanced task manager) Resource Manager : resmon.exe (lists each and every fine detail about resource usage about each process). For me these softwares seems like miracles. I wo...

Windows Forms Timer bug or bad use?

When programming a small OpenGL application using Windows Forms, I discovered something using a profiler that I thought was pretty wonky. I'm using a System::Windows::Forms::Timer to detect a combination of mouse idling and some other user input. The tick functionality is useful, but on occasion I want to 'reset' the timer. You can't r...

Do threads share the heap?

As far as I know each thread gets a distinct stack when the thread is created by the OS. I wonder if each thread has a heap distinct to itself also? ...

Colon/Asterisk as a filename delimiter?

I'm looking for a character to use a filename delimiter (I'm storing multiple filenames in a plaintext string). Windows seems not to allow :, ?, *, <, >, ", |, / and \ in filenames. Obviously, \ and / can't be used, since they mean something within a path. Is there any reason why any of those others shouldn't be used? I'm just thinking t...

Is there a windows program to automatically indent/tidy up PHP source code?

Is there a windows program to automatically indent/tidy up PHP source code? ...

Usage frequency of windows application

I have a homepage need to count the usage frequency of Notepad or Calc application. Is there any Windows API that I can know the usage frequency of windows application? ...

WinDbg showing different call stacks when attached to process when compared to crash dump

I'm analysing a deadlock that's occurring when using a native library alongside managed code. I'm using WinDbg to debug the problem with the intention of saving a dump such that the vendor might observe the issue on their premises. When attaching to the problematic process I see the following message before any call stacks: WARNING...

Installing bcrypt-ruby gem on Windows

I'm trying to install bcrypt-ruby on Windows Vista. So far, I have been able to install nmake.exe from a MS knowledge base article and cl.exe from installing Visual Studio 2008 Express. However, I am now encountering this error: cl -nologo -Wall -I. -IC:/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I C:/InstantRails/ruby/lib/ruby/1.8/...

Are mutexes really slower ?

I have read so many times, here and everywhere on the net, that mutexes are slower than critical section/semaphores/insert-your-preferred-synchronisation-method-here. but i have never seen any paper or study or whatever to back up this claim. so, where does this idea come from ? is it a myth or a reality ? are mutexes really slower ? ...

Editing Windows registry, from Python, Under Linux

Hi All, I am looking for a Python API (or a C API as I am willing to bind) for editing Windows registries from XP to 7 from within a Linux system. The Windows target will be a mounted volume under Linux. I would be willing to code a library if none exists. Therefore, any docs or internals on the registry would be handy too. Any help,...

windows xp localtime daylight savings time problem

My XP system with service pack 2 seems to have transitioned to normal non-daylight time BUT the C++ time routines have not. The Date and Time Properties tool tells me it is now 5:26AM CST BUT localtime() and strftime() think it is 6:26CDT. I have relinked the app and restarted the system since the daylight switch to no avail. If I unc...

Batch file editor for eclipse?

Is there a plugin that will give me syntax highlighting, etc. for windows batch (.bat/.cmd) files? I've been googling but no luck so far .... ...

Getting bssid-s from WMI

I tried to get information about available networks using WMI. Unfortunately I always get an empty list. I tried it both via VBScript (using http://www.scriptinternals.com/new/us/support/Internal/WMI%5FMSNdis%5F80211%5FBSSIList.htm) and with Jacob package for Java. It seems that winmgmts://localhost/root/WMI / MSNdis_80211_BSSIList and ...

Accessing dynamically loaded DLL (with LoadLibrary) in Visual Basic 6

I have a need to create a wrapper for a DLL, loading and unloading it as needed (for those interested in the background of this question, see http://stackoverflow.com/questions/1662075/how-to-work-around-memory-leaking-3rd-party-dll-no-source-code-accessed-by-tomc) . I'm doing it in Visual Basic 6, and the loading and unloading with the ...

Smartcard Driver (KMDF with SCardLib) Issues

I'm developing Smartcard Driver using KMDF and SCardlib, I used the WDK Smarcard Sample as reference, I think I implemented all of the callbacks correctly except for CardPower and CardTracking. (My reader and card don't now support for now RESET commands and insertion of new card) When I try to run test application that invoke SCardLis...

FileExists timeout

Possible Duplicate: Faster DirectoryExists function? I want to check if some file exists on a network drive. But FileExists is too slow if drive is disconnected. How can I check it with some timeout? Examples are welcome. ...

Producing the fastest possible executable

I have a very large program which I have been compiling under visual studio (v6 then migrated to 2008). I need the executable to run as fast as possible. The program spends most of its time processing integers of various sizes and does very little IO. Obviously I will select maximum optimization, but it seems that there are a variety of...

c#.net + export Active directory password in a file and import it in another AD

Hello, is there a way to export AD password in a file and then Import it to another AD from that file, it is not different to have hash password, just I want to know whether possible to import and export user and passwords from one AD to another AD using C#.net Thank you my AD is 2000 advance server and my new AD will be 2003 or 2008 ...

Git (TortoiseGit) - How to change the HEAD to a previous revision

Hi, When using Git with TortoiseGit: Does somebody know how to change the HEAD to a previous revision for a complete repository and/or just a single file? For example i have a repository containing multiple files. One file exists in three revisions (1 ; 2 ; 3). Now i want to change from revision 3 back to 2. TortoiseGit offers a "Reve...