jusched.exe

I really hate applications doing thing on my back. That is why I rename %ProgramFiles%\Common Files\Real\Update_OB\realsched.exe to realsched.exe.bak. And I just find out something called jusched.exe is running on my back. tlist shows it is from Sun’s latest Java. C:temp>tlist -c |findstr /sip jusched.exe 760 jusched.exe       OleMainThreadWndName     Command Line: “C:\Program Files\Java\j2re1.4.2_03\bin\jusched.exe” Sun, please, at least inform…

38

Symbolic link in Windows Vista

You can create symbolic link in Windows Vista now. C:\test>ver Microsoft Windows [Version 6.0.5365] C:\test>mklinkCreates a symbolic link. MKLINK [[/D] | [/H] | [/J]] Link Target         /D      Creates a directory symbolic link.  Default is a file                symbolic link.        /H      Creates a hard link instead of a symbolic link.        /J      Creates a Directory Junction.        Link   …

26

Image File Execution Options

There is well-known (or not so well-known, depending on what you do) feature in NT family system, called “Image File Execution Options”.   It is really in the registry   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options   Create a sub key, with the name as your executable without the path (i.e. notepad.exe). When your application starts, OS…

25

The new MSDN web site

When I was searching for some MSDN links for Whidbey stuff in http://lab.msdn.microsoft.com/library last night, I was redirected to http://msdn2.microsoft.com/library/default.aspx. I am really impressed by the new site. Now you can use “http://msdn2.microsoft.com/library/<namespace>.aspx” to get the documents for a particular namespace. For example, I reference System.Reflection quite a lot. So I type http://msdn2.microsoft.com/library/System.Reflection.aspx, all the documents for classes…

23

App.config reloading

I have seen the same question asked many times.   “I changed app.config while the application is running. But the application does not read the change, unless I restart the application. What should I do?”   .Net framework will read the app.config once, and never touch the app.config again. That is why you have to…

23

Reflection Only Assembly Loading

.Net Framework 2.0 introduces several new assembly loading APIs.   Assembly.ReflectionOnlyLoadFrom(String assemblyFile) Assembly.ReflectionOnlyLoad(byte[] rawAssembly) Assembly.ReflectionOnlyLoad(String assemblyName)   And Assembly class now has ReflectionOnly property to tell you if an assembly is loaded as reflection only or not.   As you can infer from the name of those APIs, Assembly returned from those APIs can only…

23

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 in the world when something went wrong in…

22

Should we put apphack in .Net 2.0?

AppHack is a terminology used in AppCompat. Basically AppCompat detects a specific application, and applies an AppHack if necessary. One typical AppHack is to lie about the OS version number, due to applications use the wrong logic to check the minimum OS requirement. I only have Whidbey Beta 1 in my home machine. I need…

21

Single Servicing

What is Single Servicing? Single Servicing is that when you fix a bug in your component, you drop a single binary with the fix into customer’s machine, everyone using your component automatically get the fix. Sounds easy. But in reality it is much harder. 1. Applications may statically link to your component. Those applications will have to…

21

Strong name EXEs

You don’t need to strongly name EXEs. When you strongly name an assembly, you want this assembly to be shared by multiple applications. But you typically don’t share applications between applications. An EXE usually is considered as an application. So you don’t need to strongly name EXEs. Of course if you intend to use your…

20