Junfeng Zhang's Windows Programming Notes

Win32, Fusion, CLR, .Net Framework, and others

Browse by Tags

Tagged Content List
  • Blog Post: XXX is not a valid Win32 application

    If you have used your Vista SP1-based computer for extended period, you may experience some problems starting large applications, for example, Office 2007 applications. Specifically, you may receive a message “XXX is not a valid Win32 application”. If you do experience this problem, you can install...
  • Blog Post: 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, select a file, will call CreateActCtx many...
  • Blog Post: The Windows Vista Developer Story: Application Compatibility Cookbook

    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 http://msdn.microsoft.com/windowsvista/downloads...
  • Blog Post: Installing SxS assemblies in Vista

    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 // // MessageText: // // The identities...
  • Blog Post: 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 needs admin privilege to do wonderful...
  • Blog Post: 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
  • Blog Post: 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 shell "Runas" verb. There are some cases the...
  • Blog Post: COM activation change in Windows Vista

    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 Control in Windows Vista . This means, for services...
  • Blog Post: Windows Vista System Internals

    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 For example: Changes to User Mode Services in Windows...
  • Blog Post: REG FLAGS /?

    Reg.exe in Vista has gain a new command line option "flags". You can use it to see some interesting things, for example, whether a registry key is virtualized. C:\>reg flags /? REG FLAGS KeyName [QUERY | SET [DONT_VIRTUALIZE] [DONT_SILENT_FAIL] [RECURSE_FLAG]] Keyname "HKLM\Software"[\SubKey...
  • Blog Post: System Services change in Windows Vista

    Every new Windows release introduces new features, which means new APIs. Vista is no different. As Vista is approaching RTM, documentation of new Vista APIs starts to show up on MSDN web site. The following is a short summary of changes in System Services in Windows Vista documented in Vista...
  • Blog Post: Condition Variables

    The classic thread synchronization objects are Mutex, Semaphore, and Condition Variable. Windows always has Mutex and Semaphore. Now in Windows Vista, you can also use Condition Variable. Using Condition Variables http://msdn.microsoft.com/library/en-us/dllproc/base/using_condition_variables...
  • Blog Post: Private Object Namespace

    One of the most common Deny Of Service (DOS) attack in Windows is kernel object name squatting . For example, two processes want to access some shared resources. In order to keep the integrality of the shared resources, the two processes will cooperate by waiting on a named event object. The problem...
  • Blog Post: Alternate Data Stream

    NTFS supports the concept of File Stream . Not many applications support NTFS file stream though. In Vista. dir now can display NTFS file stream (where it calls it " Alternate Data Stream "). E:\demo>ver Microsoft Windows [Version 6.0.5370] E:\demo>dir /? Displays a list of files and...
Page 1 of 1 (14 items)