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…

 

[AgeStore] Clearing old debugging symbol files from downstream symbol store

About AgeStore It’s a good habit to clear out old symbol files. Debugging tools for windows comes with a built in tool which help us do this. The tool is named ‘AgeStore’. AgeStore executes in three modes… -date=mm-dd-yy    – deletes all files that were last accessed before the specified date. -days=xx                – deletes all files […]
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…

 

[.net] Setting up Fusion Logging to figure out Assembly bind failures

What is fusion Fusion is the module in .net which manages binding of .net assemblies. So the question here is why do we need to setup fusion logs. Since we know that fusion is module which is responsible for assembly bindings, its good to know that it also emits verbose logs known as fusion logs. […]
Continue reading…

 

Where is TstCon: ActiveX test container

Long back we used to have an ActiveX test container called TstCon, which was used for debugging our ActiveX controls. I went looking for the container and found it in the samples folder, Ideally it will be the following sample folder… rootAllVCLanguageSamplesC++MFColeTstCon More of why this tool was moved out of the standard tools that […]
Continue reading…

 

[Windows API] Code to get file size » bits and bytes

[Windows API] Code to get file size » bits and bytes In this blog post I’ll be demonstrating different API’s and techniques used to retrieve size of a file. I haven’t tested this much, you might want to add parameter integrity check etc., also probably better error checks. Use this code at your own risk. […]
Continue reading…

 

[Windows API] Code to get file size

In this blog post I’ll be demonstrating different API’s and techniques used to retrieve size of a file. I haven’t tested this much, you might want to add parameter integrity check etc., also probably better error checks. Use this code at your own risk. Using GetFileSizeEx Using _wstat64 Using GetFileInformationByHandleEx Using FindFirstFileW Using fseek and […]
Continue reading…

 

Technical Interview Question: Is there a bug?

Is there a bug in the following C++ code snippet? class Base { public: Base() : m_pBaseIds(new int[200]) { } virtual ~Base() { DelPtrs(); } protected: virtual void DelPtrs() { delete [] m_pBaseIds; } private: int* m_pBaseIds; }; class Derived : public Base { public: Derived() : m_pIds(new int[100]) { } protected: virtual void DelPtrs() […]
Continue reading…

 

IRCTC App for Windows 8 and Windows Phone goes live

Please download the IRCTC (Indian Railways Catering and Tourism Corporation Limited) app from the following locations… Windows Phone IRCTC app can be downloaded from here Windows 8 IRCTC app can be downloaded from here The IRCTC is an amazing organization. To share a few statistics of IRCTC… 20% of the monthly Internet traffic in India […]
Continue reading…