Most managed assemblies must be registered in the Windows registry for use by COM. Assemblies using registration-free COM interop are exempt from this requirement. You can register an assembly by using the Assembly Registration Tool (Regasm.exe) or methods exposed by the RegistrationServices class. Each mechanism creates version-dependent registry keys that allow multiple versions of the same assembly to run side-by-side on a computer....
The Win32SerialPort::SerialPort is a simple class for Ruby which helps to access a serial port in Windows. This class uses the standard Win32 API, and does not require any external C/C++ libraries....
This paper will discuss a specic design problem I've come across in the course of a hobby programming project, and the solution I have worked out for it. The solution can be viewed as a specic implementation of what can be considered as a far more general design pattern, which I've decided to call "The dynamic registry factory" (I'm open to suggestions of better names at this point)....
As most of the beginners are not well aware about the windows registery, they usually come with problems just by deleting the main nodes of windows, which leads to Windows to get hanged or even crash. And then, they got the crazy to start programming with the Windows registry. Windows Registry programming is extremely easy. There are two provisions provided by windows for doing this. One is using of SDK or MFC. But both cases we dont have a API that can create a node and set the value using a si...
The Registry is a powerful part of the Windows operating system and is most valuable to programmers. For instance, you could have your application show up in Windows' Add/Remove Software or create your own file types. That is all done via the Registry and this article will show you how....
This utility (RegSvrEx) is similar to RegSvr32 but with certain extra functionality. The extra features which this utility offers are :-
1. Current user only registration for COM servers (more about this later) 2. Registration of executable files (though this is not the primary feature)...
RtlSetProcessIsCritical is yet another undocumented function hidden in the Windows kernel. It is one of the few which do not have a kernel32 equivalent. However, Microsoft has a good reason to not document this function - it should not be used in any application for any purpose whatsoever. I simply cannot imagine a circumstance where this function would actually come in useful. I am not responsible for any side-effects of calling this function on your computer. It may cause extreme system instab...
Enabling UAC (User Access Control) feature in Windows Vista, Administrator users in Windows Vista, by default, don't have administrative privileges. Every Windows process has two security tokens associated with it, one with normal user privileges and one with admin privileges. With applications that require administrative privileges, the user can elevate the application to run with Administrator rights. And that process is called Elevation....
Extracting the Registry entries for COM DLLs and EXEs during build time is not supported in WIX. But, they provide an option for writing an extension. The Registry data can be extracted by making use of Heat. Hence, I am making use of Heat.exe, and extension facility of WIX. So, while pre-processing the Wxs file using Candle, we can generate all the Registry data. I am still not sure what to do with the rgs data. But this solves at least half of the problem for the installer guys. Hope this help...
Well, apparently the registry seems to have lost some of its importance with the arrival of .NET, at least that's the impression I seem to get. But luckily for us, Microsoft has given us two nice classes for doing just about anything we want to do with the registry. The classes are Microsoft.Win32.RegistryKey and Microsoft.Win32.Registry. They have both been put into the Microsoft.Win32 namespace as you can see because the registry is totally Microsoft Win32 specific. Without too much fuss, let'...
The Registry has a hierarchical structure much like that of the file system. The usual way of viewing and editing the registry key is by using the tools called regedit.exe and you can open it by typing regedit.exe in the run command. Quite a lot of times, you also need to write and edit the registry keys on your code or in ASP.NET and you probably haven't done it before. In this article I will teach you how to do it using .NET classes. Microsoft has included all the library that can be used to ...
Sometimes, we need to log some behaviores of our codes, and when the program goes wrong , we could know the reason quickly, so someone would write a Logger himself, but we have a better choice, the windows EventLog service. Be familar with windows DLL, and know how to create the DLL project....