Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a simple way to detect the application running under console or terminal?

0 views
Skip to first unread message

Lewis Wong

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
Any suggestion is appreciated!
Thanks

Lewis

Mary Atkins-Shington

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
Have you tried to login as admin and then press Ctrl - Alt - End -> Task
Manager -> processes?

Mary

"Lewis Wong" <le...@eastop.com> wrote in message
news:86s3qs$s7v$1...@news.hk.linkage.net...

Cheesle

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
"Lewis Wong" <le...@eastop.com> wrote in message
news:86s3qs$s7v$1...@news.hk.linkage.net...
> Any suggestion is appreciated!

If your only need is to detect whether you are remote or not, and if you are
a programmer, this is it:

if (GetSystemMetrics(SM_REMOTESESSION))
/* Remote session */
else
/* Local session */

There are also techniques to determine the remote sessions identity, but
that's another story.

Cheesle

Lewis Wong

unread,
Jan 30, 2000, 3:00:00 AM1/30/00
to
Thanks, Cheesle, but when I use "GetSystemMetrics(SM_REMOTESESSION)",
the
compiler complain that "SM_REMOTESESSION" is undefined!
Do I need to install something such as MS PlaformSDK?

Lewis

Cheesle

unread,
Jan 30, 2000, 3:00:00 AM1/30/00
to
"Lewis Wong" <le...@eastop.com> wrote in message
news:870h75$h9t$1...@news.hk.linkage.net...

> Thanks, Cheesle, but when I use "GetSystemMetrics(SM_REMOTESESSION)",
> the
> compiler complain that "SM_REMOTESESSION" is undefined!
> Do I need to install something such as MS PlaformSDK?

Correct, you should get the platform SDK for Win2000, that would solve the
issue. In the meantime, you could always give 0x1000 a try...

Cheesle

Lewis Wong

unread,
Feb 2, 2000, 3:00:00 AM2/2/00
to
Thanks, I will try it!

Lewis

"Cheesle" <che...@online.NoSpamPlease.no> 撰寫於郵件
news:8728ki$2ie$1...@news.cerf.net...

0 new messages