°Ê²¼¤Î£³¤Ä¤Î¾õÂÖ¤À¤È¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ã¤ÆÉÔ¶ñ¹ç¤À¤È»×¤¦¤Î¤Ç¤¹¤¬
¸«²ò¤òʹ¤«¤»¤Æ¤¯¤À¤µ¤¤¡£
¡¥í¡¼¥«¥ë¤Ç¤âGetWindowThreadProcessId¤Î¼Â¹Ô
¢¥â¥¸¥å¡¼¥ëÆâ¤Çuser32.asÀë¸À¡Ê¤³¤ì¤ÏÌäÂê¤Ê¤·¡Ë
£¥â¥¸¥å¡¼¥ë¤Î°ÌÃÖ¤òºÇ½é¤ËµºÜ
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
#include "user32.as" ;£ ;#module ;#deffunc test ; pId = 0: GetWindowThreadProcessId@ hwnd, varptr( pId ) ; mes pId ; return ;#global ;GetWindowThreadProcessId hwnd, varptr( pId ) ;¡ test stop #module ;#include "user32.as" ;¢ #deffunc test pId = 0: GetWindowThreadProcessId@ hwnd, varptr( pId ) mes pId return #global