Tech Kaizen

passion + usefulness = success .. change is the only constant in life

Search this Blog:

How to check whether your antivirus software is running !

The EICAR test file (official name: EICAR Standard Anti-Virus Test File) is a file, developed by the European Institute for Computer Antivirus Research, to test the response of computer antivirus (AV) programs. EICAR allows users to check whether their antivirus software is running. For example, if you try to open eicar.com. Traditional antivirus software detects viruses and other malware via signature definitions. EICAR is a non-viral string of code that most antivirus software have included in their signature definition files.

EICAR Test File – http://www.eicar.org/anti_virus_test_file.htm

(Search for eicar.com in the page and click on it, If Your Anti Virus is running it should alert you (or) removed silently by your AntiVirus !)

An EICAR test file can be easily created using any text editor, i.e. Notepad. To create an EICAR test file, copy and paste the following line into a blank Notepad file:

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

Save the file as with any name. It is now ready for testing. In fact, if your active protection was working properly, the simple act of saving the file should have triggered an alert (or) removed silently by your AntiVirus !

ref:

http://eicar.org

http://eicar.org/anti_virus_test_file.htm

Labels: SOFTWARE SECURITY

Fast User Switching(FUS) - Ensure Only One Version of Your Application Is Running

Fast User Switching enables multiple-user sessions to run at the same time.

There are several parts of the operating system that interact with the Fast User Switching feature:

1.Winlogon: This is the logon subsystem of Windows XP. Winlogon includes Winlogon.exe, Msgina.dll, and other components that provide user identification and authentication services to the operating system.

2. Windows user subsystem: This contains support for the desktop programming interfaces that support the creation of multiple desktops and the setting of the currently visible desktop.

3. Security subsystem: This contains the security functionality of Windows, which includes support for access control lists (ACLs) and user security tokens.

4. Windows shell: This is the user interface of Windows. It contains the Start menu, the taskbar, the file and folder management user interface, and Control Panel.

To log on to a computer that has the Fast User Switching feature enabled:

1. When the computer first restarts, it starts at the Welcome screen. At this screen, the user enters the appropriate identification information and, if necessary, enters a password. The Welcome screen is on a desktop known as the Winlogon desktop, which is sometimes referred to as the secure desktop because other programs cannot be run on this desktop.

2. After the user has entered the appropriate identification information, the credentials of the user are authenticated by Winlogon.

3. The token and profile information of the user are returned to Winlogon by the Msgina.dll file.

4. Winlogon checks the list of users that are currently logged on to the computer. If the user is already on the list, Winlogon switches to the existing desktop of the user, and the logon process is complete.

5. If the user is not already logged on to the computer, Winlogon creates a new thread for this user and transfers the information to that thread.

6. The thread of the user creates a new desktop for this user, sets up the user environment, and then starts the user shell on the newly created desktop. The thread and desktop information are added to the list of users that are currently logged on to the computer. Winlogon switches to the new desktop of the user, and the logon process is complete.

To log off from a computer or switch users to a computer that has the Fast User Switching feature enabled:

1. The threads of the user wait for the log off from event that is associated with the thread that is going to be signaled (which occurs when the user logs off from the computer). When the user logs off from the computer, the thread of the user is finished.

2. At any point prior to logging off from the computer, the user can initiate an action (for example, Switch User) that can return the computer to the Welcome screen without signaling to the thread of the user that a log off from event has occurred. When this behavior occurs, the user desktop continues to run and all programs that have been started on that desktop continue to run. The user is unable to observe any of these programs because the desktop is hidden. The desktop is reported to be "switched out", but it is still active.

3. When the computer displays the Welcome screen, any user can be identified and authenticated. If a user already has an active desktop that is switched out, that desktop becomes the active desktop. The state of the program of the user is maintained because none of the programs needed to be shut down when the user had been switched out. If the user does not have a switched-out desktop, a new desktop is created for that user.

The following services use the Fast User Switching feature:

1. Terminal Services: This provides a multiple-session environment that enables multiple users to be logged on to the computer at the same time. If this service is not started, only one user can log on to the computer at a time.

