Getting UserSID from IExStoreDispEventInfo using VB.NET
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Getting UserSID from IExStoreDispEventInfo using VB.NET

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Molberg
Guest





Posted: Wed Jan 26, 2005 10:03 pm    Post subject: Getting UserSID from IExStoreDispEventInfo using VB.NET Reply with quote

Hello all you smart peoble,

I have a problem getting the UserSID within my Eventsink. I'm planning til
get the username by calling the LookupAccountSID. Just like in Thomas Rizzo's
book page 836.

Here the code:
oEventInfo = ctype(pEventInfo, EXOLEDB.IExStoreDispEventInfo)
dim username as string = LookupUsernameFromSid(oEventInfo.UserSid)

When in debugmode I can view the oEventInfo object and for the StoreGuid,
UserGuid and UserSid, the value is "<error: en exeption of type:
{system.Runtime.InteropServices.COMException} occurred"

When code runs the

oEventInfo.UserSid

it throws an exception "The request is not supported".

Can anybody help me out here? What about you Thomas? I can see You are using
the IExStoreDispEventInfo-interface in some of youre exemple code. is the
impossible for .NET or what?

Thanks a lot in advance.

Steen Molberg

Back to top
Molberg
Guest





Posted: Wed Feb 02, 2005 2:49 pm    Post subject: RE: Getting UserSID from IExStoreDispEventInfo using VB.NET Reply with quote

I was using Asyc. event not the Sync. type event.!!!

"Molberg" wrote:

Quote:
Hello all you smart peoble,

I have a problem getting the UserSID within my Eventsink. I'm planning til
get the username by calling the LookupAccountSID. Just like in Thomas Rizzo's
book page 836.

Here the code:
oEventInfo = ctype(pEventInfo, EXOLEDB.IExStoreDispEventInfo)
dim username as string = LookupUsernameFromSid(oEventInfo.UserSid)

When in debugmode I can view the oEventInfo object and for the StoreGuid,
UserGuid and UserSid, the value is "<error: en exeption of type:
{system.Runtime.InteropServices.COMException} occurred"

When code runs the

oEventInfo.UserSid

it throws an exception "The request is not supported".

Can anybody help me out here? What about you Thomas? I can see You are using
the IExStoreDispEventInfo-interface in some of youre exemple code. is the
impossible for .NET or what?

Thanks a lot in advance.

Steen Molberg

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB