13.07.2015 Aufrufe

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

- If higher 16 bits of WParam are zero, then the message contains the <strong>VNWA</strong> remote handle = LParam. <strong>VNWA</strong>listens to message code = WParam in this case.- If higher 16 bits of WParam are NOT zero, then the return message contains an error code. The error code =higher 16 bit of WParam.Error codes:1: No error2: Script file error, non existent file error, non existent directory error3: File access error (e.g. write-file blocked)Software ImplementationDas folgende Delphi/Pascal Beispiel codiert Shows, wie man die <strong>VNWA</strong> Software entfernt startet und sie entferntkontrolliert:unit URemote;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls, ShellAPI, Menus;typeTForm1 = class(TForm)BStart<strong>VNWA</strong>: TButton;ListBox: TListBox;EPath: TEdit;ERuntimeArgument: TEdit;BSendMessage: TButton;ECommand: TEdit;EParameter: TEdit;Label1: TLabel;Label2: TLabel;PopupMenu1: TPopupMenu;ClearScreen1: TMenuItem;Edit5: TEdit;BSendWName: TButton;Label3: TLabel;Label4: TLabel;Edit6: TEdit;BSendRName: TButton;procedure BStart<strong>VNWA</strong>Click(Sender: TObject);procedure FormCreate(Sender: TObject);procedure BSendMessageClick(Sender: TObject);procedure ClearScreen1Click(Sender: TObject);procedure BSendWNameClick(Sender: TObject);procedure BSendRNameClick(Sender: TObject);privatePrivate declarationspublicPublic declarationsremotehandle: hwnd;WM_REMOTE: WORD;procedure Receiver(var Msg: TMessage); message WM_USER;end;varForm1: TForm1;implementation$R *.dfmprocedure TForm1.BStart<strong>VNWA</strong>Click(Sender: TObject);var path, argument: string;beginPostMessage(remotehandle, WM_REMOTE, 0, 0); //try to terminate <strong>VNWA</strong> if it is still runningsleep(500); //wait for <strong>VNWA</strong> to terminate- 370 -

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!