J
Jan Nielsen
In a C# application I'm using the NetShareGetInfo API function to get some
information about a share.
This is working all right.
Now I want my application to be able to display the contents of the security
descriptor as well.
Using NetShareGetInfo I get a IntPtr (SECURITY_DESCRIPTOR*) to the security
descriptor. I would like to convert this into an
ActiveDs.IADsSecurityDescriptor.
I've tried the following:
ActiveDs.IADsSecurityDescriptor sd =
(ActiveDs.IADsSecurityDescriptor)securityUtility.ConvertSecurityDescriptor(pSd1,
2, 1);
but it throws an exception 0x8000500C.
Can this be done at all ? And if so, how ???
It seems like it possible to get the SD by using
IADsSecurityUtility::GetSecurityDescriptor. However as I allready have the
data from NetShareGetInfo, I would just like to convert it into a format
easier to work with.
Thanks in advace,
Jan Nielsen
information about a share.
This is working all right.
Now I want my application to be able to display the contents of the security
descriptor as well.
Using NetShareGetInfo I get a IntPtr (SECURITY_DESCRIPTOR*) to the security
descriptor. I would like to convert this into an
ActiveDs.IADsSecurityDescriptor.
I've tried the following:
ActiveDs.IADsSecurityDescriptor sd =
(ActiveDs.IADsSecurityDescriptor)securityUtility.ConvertSecurityDescriptor(pSd1,
2, 1);
but it throws an exception 0x8000500C.
Can this be done at all ? And if so, how ???
It seems like it possible to get the SD by using
IADsSecurityUtility::GetSecurityDescriptor. However as I allready have the
data from NetShareGetInfo, I would just like to convert it into a format
easier to work with.
Thanks in advace,
Jan Nielsen