win32.cs

来自「摄像管理系统」· CS 代码 · 共 43 行

CS
43
字号
namespace dshow.Core
{
	using System;
	using System.Runtime.InteropServices;

	/// <summary>
	/// Some Win32 API functions
	/// </summary>
	[ComVisible(false)]
	public class Win32
	{
		// memcpy - copy a block of memery
		[DllImport("ntdll.dll")]
		public static extern
			int memcpy(int dst, int src, int count);

		// Supplies a pointer to an implementation of IBindCtx
		[DllImport("ole32.dll")]
		public static extern
		int CreateBindCtx(
			int reserved,
			out UCOMIBindCtx ppbc);

		// Converts a string into a moniker that identifies
		// the object named by the string
		[DllImport("ole32.dll", CharSet=CharSet.Unicode)]
		public static extern
		int MkParseDisplayName(
			UCOMIBindCtx pbc,
			string szUserName,
			ref int pchEaten,
			out UCOMIMoniker ppmk);

		// window styles
		[Flags]
		public enum WS
		{
			CHILD	= 0x40000000,
			VISIBLE	= 0x10000000
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?