[Windows API] Programmatically invoking Map Network Drive dialog.

This how the map network drive dialog look like. So how do we show this dialog programmatically? The windows API’s for showing this dialog is: WNetConnectionDialog and WNetConnectionDialog1. I’ve demonstrated both WNetConnectionDialog and WNetConnectionDialog1 in this code snippet. WNetConnectionDialog is a simple API which takes a window handle and a DWORD. While WNetConnectionDialog1 is an […]
Continue reading…

 

[Tools] PSR: Problem Steps Recorder

You’re not going to believe that you have a screen capture tool built into your operating system. LOL yes, its called PSR.exe. PSR stands for Problem Steps Recorder. The ideal usage of this tool is as follows… Capture repro steps (screenshots) for a bug and to send it your customer Capture screenshots for a particular […]
Continue reading…

 

listdlls: listing/searching dlls used in a Windows process

Download: http://technet.microsoft.com/en-us/sysinternals/bb896656.aspx SysInternals product suite has an application called listdlls which helps in listing/searching for dlls loaded in a process. This tool is useful in the following scenarios. List all dlls used in a process or within all processes… List all processes using a particular dll List all unsigned dlls List all relocated dlls List […]
Continue reading…

 

Customizing/Optimizing the Windows Command Prompt: Cmd.exe

Default settings The default command prompt setting on Windows is pretty limited. Some limitation that I found while working on the command prompt is as follows… Screen buffer size is very little. This means output of commands like ‘tree’ will not show up entirely in the command prompt. Once you scroll up you’ll not see […]
Continue reading…

 

Terminal Services RemoteApp™ Session Termination Logic – Remote Desktop Services (Terminal Services) Team Blog – Site Home – MSDN Blogs

Useful read on Remote Desktop Services session termination logic… Terminal Services RemoteApp™ Session Termination Logic There are several heuristics and session time limit Group Policy settings that dictate the lifetime of a RemoteApp session. The main difference in behavior between a RemoteApp session and a regular full desktop session is that there is no explicit […]
Continue reading…

 

The Next Chapter: An open letter from Steve Ballmer and Stephen Elop – The Official Microsoft Blog – Site Home – TechNet Blogs

The Next Chapter: An open letter from Steve Ballmer and Stephen Elop – The Official Microsoft Blog – Site Home – TechNet Blogs.   The Next Chapter: An open letter from Steve Ballmer and Stephen Elop   Microsoft to acquire Nokia Devices & Services, accelerating the Windows ecosystem Nokia and Microsoft have always dreamed big […]
Continue reading…

 

How to enable LARGEADDRESSAWARE?

The command to enable large address aware is as follows… EditBin /LARGEADDRESSAWARE NotePad.exe How to check if the above command worked or not? Run the above executable (in our case NotePad.exe) with DumpBin.exe. C:> DumpBin /Headers NotePad.exe FILE HEADER VALUES              14C machine (x86)                4 number of sections         4BA1DC16 time date stamp Thu […]
Continue reading…

 

systeminfo command

To gather system information of a computer running windows use the command ‘SystemInfo’. The command gathers following information… 1. Operating system information 2. Processor information 3. Input local information 4. Installed hotfix information 5. Network card information A good way to use this command is to redirect output to a file, for e.g. SystemInfo > […]
Continue reading…

 

Dump file

This blog entry deals with user mode dumps only. Kernel mode dump files is not dealt with here but should be quite similar. Define dump file It is the memory snapshot of a process. The dump file saves all information pertaining to a process. The information include, loaded modules/dlls, handles, executing threads and other stuffs. Optionally we can […]
Continue reading…