In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the principle of VB.NET virtual framework. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
As you all know, Microsoft's .NET Framework 3.5 SP1 has been tested since February this year, and Visual Studio 2008's SP1, both of which are new,. NETFramework3.5 was released last November and Visual Studio 2008 was released in February 2008. Microsoft official said that the features and functions of this update are not only to fix loopholes, but also to enhance the functions and features of Microsoft software. A Microsoft spokesman said that A. NET SP1 has added a new feature, the. NET Framework client profile, which can accurately identify the applications that customers want to install, rather than installing the entire architecture in general, thus reducing the number of installation files by 86.5%.
In addition,. NET Framework3.5 SP1 will make 20% to 45% changes and improvements. For Visual Studio 2008 SP1, Microsoft added support for new dates in SQL Server 2008 to improve the performance of WindowsPresentation Foundation and make it easy for customers to use. Microsoft official said that this will be a large security service package. For the .NET service pack, many features have been added, with only 10% improvement, while 90% are new features that can fix many errors, which is Microsoft's new focus.
Visual Studio 2008 is already stable, and of course, this update is also welcomed by customers. Both the .NET Framework3.5 servicepack and Visual Studio 2008 servicepack are available for download from many Microsoft-related sites, such as TechNet and MSDN.
The method we described in getting .net programs out of the. Net framework framework (source code implementation instructions) still depends on rsdeploy.dll. This time we will introduce the implementation principle of this dll.
Simple implementation: first we need to use a undocumented features, when the dll is loaded, set the environment variable COMPLUS_InstallRoot to the current dll directory.
Also copy c:\ windows\ microsoft.net\ framework\ v1.14322 or v2.0.50727 to the directory where dll is located. Put mscoree.dll and the crt runtime in the dll directory. Create a local GAC directory in the dll directory and copy the required GAC assemblies into it. This is OK, and simple .net programs can be run in this environment. If it is a complex program, it also needs to implement a virtual registry system. For our VB.NET virtual framework application, we only need to implement a read-only virtual registry to OK. This implementation can be either ring0 or ring3, and it can be implemented directly in ring3 for compatibility. The implementation can be done in the api hook way, that is, all the functions that begin with Reg in the hook advapi32.dll when our dll is loaded. The framework of the virtual registry system is completed, and the rest is implemented.
During this period of time, I have been busy doing http://www.dnguard.net/, the official website of DNGuard. I have basically finished my English, but I haven't done it in Chinese yet. Now I have to develop a customer center for the website. When the business of the website is over, release the professional version of DNGuard hvm. After taking a look at the timing, if you are free, you will consider implementing this VB.NET virtual framework and making a gadget. The core of this VB.NET virtual framework is to set the environment variable COMPLUS_InstallRoot.
The virtual registry system is just an extension. We can also extend it a little bit to add a virtual file system. So we can be like xenocode vas. Deploy the entire program as a single file.
Thank you for reading! This is the end of the article on "what is the principle of VB.NET virtual framework". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.