WindowsServiceManager.GetLastError public static int GetLastError(); See also:Class WindowsServiceManager