- . , , , .
. , , .
, 208 . ϳ , 209 .
.
, . 3.5 , 7 980 , 10%.
3.5
, (. 3.6).
3.6
3.6 , , 8 240 10%.
, . , .
, , . , .
, . , .
, . ϳ , , , .
˲
1. .. . // . -1995, 2, 246 .
2. ³. // http://uk.wikipedia.org/wiki/_
3. . . . .: , 2000. 368 .
4. .., .., .. . 1. . ³: , 2005.- 140.
5. // http://zashita-informacii.ru/node/82
6. .. . // . 1994, 1, . 340
7. . : . .: , 1992. 334.
|
|
8. . . . .: - , 1992, 435 .
9. ., ., . . . . .. . .:, 1992., 286 .
10. , // http://regailreg.narod.ru/
11. ³. C# // http://ru.wikipedia.org/wiki/C_Sharp
12. , , , , C# 2008 .NET 3.5 .: . . .: . . , 2009. 1392 .: . . . .
13. MSDN. // http://msdn.microsoft.com/ru-ru/library/microsoft.win32.registry.aspx
˳
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Microsoft.Win32;
namespace Lab2
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var reg = Registry.CurrentUser.OpenSubKey("Smurf", true);
if (reg == null)
reg = Registry.CurrentUser.CreateSubKey("Smurf");
var values = reg.GetValueNames();
Int64 data = 0;
if (values.Contains("Smurf"))
{
data = Convert.ToInt64(reg.GetValue("Smurf"));
}
if (data == 888)
MessageBox.Show(" ");
else
{
MessageBox.Show(" , ");
Environment.Exit(-1);
}
Application.Run(new Form1());
}
}
}