zoukankan      html  css  js  c++  java
  • .NET CF 枚举设备窗口


    参见:

    http://blog.opennetcf.com/ctacke/CategoryView,category,OpenNETCF.aspx

    这个不是什么困难的事情,也有很多人都写了,主要是练练手。

    BOOL EnumWindows(WNDENUMPROC lpEnumFunc, LPARAM lParam);

    lpEnumFunc EnumWindowsProc类型的回调函数
    lParam :传递给回调函数的应用程序指定值
    返回值: 非零表示成功;零表示失败

    BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam );
    hwnd:顶层窗口句柄
    lParam:指定要传递给EnumWindows or EnumDesktopWindows的值
    返回值: 非零表示成功;零表示失败

    在程序中如下:

    P/Invoke


    代码:

    Code


     
     
     
     

    --------------------------------------------------

    李森 – listen
    E-mail:  lisencool@gmail.com

    声明:
    这里集中了在WinCEWindows Mobile开发中的一些基本常识。我很乐意和大家分享,也希望大家提出意见,并给我投稿,我会第一时间替您发表并署上您的大名!

    Announce:
    Here collects general knowledge on WinCE and Windows mobile. I 'm very glad to share them with all friends, and also hope you can share your problems and opinions and contribute articles to me to share with others. I'll publish your articles and sign your name at the first time.

      



  • 相关阅读:
    js实现深拷贝的几种方法
    禁止浏览器的默认行为 图片拖动 复制 剪切 右击
    祈祷奇迹,其实不如无尽的练习
    洛谷P4643 [国家集训队]阿狸和桃子的游戏 & 初赛心情
    Re:prime 关于质数的算法
    【洛谷有题】NOIP 2014 提高组初赛试题 订正 网络协议 检索/比较次数计算
    补码的快速计算
    2020洛谷初赛模拟 订正
    【洛谷有题】NOI 笔试题库(非初赛)订正
    树状数组小结
  • 原文地址:https://www.cnblogs.com/Lisen/p/1572651.html
Copyright © 2011-2022 走看看