I installed VS 2005 Team Solution for Developers on a clean new machine with
Windows XP Pro + SP2. No previous beta/rc versions of .NET.
I followed ALL the steps from kb article + registered properly the
AdsSecurity.dll and still getting 39 warnings like :
Warning 8 The type library importer could not convert the signature for the
member 'ADS_OCTET_STRING.lpValue'. WindowsApplication2
Warning 9 The type library importer could not convert the signature for the
member '__MIDL___MIDL_itf_ads_0000_0002.lpValue'. WindowsApplication2
Warning 10 The type library importer could not convert the signature for the
member 'ADS_NT_SECURITY_DESCRIPTOR.lpValue'. WindowsApplication2
Warning 32 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. WindowsApplication2
Warning 33 At least one of the arguments for 'ITypeInfo.RemoteGetTypeAttr'
cannot be marshaled by the runtime marshaler. Such arguments will therefore
be passed as a pointer and may require unsafe code to manipulate.
Post by Jeffrey Tan[MSFT]
Thanks for your post.
I am not sure what system you are using. On my Win2003 machine, I first
(this is just the "Download the SDK for Active Directory Services
Interfaces 2.5 (English Language Version)" link in page
Then, I go to C:\Program Files\Microsoft\ADSI Resource Kit, Samples and
Utilities\ResourceKit folder to register ADsSecurity.dll with command line
Then in VS2005 "Add Reference" dialog, I can see the "ADsSecurity 2.5 Type
Library" in COM tabpage and reference it.
After above steps, I can paste the KB code and compile it without any
warning message. So can not confirm you did the above prerequest correctly?
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.