Bragadiru
2005-12-14 15:22:01 UTC
Hi all,
I used ADSI for to programmatically set NTFS file system folder permissions
by using Active Directory Service Interfaces in Microsoft Visual C#
2002/2003 (http://support.microsoft.com/kb/899553/EN-US). I need the same
thing in VS 2005 / .NET Framework 2.0, but after I add references to Active
DS Type Library and ADsSecurity 2.5 (both COM objects), I'm getting a lot of
warnings at compile time, like :
Warning : The type library importer could not convert the signature for the
member 'ADS_OCTET_STRING.lpValue'.
...
Warning : At least one of the arguments for
'IPrivateDispatch.ADSIGetIDsOfNames' cannot be marshaled by the runtime
marshaler. Such arguments will therefore be passed as a pointer and may
require unsafe code to manipulate. DBCustomAction
...
And I cannot get ride of those warnings. Am I using the right versions ??
There is another KB article about this pb and Visual Studio 2005 ?
With all this warnings it seems it still works, but very, very slow. Any
ideea why ?
I have a Windows XP + sp2 + VS 2005.
Thanks for any advice.
I used ADSI for to programmatically set NTFS file system folder permissions
by using Active Directory Service Interfaces in Microsoft Visual C#
2002/2003 (http://support.microsoft.com/kb/899553/EN-US). I need the same
thing in VS 2005 / .NET Framework 2.0, but after I add references to Active
DS Type Library and ADsSecurity 2.5 (both COM objects), I'm getting a lot of
warnings at compile time, like :
Warning : The type library importer could not convert the signature for the
member 'ADS_OCTET_STRING.lpValue'.
...
Warning : At least one of the arguments for
'IPrivateDispatch.ADSIGetIDsOfNames' cannot be marshaled by the runtime
marshaler. Such arguments will therefore be passed as a pointer and may
require unsafe code to manipulate. DBCustomAction
...
And I cannot get ride of those warnings. Am I using the right versions ??
There is another KB article about this pb and Visual Studio 2005 ?
With all this warnings it seems it still works, but very, very slow. Any
ideea why ?
I have a Windows XP + sp2 + VS 2005.
Thanks for any advice.