C# 中 调用 Win API 函数
发布日期:2021-11-13 02:34:52 浏览次数:14 分类:技术文章

本文共 241 字,大约阅读时间需要 1 分钟。

 

1)

        [DllImport("user32.dll", EntryPoint = "ShowWindow")]

        private static extern bool ShowWindow(IntPtr nClientID, int nCmdShow);

 

 

 

2)

 

        [System.Runtime.InteropServices.DllImport("gdi32.dll")]

        public static extern bool DeleteObject(IntPtr hObject);

 

转载地址:https://blog.csdn.net/johnice/article/details/4645717 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:c# ListView 双缓存 避免闪烁
下一篇:C# 属性页 PropertyGrid

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年04月03日 14时49分04秒