ä»æ¥ã®å¤ãã® OS ãããã§ããããã«ãWindows ã«ãèªä½ã®ããã°ã©ã ã³ã¼ããç¹å®ã®ããã»ã¹ã¸ä»å ¥ããããã¨ã®ã§ãããããã¯ãã¨ããä»çµã¿ãããã¾ããèªåèªèº«ã®ããã»ã¹ãããã¯ãããã¨ãã§ãã¾ãããä»ã®ããã»ã¹ãããã¯ãããã¨ã§é常ã®ã¢ããªã±ã¼ã·ã§ã³ããã°ã©ãã³ã°ã®æ ãè¶ ããæ§ã ãªèå³æ·±ãå¦çã®å®ç¾ãå¯è½ã¨ãªãã¾ãã ã»æå®ã®ããã»ã¹ã«å¯¾ãã Windows ã¡ãã»ã¼ã¸ã®ç£è¦ã»ææ ã»æå®ã®ããã»ã¹ã§ã®ç¹å®ã®ã¤ãã³ãã«å¼å¿ããèªä½ã³ã¼ãã®æ³¨å ¥ ã»æ¢åã®ã¢ããªã±ã¼ã·ã§ã³ã®æä½ãå¤æ´ etc. ãèªä½ã®ã³ã¼ããããããã»ã¹ã«ä»å ¥ããããã¨ã¯ã©ããããã¨ã§ãããï¼ ã¡ã¢ãªä¸ã®ã¢ã¸ã¥ã¼ã«ã¤ã¡ã¼ã¸ã«ã¢ã¯ã»ã¹ãã¦ãã·ã³èªå½ä»¤ãæ¸ãæãã¦ã»ã»ã¨ããæªãããªæ¹æ³ãããããã§ãããWindows ã§ã¯ DLL ãå©ç¨ãããã¨ã§æ¯è¼ç容æã«ãã®å½é¡ã解決ã§ãã¾ãã ãã®ãã¨ãéã«èããã¨ãèªä½ã® DLL
â ã¯ããã« ååã®è¨äºã§ã¯ Windows ã®ã¤ãã³ããããã¯ããæ¹æ³ã«ã¤ãã¦ã話ãã¾ããããç¹å®ã® Windows API å¼ã³åºãããããã¯ããã«ã¯ã©ãããã°ããã§ãããï¼ ãããèããããã«ã¯ãã¾ãã©ã®ãããªä»çµã¿ã§ããã°ã©ã ã API ãå¼ã³åºã ãã¦ããã®ãã調ã¹ã¦ããå¿ è¦ãããããã§ãã ãåç¥ã®éããWindows API ã¯ãæå®ã® Windows ããã°ã©ã ããå¼ã³åºããã¨ã®å¯è½ãªã¨ã¯ã¹ãã¼ãé¢æ°ã¨ã㦠OS ç°å¢ã® DLL(Dynamic Link Library) 群ã«æ ¼ç´ããã¦ãã¾ããããã¦ãããããã°ã©ã ã®å®è¡ã«å¿ è¦ãª API ãå«ã DLL ã¯ãå®è¡ãã¡ã¤ã«èµ·åæã®åæåæã«ããã»ã¹ã¸ãªã³ã¯ããããã®å¾ã¯æå®ã® API ãééçã«å¼ã³åºããã¨ãã§ããããã«ãªãã¾ãã DLL ãããã»ã¹ã¸ãªã³ã¯ããã«ã¯ãå®è¡å½¢å¼ããã«ãããéã«æå®ã®ã¤ã³ãã¼ãã©ã¤ãã©ãªããªã³ã¯ã
éèªã«ããWebã«ããï¼æè¿ã®Windowsããã°ã©ãã³ã°ã®è¨äºã®ã»ã¨ãã©ã¯ .NETåãã ããã¤ã¯ãã½ãããï¼ããã¾ã§ãã¤ãã£ãã»ã³ã¼ãã§ã®éçºã主æµã ã£ãC/C++éçºã¾ã§ï¼ .NETã¸ã®ç§»è¡ãä¿ããã¨ãã¦ããã ã§ã¯ãã¤ãã£ãã»ã¢ããªã±ã¼ã·ã§ã³éçºç¨ã®ããã°ã©ãã³ã°ã»ã¤ã³ã¿ãã§ã¼ã¹ã§ããWin32 APIï¼Application Programming Interfaceï¼ã®ç¥èã¯ä¸è¦ã«ãªãã®ãã¨ããã¨ï¼æ±ºãã¦ããã¯ãªããªãã¨çè ã¯èãã¦ãããçç±ã®ä¸ã¤ã¯ï¼OSãåä½ããä»çµã¿ãç¥ããã¨ãï¼ä»å¾ãéçºè ã«ã¨ã£ã¦éè¦ã§ããç¶ãããã¨ã ãããã»ã¹ç®¡çï¼ã¡ã¢ãªã¼ç®¡çï¼åæåã¨ãã£ãæ¦å¿µã¯ï¼.NETã§éçºããå ´åã§ãå¿ è¦ã ãããããç¥èãå¾ãã®ã«ä¸çªããã®ã¯ï¼ãã¯ãOSã®ã«ã¼ãã«ã«è¿ãAPIã®ã¬ãã«ã§å¦ã¶ãã¨ã§ããã å°æ¥ã©ããªããã¯ã¨ãããï¼ç¾æç¹ã§ã¯ .NET Frameworkã®å¤§é¨å
è¶ åå¿è 対象ã®ãC/C++/C#ããã°ã©ã æ室ã§ãã ãWindows95/98/2000/XP使ãã ãã«ã¯é£½ãããã以åï¼£ããã£ããã¨ããããããã¤ã³ã¿ã¼ã§ã¤ã¾ãããã ãããã°ã©ã ã¯ãå ¨ãçµé¨ããªãããDOSã®ããã°ã©ã ã¯ãä½ãããWindowsã®ããã°ã©ã 㯠ã¡ãã£ã¨ã»ã»ã»ãã¨ããæ¹ã®ããã®ãã¼ã ã»ãã¼ã¸ã§ããä¸ç´è 以ä¸ã®æ¹ãã»ãããã®æ¹ã ããã®æ¹ãé æ ®ãã ãããMacã¦ã¼ã¶ã¼ã®æ¹ãç§ã®åä¸è¶³ã®ãããå½¹ã«ç«ã¦ã¾ããã Webmaster Yasutaka Kumei [How To Walk][ç»åã表示ãããªãæã¯] [VC++6.0ã§ãã¾ããã«ãã§ããªãæã¯] [ãªã½ã¼ã¹ããã¾ã表示ãããªãæã¯(VC++6.0)] [ãªã½ã¼ã¹ããã¾ã表示ãããªãæã¯(VC++.net)] [ã¡ãã»ã¼ã¸ã»ã«ã¼ã] [WinXP+VC++.netã§ã³ã³ãã¤ã«ã§ããªãæã¯] [.netã§ãã©ã¡ã¼ã¿ã»
ä»åãããããããã¤ã³ã¿ã¼ãããé¢ä¿ã®ããã°ã©ã ãä½ãã¾ãã æ¯è¼çç°¡åãªã®ã¯FTPã§ããèªåã®ãã¼ã ã»ãã¼ã¸ãæã£ã¦ããæ¹ã¯ã ãªãã¿ã¶ããã½ããã§ããã FTPã¯Internet APIã¨å¼ã°ããé¢æ°ç¾¤ã使ãã ãã§ä½ããã®ã§ã Winsockãªã©ã®ç¥èããªãã¦ã大ä¸å¤«ã§ãã ã¾ãã¯ãFTPãµã¼ãã¼ãããã¡ã¤ã«ããã¦ã³ãã¼ãããããã°ã©ã ã ä½ãã¾ããWindowsã®systemã®ãã£ã¬ã¯ããªã«wininet.dllãåå¨ãã ãã¨ã確èªãã¦ãã ããã ï¼ï¼wininet.hãã¤ã³ã¯ã«ã¼ããã¦ãwininet.libããªã³ã¯ãã ï¼ï¼InternetOpené¢æ°ã§Internet APIãåæåãã ï¼ï¼InternetConnecté¢æ°ã§FTPã»ãã·ã§ã³ãã³ãã«ãåå¾ãã ï¼ï¼FtpSetCurrentDirectoryé¢æ°ã§ç¾å¨ã®FTPã®ãã£ã¬ã¯ããªãã»ãããã ï¼ï¼FtpGetFi
Windows APIï¼ã¦ã£ã³ãã¦ãº ã¨ã¼ãã¼ã¢ã¤ï¼ã¨ã¯ãMicrosoft Windowsã®ã·ã¹ãã ã³ã¼ã«ç¨APIã®ãã¨ãç¹ã«32ãããããã»ããµã§åä½ããWindows 95以éãWindows NTã§å©ç¨ã§ãããã®ã¯Win32 APIã¨å¼ã°ãããã¾ãããããã®Windowsã«ãããWin32 APIã®å®è£ ãWin32ã¨å¼ã¶ã 64ãããããã»ããµåãã®Win64 APIãå«ããå ´åã¯ãWindows APIãã¨ããå æ¬çãªå称ãæ£ç¢ºã ããæ £ç¿çã«Win32ã¨è¨ãã°Win64ãå«ãã§ãããã¨ããã[1]ã Windowsãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã (OS) ä¸ã§åä½ããã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ãWindows APIã¯Windowsã®åæ©è½ã«ã¢ã¯ã»ã¹ããããã®æ¥ç¹ã§ããããã®ãããWindowsä¸ã§åä½ããã¢ããªã±ã¼ã·ã§ã³ãä½æã§ããæ§ã ãªããã°ã©ãã³ã°è¨èªã»éçºç°å¢ã«ããã¦Window
ï¼·ï½ï½ï½ï½ï½ï½ã®ããã°ã©ãã³ã°ã¯ãé常ã«å¤§å¤ãªä½æ¥ã§ããæä½ã®ãã¨ãè¡ãªãã«ããï¼ï¼ï¼ï¼ï¼ãã¼ã¸ä»¥ä¸ã®è§£èª¬æ¸ãããã¥ã¡ã³ãã¯å¿ è¦ã§ããã¾ãã¦æ¬æ ¼çãªã¢ããªã±ã¼ã·ã§ã³ãä½æããã¨ããã¨ãä¸æã®äºé ãããããã»ãããããããããããæéãæãã¦ï¼ã¤ãã¤è§£æ±ºããªããã°ããã¾ããã ããã§ã¯ãï¼£è¨èªã¨ï¼·ï½ï½ï½ï½ï½ï½ã®ï¼¡ï¼°ï¼©ã使ã£ã¦ãçæ§ã®ã¢ããªã±ã¼ã·ã§ã³ã«å½¹ç«ã¤äºé ãç´¹ä»ãã¦ããã¾ããAPIã説æããã®ã§ã¯ãªããå ·ä½çãªç¨ä¾ãã½ã¼ã¹ã³ã¼ããä¾ç¤ºãã¦è§£èª¬ãã¾ããå 容ã«ãã£ã¦ã¯ï¼é±éã»ï¼ã¶æãããä½æ¥ãããã£ã¨ããéã«æ¸ãã§ãã¾ããã¨ãããã§ããããçæ§ã®ãå½¹ã«ç«ã¦ãã°å¹¸ãã§ãã ï¼·ï½ï½ï½ï½ï½ï½ãWINï¼ï¼ãAPIãï¼´ï½ï½ï½ï½ï½ APIãï¼´ï½ï½ï½ï½ï½ã®ãµã¤ãã®æ§æã¨æä½ã¯ããã¡ããã覧ãã ããã APIã®åºæ¬ ã¯ããã« ããã°ã©ãã³ã°ã®æ¸æ³ ããã°ã©ãã³ã°ã®åºæ¬ ï¼£è¨èªã®æ¸æ³ã¨å´é¢ ã¯ã©ã¹ã¨ã¦ã£ã³
Visual Studio 2005ã®æ©è½éå®çããç¡æã§é å¸ããã¦ãã¾ãã Visual Studio 2005 Express Edition ã¯ããããã¬ãã¤ã³ããªã»ã³ã¹ä»ã¨ãã£ã¿ããã«ã«ä½¿ããçµ±åç°å¢ã§ãã ããã§ã¯ãVisual C++ Express Editionã§ã©ãã¾ã§ã§ãããæ¤è¨ãã¦ã¿ã¾ããã ãã¤ãã£ãWIN32ã¢ããªã±ã¼ã·ã§ã³ WTLã使ã ã¢ããªã±ã¼ã·ã§ã³ãé å¸ãã åé¡ç¹ ãã£ã±ãä»å¾ã¯.NET Frameworkãï¼ æ¡å¼µC++ããC++/CLI㸠Express Editionã¯ãããã°ã©ãã³ã°å¦ç¿ã.NET Frameworkã®éçºãåæã«ãªã£ã¦ãã¾ãã ãã®ãããããã©ã«ãã§ã¯å¾æ¥ã®WIN32 APIãå©ç¨ããéçºãã§ãã¾ããã Platform SDKã®è¿½å ã¤ã³ã¹ãã¼ã«ãå¿ è¦ã§ãã XPãªã©ã§ããWindowsR Server 2003 SP1 Pla
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}