Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int success = -1;
- unsafe
- {
- int res = 0;
- int* res_ptr = &res;
- int len = cmd.ToCharArray().Length;
- int* len_ptr = &len;
- CmdInterpreter(ref cmd, len_ptr, res_ptr);
- success = *res_ptr;
- }
- [DllImport("brugs.dll", EntryPoint="CmdInterpreter",
- ExactSpelling=false, CallingConvention = CallingConvention.StdCall)]
- public static unsafe extern void CmdInterpreter(ref string cmd, int *len, int *res);
Add Comment
Please, Sign In to add comment