Contents Introduction and Scope Why Use Lisp with Win32? A (Very) Brief Overview of a Win32 Program's Life Windows Character Systems and Lisp FLI - The Foreign Language Interface Translating C Header Files to Lisp FLI Data Types FLI Data Structures FLI Functions Callbacks from Windows to Lisp Starting the Program The Lisp REPL and Win32 Development Making Direct Win32 Calls from CAPI Interfacing t
Win32 API(Clojure) Win32 API ã¯ãWindows ã®æ©è½ã«ã¢ã¯ã»ã¹ããçºã® APIï¼Application Programming Interfaceï¼ã§ããã 以ä¸ã¯ Clojure ã«ã¦ SWT ã®éå ¬é API ã使ç¨ãã Win32 API å¼åºãã®ä¾ã¨ãªã£ã¦ããã ã½ã¼ã¹ã³ã¼ã Hello.cljraw download(import (org.eclipse.swt.internal.win32 OS) (org.eclipse.swt.internal.win32 TCHAR)) (def lpText (TCHAR. 0 "Hello, Win32 API World!" true)) (def lpCaption (TCHAR. 0 "Hello, World" true)) (. OS (MessageBox 0 lpText lpCapti
SWTã使ã£ã¦JavaããWin32APIãå®è¡ããä¸çªæåã®ã¦ã¤ã³ãã¦ã®ã¿ã¤ãã«ãåå¾ãã¾ãã 注æ:使ç¨ãã¦ããã¯ã©ã¹ã¯JavaDocçã§ã¯éå ¬éã«ãªã£ã¦ãã¾ããä»å¾å¤æ´ããããããµãã¼ããããªããªã£ããããå¯è½æ§ãããã¾ãã æºå SWT: The Standard Widget ToolkitããWindowsç¨SWTã®ã¢ã¼ã«ã¤ãããã¦ã³ãã¼ã ã¢ã¼ã«ã¤ããå±éããJavaã®ã¯ã©ã¹ãã¹ã«ãswt.jarãã追å ã DLLã®ãã¼ããã¹ã«ãswt-*.dllãã追å ã(Javaå®è¡æã®ã«ã¬ã³ããã£ã¬ã¯ããªã«é ç½®ã確èªãã¾ãããJavaã®ã·ã¹ãã ããããã£ãjava.library.pathãã§dllãã¤ã¬ã¯ããªã®ãã¹ãæå®ããæ¹æ³ãããããã§ãã) ãµã³ãã« org.eclipse.swt.internal.win32.OS ã«APIãç¨æããã¦ãã¾ããWin32 API é¢æ°ã¨ã»ã¼å
Windows ã®è¨å®ã§ä¸å®æéå¾ã«ãã£ã¹ãã¬ã¤ã®é»æºãåããã¨ã¯å¯è½ã§ããããã®è¨äºã§ç´¹ä»ããæ¹æ³ãå©ç¨ããã¨ãããæè»ã«å¥½ããªã¿ã¤ãã³ã°ã§ãã£ã¹ãã¬ã¤ã®é»æºã® ON/OFF ãå¶å¾¡ã§ãã¾ããWin32API ã使ãã¾ãã Windows Embedded ã«ããçµã¿è¾¼ã¿ã·ã¹ãã ããæ¥å¸¸ã®çã¨ãã«ä½¿ãã¾ãã â»ãã«ããã£ã¹ãã¬ã¤ã®å ´åã«ã¯ããã¹ã¦ã®ãã£ã¹ãã¬ã¤ã®é»æºãã¾ã¨ãã¦å¶å¾¡ããã¾ãã åå¥ã«å¶å¾¡ããæ¹æ³ãç¥ã£ã¦ãã人ã¯æ¯éæãã¦ä¸ããï¼ User32.lib ã® PostMessage é¢æ°ã§ãWM_SYSCOMMAND ã¡ãã»ã¼ã¸ã®ãã©ã¡ã¼ã¿ã« SC_MONITORPOWER ãæå®ããã¨ãã£ã¹ãã¬ã¤ã®é»æºãå¶å¾¡ã§ãã¾ãã å ·ä½çã«ã¯ä»¥ä¸ã®ãµã³ãã«ã³ã¼ãããæç²ããã¨ãã®ãããªæãã§ãã DISPLAY_ON = -1 DISPLAY_OFF = 2 ãã£ã¹ãã¬ã¤ã®é»æºãåã U
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãç¥ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}