GetMonitorInfo

機能
ディスプレイモニターに関する情報を取得する
Declare Function GetMonitorInfo Lib "user32.dll" Alias "GetMonitorInfoA" _
(ByVal hMonitor As Long, lpmi As MONITORINFO) As Long
Declare Function GetMonitorInfo Lib "user32.dll" Alias "GetMonitorInfoA" _
(ByVal hMonitor As Integer, lpmi As MONITORINFO) As Integer

BOOL GetMonitorInfo(
HMONITOR hMonitor,
LPMONITORINFO lpmi
);
引数
hMonitor

ディスプレイモニターのハンドル
lpmi
(戻り値)情報を受け取るMONITORINFO構造体
戻り値
正常終了のとき          コピーしたバイト数
エラーのとき    0
備考
Windows98にマルチモニターが追加されたことで追加された関数