Junfeng Zhang's Musing

things about the world, world of things

  • Junfeng Zhang's Musing

    Java 2007: The year in preview

    • 3 Comments
    This is an article on IBM web site preview what is coming in Java 7. http://www-128.ibm.com/developerworks/java/library/j-java2007.html?ca=dgr-lnxw07java2007 Specifically, Taking the JAM out of the JAR Java 7 could fix the most long-standing...
  • Junfeng Zhang's Musing

    Sxstrace for Windows XP and Windows Server 2003

    • 6 Comments
    I have received question about availability of Sxstrace for Windows XP and Windows Server 2003. Unfortunately this is not possible. The traces from sxstrace.exe really comes from Sxs.dll. Sxstrace simply tells sxs.dll when to trace, where to log, and...
  • Junfeng Zhang's Musing

    Native Image Loading

    • 2 Comments
    .Net framework Assembly Native Image is one of the biggest investments of CLR in .Net framework 2.0, if not the biggest. For client side .Net framework application performance, NGEN is the answer. In .Net framework 2.0, Assembly Native Image is typically...
  • Junfeng Zhang's Musing

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

    • 7 Comments
    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,...
  • Junfeng Zhang's Musing

    The CLR Add-in team blog

    • 1 Comments
    One of confusing message around .Net framework is about Addins, especially combined with compatibility. What is the best way to write an addin? How to enable the compatibility of the addin with different version of .Net framework? How does addin interact...
  • Junfeng Zhang's Musing

    Java SE 6 is released

    • 0 Comments
    http://java.sun.com/javase/6/ People that want to run Java on Vista may be interested in this release. It fixes the bug where Vista Glass is disabled when Java Applet is running. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6345743
  • Junfeng Zhang's Musing

    Questions and suggestions

    • 16 Comments
    I set the comment limit to 90 days. As a result, the original post for questions and suggestions has expired. This one is just to re-enable that. Please post any questions or suggestions in this blog. I have left fusion team. I can still answer...
  • Junfeng Zhang's Musing

    Debugging LoadLibrary Failures

    • 1 Comments
    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...
  • Junfeng Zhang's Musing

    GAC Temp and Tmp

    • 5 Comments
    I see people asking question about the Temp and Tmp directories under GAC. Yes they are temporary directory fusion uses during GAC Assembly installation and uninstallation. Tmp is used for installation, and Temp is used for uninstallation. The use...
  • Junfeng Zhang's Musing

    The Windows Vista Developer Story: Application Compatibility Cookbook

    • 1 Comments
    MSDN has a Vista developer story series on how to develop applications for Windows Vista. http://msdn.microsoft.com/windowsvista/downloads/docs/developerstory/default.aspx One of the particularly useful articles is on Application Compatibility ...
  • Junfeng Zhang's Musing

    Installing SxS assemblies in Vista

    • 5 Comments
    When installing SxS assemblies in Vista, you may experience MSI error 1935 , with HRESULT 0x80073715 . 0x80073715 is Win32 error ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT. // // MessageId: ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT...
  • Junfeng Zhang's Musing

    IE7 CPU spike and AJAX extensive web sites

    • 8 Comments
    [Update: After discussion with IE team, I revised my article as following.] When visiting some AJAX extensive web sites, IE7 may cause temporary CPU spike. I have discussed this with the IE and Anti-Phishing team and they are investigating...
  • Junfeng Zhang's Musing

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

    • 6 Comments
    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,...
  • Junfeng Zhang's Musing

    Title change

    • 4 Comments
    Laterly, most of my topics have been Win32 stuff. Then I realize that the title " Junfeng Zhang's .Net Framework Notes " makes less sense now. Effectively now, the title of this blog becomes Junfeng Zhang's Windows Programming Notes Thanks for...
  • Junfeng Zhang's Musing

    Application Shutdown Changes in Windows Vista

    • 0 Comments
    MSDN documented the Windows Vista changes regarding application shutdown. http://windowssdk.msdn.microsoft.com/en-us/library/ms700677(VS.80).aspx
  • Junfeng Zhang's Musing

    Programmatically determine if an application requires elevation in Windows Vista

    • 2 Comments
    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...
  • Junfeng Zhang's Musing

    dynamic_cast is slow in x64

    • 5 Comments
    A thread in internal discussion group reveals that dynamic_cast is very slow in x64 system. And one of the developers explains the reason: From: Sent: Tuesday, October 17, 2006 11:52 AM To: Subject: RE: dynamic_cast code runs faster in WOW mode than...
  • Junfeng Zhang's Musing

    Run/RunOnce/RunOnceEx Registry Key

    • 5 Comments
    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...
  • Junfeng Zhang's Musing

    .Net Security Configuration in 64 bit OS

    • 0 Comments
    .Net security configuration is per-CLR. This means, in 64 bit OS, there is a 32 bit .Net security configuration, and a 64 bit security configuration. When you change .Net security configuration in 64 bit OS, make sure you understand which security configuration...
  • Junfeng Zhang's Musing

    Windows XP may reboot when encounter certain manifest files

    • 4 Comments
    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...
  • Junfeng Zhang's Musing

    MSDN Wiki

    • 0 Comments
    MSDN launched MSDNWiki a while ago http://msdnwiki.microsoft.com/en-us/mtpswiki/default.aspx I really like the idea of MSDN Wiki. An API is rarely just an API. There is an associated history, like the background, the design choices, the limitation, the...
  • Junfeng Zhang's Musing

    COM activation change in Windows Vista

    • 3 Comments
    In Windows Vista, COM will read HKLM\Software\Classes when the process has a integrity level > MEDIUM , and it will read the merged HKLM\HKCU hive otherwise. For information about integrity level, please read Steve Riley's article Mandatory Integrity...
  • Junfeng Zhang's Musing

    Mark Russinovich started blogging in technet

    • 0 Comments
    Just like his blog in sysinternals.com, Mark's technet blog investigates complex problems. He shows the full details of how he approach the problem, how to progress the investigation, and how the culprit is found. Subscribed. http://blogs.technet.com...
  • Junfeng Zhang's Musing

    Windows Vista System Internals

    • 9 Comments
    I was searching for filter driver doucmentations in microsoft Windows Hardware Developer Central site, and I was surprised to find many interesting information about Windows Vista System Internals. http://www.microsoft.com/whdc/system/vista/default.mspx...
  • Junfeng Zhang's Musing

    Detours

    • 0 Comments
    Still on the topic on knowing what DllRegisterServer does without impacting the system. Before I found RegOverridePredefKey , I was thinking about hijacking all the registry APIs so that I can just record them without actually making any system change...
Page 3 of 14 (350 items) 12345»