GetGraphicsMode

機能
指定のデバイスコンテキストのグラフィックスモードを取得する
Declare Function GetGraphicsMode Lib "gdi32.dll" _
(ByVal hdc As Long) As Long
Declare Function GetGraphicsMode Lib "gdi32.dll" _
(ByVal hdc As Integer) As Integer

int GetGraphicsMode(
HDC hdc
);
引数
hdc

デバイスコンテキストのハンドル
戻り値
正常終了のとき                                    グラフィックスモードを示す定数
エラーのとき                                      0
備考
グラフィックスモードはWindowsNTでサポートされている座標変換モードを含めたマッピングモードである。
Windows98以前のバージョンではサポートされていない。
戻り値の定数

GM_COMPATIBLE = 1                                  Windows3.1との互換モード
GM_ADVANCED = 2                                    (WindowsNT系のみ)