ディスプレイモニターに関する情報を取得する
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にマルチモニターが追加されたことで追加された関数