Care Unlock  
Your online unlock store
GSM-Forum  

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.

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering

GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 05-24-2012, 09:57   #1 (permalink)
Junior Member
 
Join Date: Aug 2011
Posts: 29
Member: 1635841
Status: Offline
Thanks: 10
Thanked 6 Times in 5 Posts
Wink show port available in delphi

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;
at this point all ok,

anyone can help me with this funtion "FriendlyName" or give me a example

thank in advance
  Reply With Quote
The Following User Says Thank You to Mr.P@B!0 For This Useful Post:
Old 05-24-2012, 12:07   #2 (permalink)
Freak Poster
 
Join Date: Jul 2005
Age: 36
Posts: 355
Member: 163721
Status: Offline
Thanks: 14
Thanked 144 Times in 71 Posts
Delphi-PRAXiS - Einzelnen Beitrag anzeigen - Delphi COM Ports im System auslesen
  Reply With Quote
Old 05-24-2012, 12:32   #3 (permalink)
Product Supporter
 
orbita's Avatar
 
Join Date: Apr 2002
Location: nckDongle
Posts: 1,965
Member: 11170
Status: Offline
Sonork: 1603694
Thanks: 230
Thanked 1,598 Times in 593 Posts
Quote:
Originally Posted by Mr.P@B!0 View Post
this small source show all port available

anyone can help me with this funtion "FriendlyName" or give me a example

thank in advance

Code:
RequiredSize:= Info.MaxValueLen + 1;
                   SetLength(S2,RequiredSize);
                   if RegQueryValueEx(KEY,'PortName',Nil,@Regtyp,@s2[1],@RequiredSize)=Error_Success then begin
S2 will be Friendly name.
  Reply With Quote
The Following 2 Users Say Thank You to orbita For This Useful Post:
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 ) 7 12-10-2012 04:46
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


All times are GMT +1. The time now is 05:46.



Powered by Searchlight © 2013 Axivo Inc.
- GSM Hosting Ltd. - 1999-2013 -
Page generated in 0.22580 seconds with 11 queries

SEO by vBSEO