Jump to content

Session Moniker in Windows 2000


Recommended Posts

Guest Jeremy Drake
Posted

The documentation about using session monikers (in particular

http://msdn2.microsoft.com/en-US/library/aa383258.aspx) says that "This

feature is available on Windows 2000 and later". I am getting error

0x80040154 (Class not registered) when I attempt to run the code on windows

2000 (even win2k server with terminal services enabled), while the same code

works properly on XP and Vista. I have been picking apart the generated

moniker, and I see that when I parse my moniker (which looks like

"Session:0!clsid:{CLSID}") I get back a moniker whose CLSID is

{00000309-0000-0000-C000-000000000046} which is a Composite Moniker. I call

the Enum method on this, and get back a moniker with CLSID

{00000347-0000-0000-C000-000000000046} and one with

{0000031A-0000-0000-C000-000000000046}. The latter CLSID exists in the

registry and is a ClassMoniker. The former does not exist in the registry,

and thus would seem to be the source of my "class not registered" error.

 

However, I get back the same CLSIDs from running the code on XP (where it

works), and the 00000347-* CLSID does not exist anywhere in the registry

there either (I searched for it in regedit).

 

So I have two questions:

1. How can I get the session moniker working on Windows 2000?

2. Why does the session moniker work on Windows XP, when the class is

obviously not registered there, either?

 

Thanks,

Jeremy

  • Replies 3
  • Created
  • Last Reply
Guest Jeremy Drake
Posted

RE: Session Moniker in Windows 2000

 

 

 

"Jeremy Drake" wrote:

> The documentation about using session monikers (in particular

> http://msdn2.microsoft.com/en-US/library/aa383258.aspx) says that "This

> feature is available on Windows 2000 and later". I am getting error

> 0x80040154 (Class not registered) when I attempt to run the code on windows

> 2000 (even win2k server with terminal services enabled), while the same code

> works properly on XP and Vista.

 

If this is not the correct forum for such questions, I apologize. This is

the only forum I could find about terminal services. Please let me know if

there is a more appropriate place to ask this question...

 

> Thanks,

> Jeremy

Guest Vera Noest [MVP]
Posted

RE: Session Moniker in Windows 2000

 

=?Utf-8?B?SmVyZW15IERyYWtl?=

<JeremyDrake@discussions.microsoft.com> wrote on 15 aug 2007 in

microsoft.public.windows.terminal_services:

> "Jeremy Drake" wrote:

>

>> The documentation about using session monikers (in particular

>> http://msdn2.microsoft.com/en-US/library/aa383258.aspx) says

>> that "This feature is available on Windows 2000 and later". I

>> am getting error 0x80040154 (Class not registered) when I

>> attempt to run the code on windows 2000 (even win2k server with

>> terminal services enabled), while the same code works properly

>> on XP and Vista.

>

> If this is not the correct forum for such questions, I

> apologize. This is the only forum I could find about terminal

> services. Please let me know if there is a more appropriate

> place to ask this question...

>

>

>> Thanks,

>> Jeremy

 

You'll probably get more response in a developer newsgroup, Jeremy.

 

http://forums.microsoft.com/msdn/default.aspx?siteid=1

 

_________________________________________________________

Vera Noest

MCSE, CCEA, Microsoft MVP - Terminal Server

TS troubleshooting: http://ts.veranoest.net

___ please respond in newsgroup, NOT by private email ___

Guest Sam Hobbs
Posted

Re: Session Moniker in Windows 2000

 

"Vera Noest [MVP]" <vera.noest@remove-this.hem.utfors.se> wrote in message

news:Xns998DD91F53B38veranoesthemutforsse@207.46.248.16...

> =?Utf-8?B?SmVyZW15IERyYWtl?=

>

> You'll probably get more response in a developer newsgroup, Jeremy.

>

> http://forums.microsoft.com/msdn/default.aspx?siteid=1

 

 

There is not a MSDN forum for terminal services. There is not a MSDN forum

for everything. There even is not a MSDN forum for Windows SDKL programming

in general, except one for Vista Windows SDK programming. We get many

questions in the MSDN VC forums about Windows SDK programming and when they

are told to go elsewhere they express frustration that Microsoft has not

provided a forum for Windows SDK programming.

 

There are newsgroups for Windows SDK programming. I don't know what

newsgroup would be most appropriate and I would like to know. I assume the

network programming newsgroup would be the most appropriate. I had assumed

that programming was appropriate but now I understand it is not. The

majority of questions in this newsgroup is about licensing and printers.

 

Jeremy's question however might not have anything to do with Terminal

Services. It appears to be an OLE/COM/ActiveX question but even that does

not have a relevant MSDN forum. There is certainly a relevant newsgroup of

course.


×
×
  • Create New...