Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Win32   (RSS)

Windows Performance Tools Kit

Windows Performance Team has released Windows Performance Tools Kit to the Windows SDK for Windows Server 2008 and .NET Framework 3.5. http://www.microsoft.com/whdc/system/sysperf/perftools.mspx This is the same tool Windows team uses to diagnose Windows
Posted by junfeng | 3 Comments
Filed under:

From Unhandled Exception to Debugger Attach

I was always wondering what is happening between an application throws an unhandled exception, and a debugger attached to the process. Apparently the information is right under my nose, but I was blind. Windows Debugger's documentation about post-mortem
Posted by junfeng | 1 Comments
Filed under: ,

Windows Vista Sxs Activation Context Cache

Sxs activation model is built on top of Actication Context. To create an activation context, use the API CreateActCtx. Activation Context is used very frequently in Windows. For example, a simple operation like start notepad, open the common file dialog,
Posted by junfeng | 6 Comments
Filed under: , ,

advantages and disadvantages of delay load (LoadLibrary)

Some knowledgeable people posted the following wisdom about delay load. Archived here to share. The advantages are that dlls get loaded only when they are used, and you can “statically” bind to an i mport that may not exist at runtime, and as long as
Posted by junfeng | 3 Comments
Filed under:

RT_MANIFEST resource, and ISOLATION_AWARE_ENABLED

RT_MANIFEST Since Windows XP, Windows reserves a new type of resource RT_MANIFEST for SxS manifests. Within the RT_MANIFEST resource, Windows reserves ID 1-16. A binary cannot have two IDs of resource type RT_MANIFEST within 1-16. Windows will refuse
Posted by junfeng | 3 Comments
Filed under: ,

Diagnose SideBySide failures in Windows XP/Windows Server 2003

Since I published my article on how to diagnose SideBySide failures , I have received many feedbacks that since Sxstrace is not available in Windows XP/Windows Server 2003, it is hard to figure out what is wrong in Windows XP/Windows Server 2003. This
Posted by junfeng | 1 Comments
Filed under: ,

Activation Context Creation flow

The following describes how activation context is created currently in Windows XP/Windows Server 2003/Windows Vista. 1. CreateProcess/CreateActCtx is called. 2. CreateProcess/CreateActCtx does some validation, constructs a message, sends the message to
Posted by junfeng | 2 Comments
Filed under: ,

Genman32 – A tool to generate Sxs manifest for managed assembly for Registration Free COM/.Net Interop

Attached to this article is GenMan32, a tool to generate sxs manifest for managed assembly to use in registration free COM/.Net Interop scenario. (For more information about registration free COM/.Net interop, please read http://blogs.msdn.com/junfeng/archive/2006/05/17/595140.aspx
Posted by junfeng | 12 Comments
Filed under: , ,

Attachment(s): GenMan32.zip

How to tell if the current user is in administrators group programmatically

You can use CheckTokenMembership ( http://msdn2.microsoft.com/en-us/library/aa376389.aspx ) to check whether a user is in administrators group. There is an example in the MSDN document. The example will not work in Windows Vista. In Windows Vista, even
Posted by junfeng | 7 Comments
Filed under:

Debugging LoadLibrary Failures

LoadLibrary is one of the mostly used yet unbelieveably complex APIs in Windows, if not the one. Russ Osterlund has a full MSDN article discussing LoadLibrary , yet he only touches the surface of the problem (how it works under normal condition.) Mike
Posted by junfeng | 1 Comments
Filed under:

Touch the exe, after you added a manifest for it, in Vista

You are an enthusiastic and responsible developer. You love programming, and you love programming the right way. So you get the latest and greatest Windows Vista. You try your hard-worked amazing.exe application in Vista. Did not work. Apparently, amazing.exe
Posted by junfeng | 6 Comments
Filed under: , ,

Application Shutdown Changes in Windows Vista

MSDN documented the Windows Vista changes regarding application shutdown. http://windowssdk.msdn.microsoft.com/en-us/library/ms700677(VS.80).aspx
Posted by junfeng | 0 Comments
Filed under: ,

Programmatically determine if an application requires elevation in Windows Vista

In Windows Vista, by default, application will execute without administrator privilege, even when the user launching the application is part of the administrators group. You can explicitly elevate the application with administrator privilege using the
Posted by junfeng | 2 Comments
Filed under: ,

Run/RunOnce/RunOnceEx Registry Key

Run\RunOnce\RunOnceEx are documented ways to automatically run certain tasks when system startup or a user logs in. Run\RunOnce keys are documented here: Run and RunOnce Registry Keys http://windowssdk.msdn.microsoft.com/en-us/library/ms723554.aspx RunOnceEx
Posted by junfeng | 5 Comments
Filed under:

Windows XP may reboot when encounter certain manifest files

If you are developing applications for Windows Vista using Visual Studio 2005, and you are adding Vista UAC manifest to your application, when your application runs on Windows XP with Service Pack 2 or Windows Server 2003 RTM (without SP1), Windows may
Posted by junfeng | 4 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker