Advertisement
Guest User

Untitled

a guest
Nov 30th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. int dll_registerAccount(char* username, char* password);
  2.  
  3. [DllImport("pjsipDlld")]
  4. static extern int dll_registerAccount(IntPtr username, IntPtr password);
  5.  
  6. [DllImport("pjsipDlld")]
  7. static extern int dll_registerAccount(
  8. [MarshalAs(UnmanagedType.LPStr)]string username,
  9. [MarshalAs(UnmanagedType.LPStr)]string password);
  10.  
  11. public partial class NativeMethods {
  12.  
  13. /// Return Type: int
  14. ///username: char*
  15. ///password: char*
  16. [System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint="dll_registerAccount")]
  17. public static extern int dll_registerAccount(System.IntPtr username, System.IntPtr password) ;
  18.  
  19. }
  20.  
  21. [DllImport("pjsipDlld")]
  22. static extern int dll_registerAccount(string username, string password);
  23.  
  24. [DllImport("pjsipDlld")]
  25. static extern int dll_registerAccount(StringBuilder username, StringBuilder password);
  26.  
  27. [DllImport("pjsipDlld", CharSet = CharSet.Ansi)]
  28. static extern int dll_registerAccount(string username, string password);
  29.  
  30. [DllImport(DllName, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
  31. // bool MyFunction(char* fileName) <-- From the DLL
  32. static extern bool MyFunction(string fileName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement