rapistartup.cs

来自「windows mobile 开发实例wi ndows mobile 开发实例」· CS 代码 · 共 40 行

CS
40
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?