Pusher.Interop64.cs 1.3 KB

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace MediaUtil
  4. {
  5. public partial class Pusher
  6. {
  7. private static class Interop64
  8. {
  9. [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "CreatePusher", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
  10. public static extern int CreatePusher(out IntPtr hPushr, int width, int height, int frameRate);
  11. [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "DestroyPusher", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
  12. public static extern void DestroyPusher(IntPtr hPushr);
  13. [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "StartPush", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
  14. public static extern int StartPush(IntPtr hPushr, string url);
  15. [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "StopPush", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
  16. public static extern int StopPush(IntPtr hPushr);
  17. [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "PushPacket", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
  18. public static extern int PushPacket(IntPtr hPushr, IntPtr hPacket);
  19. }
  20. }
  21. }