Molberg
Guest
|
Posted:
Wed Jan 26, 2005 10:03 pm Post subject:
Getting UserSID from IExStoreDispEventInfo using VB.NET |
|
|
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
|
|
Molberg
Guest
|
Posted:
Wed Feb 02, 2005 2:49 pm Post subject:
RE: Getting UserSID from IExStoreDispEventInfo using VB.NET |
|
|
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
|
|
|