From: Patrick Philippot on
Hi,

I have a problem with the following WTS APIs:

WTSEnumerateSessions
WTSQuerySessionInformation
WTSLogoffSession

They all fail with code 1151 when used under Win2K. The call is made from a
service. Code 1151 means: "The specified program is not a Windows or MS-DOS
program. " which is obviously not relevant.

No problem under XP. I have seen other reports about the same problem, so
I'm not alone.

Any information about this issue?

--
Patrick Philippot
MainSoft Consulting Services
www.mainsoft.fr



From: Drew Hammond [MS] on
Hi Patrick,

Error 1151 can also mean ERROR_APP_WRONG_OS. What are the Server & Client
OS versions that you're using? Is it Win2K Pro or Server? and is that the
'Server' you're attempting to query?

Thanks,
Drew

--
Drew Hammond
Terminal Services Developer in Test
TS team blog: http://blogs.msdn.com/ts

This posting is provided "AS IS" with no warranties, and confers no rights.

"Patrick Philippot" <patrick.philippot(a)mainsoft.xx.fr> wrote in message
news:eqEMlAVOHHA.780(a)TK2MSFTNGP03.phx.gbl...
> Hi,
>
> I have a problem with the following WTS APIs:
>
> WTSEnumerateSessions
> WTSQuerySessionInformation
> WTSLogoffSession
>
> They all fail with code 1151 when used under Win2K. The call is made from
> a service. Code 1151 means: "The specified program is not a Windows or
> MS-DOS program. " which is obviously not relevant.
>
> No problem under XP. I have seen other reports about the same problem, so
> I'm not alone.
>
> Any information about this issue?
>
> --
> Patrick Philippot
> MainSoft Consulting Services
> www.mainsoft.fr
>
>
>

 | 
Pages: 1
Prev: Application crashes...
Next: Finding the rdp port