📄 rapistartup.cs
字号:
// RapiStartup.cs - Simple thread-free RAPI startup
// with all P/Invoke declarations included.
//
// Code from _Programming the .NET Compact Framework with C#_
// and _Programming the .NET Compact Framework with VB_
// (c) Copyright 2002-2004 Paul Yao and David Durant.
// All rights reserved.
using System;
using System.Threading;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace RapiStartup
{
public class RapiStartup
{
const string m_strAppName = "RapiStartup";
public RapiStartup()
{
}
// -------------------------------------------------------
// RAPI.DLL Definitions
// -------------------------------------------------------
public struct RAPIINIT
{
public int cbSize;
public IntPtr heRapiInit;
public int hrRapiInit;
};
[DllImport("rapi.DLL", CharSet=CharSet.Unicode)]
public static extern int CeRapiInitEx (ref RAPIINIT p);
[DllImport("rapi.DLL", CharSet=CharSet.Unicode)]
public static extern int CeRapiUninit ();
// Block mode
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -