As we know services play an important role in applications.
.Net simplified the development/deployment of windows services.
To create a service in .Net you just need to create an installer class and a class inherited from ServiceBase. The class derived from ServiceBase represents the service code that actually executes.
Also the service development is C++ is also not that tedious.
Following article explains a simple approach to create a simple service using C++ (C).
http://www.devx.com/cplus/Article/9857
Thanks
Prasad
Tuesday, November 20, 2007
Sunday, November 18, 2007
Garbage Collection in .Net
Hi
Garbage collection (GC) is one of the cool features of .Net framework.
This feature is exploited in following 2 part article by Jeffrey Richter.
http://msdn.microsoft.com/msdnmag/issues/1100/GCI/default.aspx
Thanks
Prasad
Garbage collection (GC) is one of the cool features of .Net framework.
This feature is exploited in following 2 part article by Jeffrey Richter.
http://msdn.microsoft.com/msdnmag/issues/1100/GCI/default.aspx
Thanks
Prasad
Thursday, November 15, 2007
CreateProcessAsUser
Some times we need to spawn a child process. The trick however being it has to be execute with some different user account. This situation can arise in some ASP.Net applications as well.
It is not always possible to have the password of the user account under which we want to spawn the process.
In such cases .Net's standard System.diagnostics.Process.Start doesn't work.
Here comes WIN32 for our help.
CreateProcessAsUser Win32 API is most suitable for such situations.
Following are the links where this scenario is very well explained.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;889251
http://odetocode.com/Blogs/scott/archive/2004/10/28/602.aspx
Thanks
Prasad Pimparkar
It is not always possible to have the password of the user account under which we want to spawn the process.
In such cases .Net's standard System.diagnostics.Process.Start doesn't work.
Here comes WIN32 for our help.
CreateProcessAsUser Win32 API is most suitable for such situations.
Following are the links where this scenario is very well explained.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;889251
http://odetocode.com/Blogs/scott/archive/2004/10/28/602.aspx
Thanks
Prasad Pimparkar
Subscribe to:
Posts (Atom)
