zoukankan      html  css  js  c++  java
  • 整理的一些未公开的API

    1)BOOL  IsHungAppWindow(

                                                    HWND hWnd//main winows handle

                                                      );

    //defined in User32.dll

    2)BOOL IsHungThread(

                                        DWORD dwThreadID//the thread ID to main thread

    )

    the 2 APIs to judge the windows is "running" or "Not responding".like as  in Task Management.

    ///================================

    3)SHRestartSystemMB

    4)SHShutDownDialog

      Declare Function SHShutDownDialog Lib "shell32" Alias "#60"(Byval yourGuess as Long) as  long

    5)SHRunDialog

    Declare Function SHRunDialog Lib "shell32" Alias "#61"(Byval hOwner as Long,byval UnKnown1 as long ,byval  UnKonwn2 as Long ,byva lszTitle as String ,byval szPrompt as Sting ,byval nFlag as long ) as  long

    6)SHChangeIconDialog

    Declare Function SHChangeIconDialog Lib "shell32" Alias "#62"(Byval hOwner as Long,byva lszFileName as String ,byval reverse as long,lpIconIndex as Long  ) as  long

    7)SHGetExtension

    Declare Function SHGetExtension Lib "shell32" Alias "#31"(byva lszPath as String ) as Long

    8)SHAddBackslash

    Declare Function SHAddBackslash Lib "shell32" Alias "#32"(byva lszPath as String ) as Long

    9)SHGetFileName

    Declare Function SHGetFileName Lib "shell32" Alias "#34"(byva lszPath as String ) as Long

    10)SHPathIsRelative

    Declare Function SHPathIsRelative Lib "shell32" Alias "#40"(byva lszPath as String ) as Long

    11)SHPathIsExe

    Declare Function SHPathIsExe Lib "shell32" Alias "#43"(byva lszPath as String ) as Long

    12)SHFileExists

    Declare Function SHFileExists Lib "shell32" Alias "#45"(byva lszPath as String ) as Long

    13)SHGetPathArgs

    Declare Function SHGetPathArgs Lib "shell32" Alias "#52"(byva lszPath as String ) as Long

    14)SHGetShortPathName

    Declare Function SHGetShortPathName Lib "shell32" Alias "#92"(byva lszPath as String ) as Long

  • 相关阅读:
    P1828 [USACO3.2]香甜的黄油 Sweet Butter 题解
    P2058 海港 题解
    浅谈三分算法
    海伦公式的证明
    一年一回首
    再谈单调队列优化 & 背包九讲
    浅谈单调队列
    P1440 求m区间内的最小值 题解
    CF1374B Multiply by 2, divide by 6 题解
    组合数、杨辉三角与递推算法
  • 原文地址:https://www.cnblogs.com/confach/p/112106.html
Copyright © 2011-2022 走看看