Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Fusion » Win32   (RSS)

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: , ,

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

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: , ,

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: ,

Registration Free COM/.Net interop

In my last article , I briefly discussed how COM, Sxs and CLR work together to make registration free COM/.Net interop possible. Today, I want to dive a bit deeper into this feature. Specifically, I want to discuss 1. How activation works end to end.
Posted by junfeng | 11 Comments
Filed under: , ,

Sxs --- Activation Context, Binding, Policy and Probing

Sxs’ runtime behavior is built on top of the concept of Activation Context. (For more details on Activation Context, please visit MSDN . I have published an article on it early.) You can use API CreateActCtx to create an activation context. CreateActCtx
Posted by junfeng | 6 Comments
Filed under: ,

COM activation, Registration Free COM activation, COM/.Net Interop, Registration Free COM/.Net Interop

COM is easily one of the most commonly used technologies in Microsoft Windows Platform. Many of Microsoft Windows’ capabilities are only exposed in COM. I do not claim to be a COM expert. But my work in Microsoft in the past and now do affect how people
Posted by junfeng | 10 Comments
Filed under: , ,

Diagnosing SideBySide failures

PhilW believes that SxS COM with manifest is one of those “well kept secrets” that should be more well known. As the current maintainer of Windows SxS, I am absolutely thrilled to hear that. That said, I have to admit that it is not the easiest thing
Posted by junfeng | 22 Comments
Filed under: ,

SXS Activation Context --- Activate and Deactivate

In Windows XP the Side-by-Side technology is officially introduced: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sbscs/setup/isolated_applications_and_side_by_side_assemblies_start_page.asp In a nutshell, applications/components write
Posted by junfeng | 7 Comments
Filed under: ,

DotLocal (.local) Dll Redirection

If you are developing software on Microsoft Windows platform, you probably have heard of the term “ Dll Hell ”. “Dll Hell” happens when two applications install two incompatible versions of a shared dll. Since there is no versioning control for dll in
Posted by junfeng | 15 Comments
Filed under: ,

IUnkown::Release() implementation

Mike Stall talks about “ Don’t do complicated work in Release() ”. He has a sample implementation for IUnkown::Release(). <quote> An object’s destructor has the same caveats if Release() is often implemented as: InterlockedDecrement(&m_ref)
Posted by junfeng | 8 Comments
Filed under: ,

Windows XP Look & Feel with manifest

Windows XP has a new Common Controls library comctl32.dll version 6, which implements XP's look & feel. comctl32.dll version 6 is a side by side assembly deployed to %windir%\WinSxs (the equavalent of GAC in Fusion/Win32). For compatibility reason,
Posted by junfeng | 6 Comments
Filed under: ,
 
Page view tracker