Just declare the return type as an IntPtr and treat it like a handle. If you need to look at the contents of the LDAP struct, use Marshal.PtrToStructure().
Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.