Hallo,
aber wie sollte ich denn soetwas in PonyProg einbinden. Evtl. müsste
ich aus den einzelnen Programmen ein Exe-File machen. Aber ich habe
nicht die passende Software dafür. Oder könnte mir jemand 2 ausführbare
Dateien machen um die Ports ein/auszuschalten. Dann könnte ich ein
Batch-File machen um vor dem Starten von Ponyprog das ganze
einzuschalten und danach wieder ausschalten z.b.
ein.exe
ponyprog.exe
aus.exe
Visual Basic
Declare Sub EnablePorts Lib "ntport.dll" (ByVal portStart As Integer,
ByVal portEnd As Integer)
Declare Sub DisablePorts Lib "ntport.dll" (ByVal portStart As
Integer, ByVal portEnd As Integer)
C++
void APIENTRY EnablePorts(WORD PortStart, WORD PortStop);
void APIENTRY DisablePorts(WORD PortStart, WORD PortStop);
Delphi
procedure EnablePorts(PortStart:word; PortStop:word);stdcall; external
'ntport.dll';
procedure DisablePorts(PortStart:word; PortStop:word);stdcall; external
'ntport.dll';