// Anwendung 2
NM_NRDE_MESSAGE_BEGIN:
begin
nrdeOpen := true;
nrdeType := Lobyte(Loword(wParam));
nrdeLen := Hiword(wParam);
nrdeBufAsc := '
';
if (nrdeType=NRDE_ASCII)
or (nrdeType=NRDE_CONTROL)
then begin
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Loword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Loword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Hiword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Hiword(lParam)));
Dec(nrdeLen);
end;
end;
WriteLn('
NRDE ',nrdeBufAsc);
end;
NM_NRDE_MESSAGE_DATA:
if nrdeOpen
then begin
if (nrdeType=NRDE_ASCII)
or (nrdeType=NRDE_CONTROL)
then begin
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Loword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Loword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Hiword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Hiword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Loword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Loword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Hiword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Hiword(lParam)));
Dec(nrdeLen);
end;
end;
WriteLn('
NRDE ',nrdeBufAsc);
end;
NM_NRDE_MESSAGE_END:
if nrdeOpen
then begin
if (nrdeType=NRDE_ASCII)
or (nrdeType=NRDE_CONTROL)
then begin
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Loword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Loword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Hiword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Hiword(wParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Loword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Loword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Lobyte(Hiword(lParam)));
Dec(nrdeLen);
end;
if nrdeLen>0
then begin nrdeBufAsc += Chr(Hibyte(Hiword(lParam)));
Dec(nrdeLen);
end;
end;
end;