|
![]() |
|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Register | FAQ | Donate | Forum Rules | ★. iPhone Unlock .★ | -= JTAG BOOM =- | Search | Today's Posts | Mark Forums Read |
| GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member ![]() ![]() Join Date: Aug 2011
Posts: 29
Member: 1635841 Status: Offline Thanks: 10
Thanked 6 Times in 5 Posts
| this small source show all port available Code: type
TForm1 = class(TForm)
Button1: TButton;
ComboBox1: TComboBox;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
Reg : TRegistry;
Values : TStringList;
I : Integer;
Str : string;
begin
ComboBox1.Clear;
Reg:=TRegistry.Create;
try
Values:=TStringList.Create;
try
Reg.RootKey:=HKEY_LOCAL_MACHINE;
registre
if not Reg.OpenKey('HARDWARE\DEVICEMAP\SERIALCOMM',False) then
ShowMessage('Error : Unable to open registry Key')
else
begin
Reg.GetValueNames(Values);
for I:= 0 to Values.Count-1 do
begin
Str:=Reg.ReadString(Values.Strings[I]);
ComboBox1.Items.Add(Str);
end;
end;
finally
Values.free;
end;
finally
Reg.Free;
end;
end; anyone can help me with this funtion "FriendlyName" or give me a example thank in advance |
|
| The Following User Says Thank You to Mr.P@B!0 For This Useful Post: |
| | #3 (permalink) | |
| Product Supporter ![]() ![]() ![]() Join Date: Apr 2002 Location: nckDongle
Posts: 1,985
Member: 11170 Status: Offline Sonork: 1603694 Thanks: 232
Thanked 1,608 Times in 599 Posts
| Quote:
Code:
RequiredSize:= Info.MaxValueLen + 1;
SetLength(S2,RequiredSize);
if RegQueryValueEx(KEY,'PortName',Nil,@Regtyp,@s2[1],@RequiredSize)=Error_Success then begin | |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| thread | Thread Starter | Forum | Replies | Last Post |
| How to add a language in 51xx/61xx | tati | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 9 | Today 08:58 |
| imei in 6110 | PIOTRS | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 0 | 11-16-1999 17:01 |
| blue Display in Nokia Cellphones | TheDon | Nokia Hardware & Hardware-Repair Area | 0 | 10-29-1999 18:28 |
| New menu item in 5110 | GeoMan | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 3 | 09-23-1999 20:24 |
| Lock 2 in nokia 51xx/61xx | Pablo | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 1 | 07-31-1999 04:35 |