Patch from http://adui.codeplex.com/SourceControl/list/patches
Cleanup correctly the STGMEDIUM, fixes http://adui.codeplex.com/workitem/3109
Prevent exception
Prevent crashes on 64bits when memory address is beyond the capability of an int.
Use the right string when trying to prevent exception (bad commit at revision b9b13c1)
Apply most of patch 7313 from http://adui.codeplex.com/SourceControl/list/patches:
- Support for SkipDomainControllerCheck flag
- Support for ADsPathsProviders option
- Removed dependency on ActiveDs type library
- Throwing COM exceptions if calls fail in a few places
- Fixed "Virtual member call in constructor" ReSharper warning
- Calls to Marshal.ReleaseComObject
- Made some private method calls more readable
- Added a few new constants from Windows SDKs 6 & 7 (not exposed yet - need to test on all platforms)
- Removed an unnecessary [MarshalAs(UnmanagedType.Struct)] which was being ignored anyway
Merge pull request #7 from MarcelGosselin/master

64bit issues / memory leaks / multiple updates