Some unpublished APIs

zhaozj2021-02-12  155

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 unkonwn2 as long, Byval Szprompt 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, ByVal Reverse As Long, LPICONDEX AS Long) AS Long

7) SHGETEXTENSIONSION

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 shpathisrelarative 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 long13) 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

转载请注明原文地址:https://www.9cbs.com/read-7071.html

New Post(0)