OSDN Git Service

AppliStation,バージョンを1.1.0.*に変更。ソースファイルへのコメントの加筆
[applistation/AppliStation.git] / na-get-lib / NaGet.InteropServices / CreateProcessCaller.cs
index cfb1d5c..2e79d5e 100644 (file)
@@ -4,6 +4,15 @@ using System.Runtime.InteropServices;
 \r
 namespace NaGet.InteropServices\r
 {\r
+       /// <summary>\r
+       /// Win32 API \82Ì<code>CreateProcess</code>\82ð\92¼\82É\92@\82­\82½\82ß\82Ì\83N\83\89\83X\81B\r
+       /// </summary>\r
+       /// <remarks>\r
+       /// .NET\82ÌProcess.Start\82Í\81A<code>CreateProcess(NULL, cmdLine, ...)</code>\r
+       /// \82Ì\82æ\82¤\82É\91æ\88ê\88ø\90\94\82ª<code>NULL</code>\82É\91\8a\93\96\82·\82é\8cÄ\82Ñ\8fo\82µ\82ª\81A\r
+       /// *\8cµ\96§\82È\88Ó\96¡*\82Å\82Å\82«\82È\82¢\81B\8cµ\96§\82È\88Ó\96¡\82Å\81A\r
+       /// \82±\82ê\82Æ\93¯\82\8cÄ\82Ñ\8fo\82µ\82ð\8eÀ\8c»\82·\82é\95K\97v\82ª\82 \82é\82Æ\82«\82É\8eg\82í\82ê\82é\81B\r
+       /// </remarks>\r
        public class CreateProcessCaller : IDisposable\r
        {\r
                #region Win32API\r
@@ -78,6 +87,11 @@ namespace NaGet.InteropServices
                STARTUPINFO si;\r
                PROCESS_INFORMATION pi;\r
                \r
+               /// <summary>\r
+               /// \83v\83\8d\83Z\83X\82ð\90\90¬\82·\82é\r
+               /// </summary>\r
+               /// <param name="procInfo">\83v\83\8d\83Z\83X\8bN\93®\8fî\95ñ\81B\r
+               /// \82È\82¨\81A<code>procInfo.UseShellExecute</code>\82Í\95K\82¸false\82Å\82È\82¯\82ê\82Î\82È\82ç\82È\82¢</param>\r
                public CreateProcessCaller(ProcessStartInfo procInfo)\r
                {\r
                        if (procInfo.UseShellExecute) {\r
@@ -101,17 +115,29 @@ namespace NaGet.InteropServices
                        CloseHandle(pi.hThread);\r
                }\r
                \r
+               /// <summary>\r
+               /// \8aÖ\98A\95t\82¯\82ç\82ê\82½\83v\83\8d\83Z\83X\82ª\8fI\97¹\82·\82é\82Ü\82Å\81A\8dÅ\91å\8ew\92è\82µ\82½\83~\83\8a\95b\8aÔ\91Ò\8b@\81\r
+               /// </summary>\r
+               /// <param name="timeout">\8dÅ\91å\91Ò\8b@\8e\9e\8aÔ(\83~\83\8a\95b\92P\88Ê)</param>\r
+               /// <returns>\8fI\97¹\83R\81[\83h</returns>\r
                public uint WaitForExit(uint timeout)\r
                {\r
                        return WaitForSingleObject(pi.hProcess, timeout);\r
                }\r
                \r
+               /// <summary>\r
+               /// \8aÖ\98A\95t\82¯\82ç\82ê\82½\83v\83\8d\83Z\83X\82ª\8fI\97¹\82·\82é\82Ü\82Å\96³\8aú\8cÀ\82É\91Ò\8b@\81B\r
+               /// </summary>\r
+               /// <returns>\8fI\97¹\83R\81[\83h</returns>\r
                public uint WaitForExit()\r
                {\r
                        // return WaitForExit(INFINITE)\r
                        return WaitForExit(0xFFFFFFFF);\r
                }\r
                \r
+               /// <summary>\r
+               /// \8fI\97¹\83R\81[\83h\r
+               /// </summary>\r
                public int ExitCode {\r
                        get {\r
                                int lpExitCode;\r
@@ -122,6 +148,9 @@ namespace NaGet.InteropServices
                        }\r
                }\r
                \r
+               /// <summary>\r
+               /// \83v\83\8d\83Z\83X\82Ì\83n\83\93\83h\83\8b\82ð\8aJ\95ú\82·\82é\r
+               /// </summary>\r
                public void Dispose()\r
                {\r
                        CloseHandle(pi.hProcess);\r