📄 win32.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -