﻿// Decompiled with JetBrains decompiler
// Type: AForge.Video.DirectShow.Internals.Win32
// Assembly: PluginRemoteWebcam, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 264B4BD0-AE99-4418-804A-8A34B1A0A20B
// Assembly location: C:\Users\ian\Downloads\Telegram Desktop\fein\Plugins\PluginRemoteWebcam.dll

using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;


namespace AForge.Video.DirectShow.Internals
{
	internal static class Win32
	{
		[DllImport("ole32.dll")]
		public static extern int CreateBindCtx(int reserved, out IBindCtx ppbc);

		[DllImport("ole32.dll", CharSet = CharSet.Unicode)]
		public static extern int MkParseDisplayName(
			IBindCtx pbc,
			string szUserName,
			ref int pchEaten,
			out IMoniker ppmk);

		[DllImport("ntdll.dll", CallingConvention = CallingConvention.Cdecl)]
		public static extern unsafe int memcpy(byte* dst, byte* src, int count);

		[DllImport("oleaut32.dll")]
		public static extern int OleCreatePropertyFrame(
			IntPtr hwndOwner,
			int x,
			int y,
			[MarshalAs(UnmanagedType.LPWStr)] string caption,
			int cObjects,
			[MarshalAs(UnmanagedType.Interface)] ref object ppUnk,
			int cPages,
			IntPtr lpPageClsID,
			int lcid,
			int dwReserved,
			IntPtr lpvReserved);
	}
}
