Ir para conteúdo
Faça parte da equipe! (2024) ×
Conheça nossa Beta Zone! Novas áreas a caminho! ×

Vator

Emerald Member
  • Total de Posts

    1.116
  • Registro em

  • Última visita

  • Dias Ganhos

    1
  • WCoins

    0

Posts postados por Vator

  1. Aff baixa o Delphi sem saber programar Delphi e querendo criar hack pra jogo de RPG ù__ú

     

    (Facepalm)

     

    A pergunta do século : "O QUE EU FAÇO?"

     

    -

    Foi pior do que perguntar como gerar um code pra Delphi.

    -

     

    Pesquisa no google : "O que fazer com o Delphi instalado" e clica no 1º link.

     

    Isso mudou completamente minha forma de ver o mundo.Perdi toda minha esperança

     

    Baixar Delphi pra criar um hack sem saber programar nada é triste.

    Desculpa,não agüentei.

  2. Adicione a referência à hnetcfg.dll (C:/WINDOWS/SYSTEM32)

     

    Achei este texto em inglês,acho que vai lhe ajudar :

     

     

    Setting up

     

    Start by adding a reference to the COM dll that provides the functionality to control the windows firewall. The filename is hnetcfg.dll which can be found at the system32 folder inside windows. So add the file to your C# project.

     

    File location: \Windows\System32\hnetcfg.dll

    Then add these using statements to import the COM Objects

     

    É necessário se cadastrar para acessar o conteúdo.

    Obtaining a reference to the firewall manager

     

    The first step toward controlling the windows firewall is to obtain a reference to the firewall manager class. For this we will use the CLSID of the class which is

     

    {304CE942-6E39-40D8-943A-B913C40C9CD4}

     

    So our code looks like this

     

    É necessário se cadastrar para acessar o conteúdo.

     

    The above code shows how to get a reference to the firewall manager

     

    Check if the firewall is turned on

     

    If the firewall is not turned we should look into the current profile and find out then turn it on.

     

    É necessário se cadastrar para acessar o conteúdo.

     

    Give full trust to your executable

     

    If we want to authorize some application with full trust then we need to create a FirewallAuthorizedApplication (INetFwAuthorizedApplication) object and add it to the authorized application list.

     

    É necessário se cadastrar para acessar o conteúdo.

     

    The above code is for a function that adds an authorized application. Let see the use by authorizing notepad full internet access!

     

    É necessário se cadastrar para acessar o conteúdo.

     

    Opening a Port Globally

     

    Sometimes we may want to open a port for any application no matter what. Windows Firewall can be instructed to open a port globally for all applications by adding a port to the globally open ports list. Let try to write a function that opens up a port globally ...

     

    É necessário se cadastrar para acessar o conteúdo.

     

     

    Fonte : shaqal

    Mas acho melhor desativar essa droga de firewall logo.:p

  3. As funções são colocadas "fora" das Sub que são os eventos.No corpo da classe,ou equivalente no Visual Básico.

     

    Cada evento aí está separado por traços,assim fica fácil.

    Tenta ler o código e entender,use o notepad++.

     

    Adicione os componentes pedidos,vi um timer,um button aí no código...

     

    Se quiser eu faço o exemplo pra vc.

×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.