整理的一些未公開的API

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.