Hello, Win32 API(Python) World!
Posted on 4月 29th, 2012 by cx20
Win32 API(Python)
Win32 API は、Windows の機能にアクセスする為の API(Application Programming Interface)である。
以下は Python にて ctypes ライブラリを使用した呼出し例である。
ソースコード
import ctypes user32 = ctypes.windll.user32 user32.MessageBoxA( 0, "Hello, Win32 API(Python) World!", "Hello, World!", 0 ) |
実行方法
C:¥> python hello.py |
実行結果
--------------------------- Hello, World! --------------------------- Hello, Win32 API(Python) World! --------------------------- OK --------------------------- |
Tags: Win32 API