2. Fast User Switching Compatibility Services: Some programs had been designed only to run in a single-user environment. This service provides assistance to many of those programs to enable them to run in a multiple-user environment

Sample Code in .Net(C#) for Ensuring One Version of Your Application Is Running

Using Mutex is the standard way to solve this problem in .NET

I'd be concerned that MyApplicationMutex would go out of scope and get garbage collected. To prevent this, you should store the Mutex in a static field. You don't need to WaitOne on the mutex. The usual way of doing this is to make use of the createdNew output parameter of the Mutex constructor.

Sample Code in C#

static class Program

{

private static Mutex m_Mutex;

static void Main()

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

bool createdNew;

m_Mutex = new Mutex(true, "Global\\MyApplicationMutex", out createdNew);

if (createdNew)

Application.Run(new Form1());

else

MessageBox.Show("The application is already running.", Application.ProductName,

MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

gc.KeepAlive(m_Mutex);

}

}

ref:


Microsoft Windows XP Fast User Switching: Design Guide for Building Business Applications - http://msdn.microsoft.com/en-us/library/ms997634.aspx

How to write an application that supports fast user switching in Windows XP -
http://support.microsoft.com/kb/310153

Launch your application in Vista under the local system account without the UAC popup -
http://www.codeproject.com/KB/vista-security/VistaSessions.aspx?display=PrintAll&fid=406624&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51&select=2022539

Displaying a UI That Works with Fast User Switching -
http://msdn.microsoft.com/en-us/library/ms802203.aspx

How To Use the Fast User Switching Feature in Windows XP -
http://support.microsoft.com/kb/279765

Why isn't Fast User Switching enabled on domains -
http://blogs.msdn.com/oldnewthing/archive/2003/11/21/55799.aspx

Microsoft Windows XP Fast User Switching: Design Guide for Building Business Applications -
http://msdn.microsoft.com/en-us/library/ms997634.aspx

User Accounts with Fast User Switching and Remote Desktop -
http://msdn.microsoft.com/en-us/library/bb776783.aspx

Displaying a UI That Works with Fast User Switching -
http://msdn.microsoft.com/en-us/library/ms802203.aspx

Get information about the currently logged-on user - Part 1 -
http://www.codeproject.com/KB/IP/LoggedOnUSer.aspx

Get information about the currently logged-on users - Part 2 -
http://www.codeproject.com/KB/IP/LoggedOnUsersPart2.aspx

Labels: .NET DEVELOPMENT
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

The Verge - YOUTUBE

Loading...

Google - YOUTUBE

Loading...

Microsoft - YOUTUBE

Loading...

MIT OpenCourseWare - YOUTUBE

Loading...

FREE CODE CAMP - YOUTUBE

Loading...

NEET CODE - YOUTUBE

Loading...

GAURAV SEN INTERVIEWS - YOUTUBE

Loading...

Y Combinator Discussions

Loading...

SUCCESS IN TECH INTERVIEWS - YOUTUBE

Loading...

IGotAnOffer: Engineering YOUTUBE

Loading...

Tanay Pratap YOUTUBE

Loading...

Ashish Pratap Singh YOUTUBE

Loading...

Questpond YOUTUBE

Loading...

Kantan Coding YOUTUBE

Loading...

CYBER SECURITY - YOUTUBE

Loading...

CYBER SECURITY FUNDAMENTALS PROF MESSER - YOUTUBE

Loading...

DEEPLEARNING AI - YOUTUBE

Loading...

STANFORD UNIVERSITY - YOUTUBE

Loading...

NPTEL IISC BANGALORE - YOUTUBE

Loading...

NPTEL IIT MADRAS - YOUTUBE

Loading...

NPTEL HYDERABAD - YOUTUBE

Loading...

MIT News

Loading...

MIT News - Artificial intelligence

Loading...

The Berkeley Artificial Intelligence Research Blog

Loading...

Microsoft Research

Loading...

MachineLearningMastery.com

Loading...

Harward Business Review(HBR)

Loading...

Wharton Magazine

Loading...
My photo
Krishna Kishore Koney
View my complete profile
" It is not the strongest of the species that survives nor the most intelligent that survives, It is the one that is the most adaptable to change "

View krishna kishore koney's profile on LinkedIn

Monthly Blog Archives

  • ►  2025 (2)
    • ►  May (1)
    • ►  April (1)
  • ►  2024 (18)
    • ►  December (1)
    • ►  October (2)
    • ►  September (5)
    • ►  August (10)
  • ►  2022 (2)
    • ►  December (2)
  • ►  2021 (2)
    • ►  April (2)
  • ►  2020 (17)
    • ►  November (1)
    • ►  September (7)
    • ►  August (1)
    • ►  June (8)
  • ►  2019 (18)
    • ►  December (1)
    • ►  November (2)
    • ►  September (3)
    • ►  May (8)
    • ►  February (1)
    • ►  January (3)
  • ►  2018 (3)
    • ►  November (1)
    • ►  October (1)
    • ►  January (1)
  • ►  2017 (2)
    • ►  November (1)
    • ►  March (1)
  • ►  2016 (5)
    • ►  December (1)
    • ►  April (3)
    • ►  February (1)
  • ►  2015 (15)
    • ►  December (1)
    • ►  October (1)
    • ►  August (2)
    • ►  July (4)
    • ►  June (2)
    • ►  May (3)
    • ►  January (2)
  • ►  2014 (13)
    • ►  December (1)
    • ►  November (2)
    • ►  October (4)
    • ►  August (5)
    • ►  January (1)
  • ►  2013 (5)
    • ►  September (2)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2012 (19)
    • ►  November (1)
    • ►  October (2)
    • ►  September (1)
    • ►  July (1)
    • ►  June (6)
    • ►  May (1)
    • ►  April (2)
    • ►  February (3)
    • ►  January (2)
  • ►  2011 (20)
    • ►  December (5)
    • ►  August (2)
    • ►  June (6)
    • ►  May (4)
    • ►  April (2)
    • ►  January (1)
  • ▼  2010 (41)
    • ►  December (2)
    • ►  November (1)
    • ►  September (5)
    • ►  August (2)
    • ►  July (1)
    • ►  June (1)
    • ►  May (8)
    • ▼  April (2)
      • How to check whether your antivirus software is ru...
      • Fast User Switching(FUS) - Ensure Only One Version...
    • ►  March (3)
    • ►  February (5)
    • ►  January (11)
  • ►  2009 (113)
    • ►  December (2)
    • ►  November (5)
    • ►  October (11)
    • ►  September (1)
    • ►  August (14)
    • ►  July (5)
    • ►  June (10)
    • ►  May (4)
    • ►  April (7)
    • ►  March (11)
    • ►  February (15)
    • ►  January (28)
  • ►  2008 (61)
    • ►  December (7)
    • ►  September (6)
    • ►  August (1)
    • ►  July (17)
    • ►  June (6)
    • ►  May (24)
  • ►  2006 (7)
    • ►  October (7)

Blog Archives Categories

  • .NET DEVELOPMENT (38)
  • 5G (5)
  • AI (Artificial Intelligence) (9)
  • AI/ML (4)
  • ANDROID DEVELOPMENT (7)
  • BIG DATA ANALYTICS (6)
  • C PROGRAMMING (7)
  • C++ PROGRAMMING (24)
  • CAREER MANAGEMENT (6)
  • CHROME DEVELOPMENT (2)
  • CLOUD COMPUTING (45)
  • CODE REVIEWS (3)
  • CYBERSECURITY (12)
  • DATA SCIENCE (4)
  • DATABASE (14)
  • DESIGN PATTERNS (9)
  • DEVICE DRIVERS (5)
  • DOMAIN KNOWLEDGE (14)
  • EDGE COMPUTING (4)
  • EMBEDDED SYSTEMS (9)
  • ENTERPRISE ARCHITECTURE (10)
  • IMAGE PROCESSING (3)
  • INTERNET OF THINGS (2)
  • J2EE PROGRAMMING (10)
  • KERNEL DEVELOPMENT (6)
  • KUBERNETES (19)
  • LATEST TECHNOLOGY (18)
  • LINUX (9)
  • MAC OPERATING SYSTEM (2)
  • MOBILE APPLICATION DEVELOPMENT (14)
  • PORTING (4)
  • PYTHON PROGRAMMING (6)
  • RESEARCH AND DEVELOPMENT (1)
  • SCRIPTING LANGUAGES (8)
  • SERVICE ORIENTED ARCHITECTURE (SOA) (10)
  • SOFTWARE DESIGN (13)
  • SOFTWARE QUALITY (5)
  • SOFTWARE SECURITY (23)
  • SYSTEM and NETWORK ADMINISTRATION (3)
  • SYSTEM PROGRAMMING (4)
  • TECHNICAL MISCELLANEOUS (31)
  • TECHNOLOGY INTEGRATION (5)
  • TEST AUTOMATION (5)
  • UNIX OPERATING SYSTEM (4)
  • VC++ PROGRAMMING (44)
  • VIRTUALIZATION (8)
  • WEB PROGRAMMING (8)
  • WINDOWS OPERATING SYSTEM (13)
  • WIRELESS DEVELOPMENT (5)
  • XML (3)

Popular Posts

  • Observer Pattern - Push vs Pull Model
  • AI Agent vs AI Workflow
  • Microservices Architecture ..
  • SSCLI(Shared Source Common Language Infrastructure)

My Other Blogs

  • Career Management: Invest in Yourself
  • Color your Career
  • Attitude is everything(in Telugu language)
WINNING vs LOSING

Hanging on, persevering, WINNING
Letting go, giving up easily, LOSING

Accepting responsibility for your actions, WINNING
Always having an excuse for your actions, LOSING

Taking the initiative, WINNING
Waiting to be told what to do, LOSING

Knowing what you want and setting goals to achieve it, WINNING
Wishing for things, but taking no action, LOSING

Seeing the big picture, and setting your goals accordingly, WINNING
Seeing only where you are today, LOSING

Being determined, unwilling to give up WINNING
Gives up easily, LOSING

Having focus, staying on track, WINNING
Allowing minor distractions to side track them, LOSING

Having a positive attitude, WINNING
having a "poor me" attitude, LOSING

Adopt a WINNING attitude!

Total Pageviews

who am i

My photo
Krishna Kishore Koney

Blogging is about ideas, self-discovery, and growth. This is a small effort to grow outside my comfort zone.

Most important , A Special Thanks to my parents(Sri Ramachandra Rao & Srimathi Nagamani), my wife(Roja), my lovely daughter (Hansini) and son (Harshil) for their inspiration and continuous support in developing this Blog.

... "Things will never be the same again. An old dream is dead and a new one is being born, as a flower that pushes through the solid earth. A new vision is coming into being and a greater consciousness is being unfolded" ... from Jiddu Krishnamurti's Teachings.

Now on disclaimer :
1. Please note that my blog posts reflect my perception of the subject matter and do not reflect the perception of my Employer.

2. Most of the times the content of the blog post is aggregated from Internet articles and other blogs which inspired me. Due respect is given by mentioning the referenced URLs below each post.

Have a great time

My LinkedIn Profile
View my complete profile

Failure is not falling down, it is not getting up again. Success is the ability to go from failure to failure without losing your enthusiasm.

Where there's a Will, there's a Way. Keep on doing what fear you, that is the quickest and surest way to to conquer it.

Vision is the art of seeing what is invisible to others. For success, attitude is equally as important as ability.

Favourite RSS Syndications ...

Google Developers Blog

Loading...

Blogs@Google

Loading...

Berklee Blogs » Technology

Loading...

Martin Fowler's Bliki

Loading...

TED Blog

Loading...

TEDTalks (video)

Loading...

Psychology Today Blogs

Loading...

Aryaka Insights

Loading...

The Pragmatic Engineer

Loading...

Stanford Online

Loading...

MIT Corporate Relations

Loading...

AI at Wharton

Loading...

OpenAI

Loading...

AI Workshop

Loading...

Hugging Face - Blog

Loading...

BYTE BYTE GO - YOUTBUE

Loading...

Google Cloud Tech

Loading...

3Blue1Brown

Loading...

Bloomberg Originals

Loading...

Dwarkesh Patel Youtube Channel

Loading...

Reid Hoffman

Loading...

Aswath Damodaran

Loading...