I'm curious about finding out if my program was loaded on it's own (The user double-cliked it in Explorer or whatever) or if it was ran by another program (Some program ran it using Shell or whatever).

It *should* be possible, since there are alot of deep secrets etched into Windows, but I've yet to find it.

Oh, and I need it to make my program detect if it's being traced by one of those Winsock/API Spy programs. Since the spy program needs to attach the process after *IT* loads my program.

Like:

If IsLoadedOnOwn = False Then End