[Source] - [C++] Делаем привязку программы (GetVolumeInformation) | ФОРУМ СОЦИАЛЬНОЙ ИНЖЕНЕРИИ ⭐️MeHack⭐️ - Читы, базы, раздачи аккаунтов, сливы скриптов, способы заработка
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 401

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 403

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 409

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 411

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 417

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 423

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 425

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 427

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 429

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 435

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 437

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 443

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 445

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 451

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 453

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 455

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 457

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 463

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 469

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 475

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 491

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/Siropu/AdsManager/Helper/General.php on line 2627

[Source] [C++] Делаем привязку программы (GetVolumeInformation)

Тема в разделе "C/C++", создана пользователем iExploit, 16.09.18.Просмотров: 654

  1. iExploit %USERNAME%

    iExploit

    Продвинутый

    58 сообщения
    89 симпатий
    3
    розыгрышей
    8 лет с нами
    2 месяца с нами
    29 дней с нами
    Создаем функцию key:
    Код:
    void key()
    {
    
    }
    Объявляем переменные:
    Код:
    char NameBuffer[MAX_PATH];
        char SysNameBuffer[MAX_PATH];
        DWORD HWID, MCLength, FileSF;
    Получаем GetVolumeInformation:
    Код:
    if (GetVolumeInformation("C:\\", NameBuffer, sizeof(NameBuffer), &HWID, &MCLength, &FileSF, SysNameBuffer, sizeof(SysNameBuffer)))
    {
    
    }
    Вставляем туда это, для того чтобы узнать наш VolumeInformation:
    cout << "HWID: " << HWID << endl;
    Дальше вставляем:
    Код:
    if (HWID == 123456789) { //Если HWID равен 123456789 (Надо поставить свой)
        cout << "HWID: found"; //Выводим HWID: found
    }
    Код:
    else { // в другом случае
           cout << "HWID: not found"; // выводим HWID: not found
    }
    Вызываем:
    Код:
    int main()
    {
        key();
        cin.get();
    }
    Полный код:


    Применение: например вы хотите чтобы вашу программу использовали только вы и друзья.
    [​IMG]