Hello all,

Does anyone know how to determine if the current user that is logged on is the current user running the application?

For example:

A) User A logs on. Program runs.

B) User A decides to use XP's fast user switching. (remains logged on)

C) User B logs on. Program runs. I want User A's program to pause.

D) User A logs on. User B is now paused.

Any help appreciated.