Beispiel #1
0
 public string GetProfileData(UserProfileField field)
 {
     return(MarshalHelpers.GetString((IntPtr buffer, IntPtr length, out bool isNull, out NativeException ex) =>
     {
         return NativeMethods.get_profile_data(this, field, buffer, length, out isNull, out ex);
     }));
 }
Beispiel #2
0
 public static extern IntPtr get_profile_data(SyncUserHandle user, UserProfileField field,
                                              IntPtr buffer, IntPtr buffer_length, [MarshalAs(UnmanagedType.U1)] out bool isNull,
                                              out NativeException ex);