zoukankan      html  css  js  c++  java
  • C# 调用系统API 内核 简单样例

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Runtime.InteropServices;  //引用系统调用
    
    namespace win32_Api
    {
        class Program
        {
            [DllImport("user32.dll")]  //调用内核插件
            public static extern int MessageBox(int h, string m, string c, int type); //属性设置
    
            static void Main(string[] args)
            {
    
                MessageBox(0, "Hello win32 API", "title", 4); //对应属性中的4个参数 h=0,hello..=m,title=c,type=4
                Console.ReadLine();
                
            }
        }
    }
  • 相关阅读:
    Linux05——用户操作
    租房子-----多选题
    查询
    增删
    PHP基础
    数据库--高级查询
    CRUD查询
    CRUD操作
    数据库
    轮播
  • 原文地址:https://www.cnblogs.com/wordgao/p/4465249.html
Copyright © 2011-2022 走看看