|
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. Only registered members may post questions, contact other members or search our database of over 8 million posts. Registration is fast, simple and absolutely free so please - Click to REGISTER! If you have any problems with the registration process or your account login, please contact contact us . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source | Today's Posts | Search |
GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
| LinkBack | Thread Tools | Display Modes |
05-22-2012, 21:12 | #1 (permalink) |
Freak Poster Join Date: Mar 2009
Posts: 234
Member: 984268 Status: Offline Thanks Meter: 150 | Iphone Warranty,Lock Status and Carrier info [DELPHI] Code: Uses WinInet, StrUtils; Code: function GetUrlContent(const Url: string): string; var NetHandle: HINTERNET; UrlHandle: HINTERNET; Buffer: array[0..1024] of Char; BytesRead: dWord; begin Result := ''; NetHandle := InternetOpen('Delphi 5.x', INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0); if Assigned(NetHandle) then begin UrlHandle := InternetOpenUrl(NetHandle, PChar(Url), nil, 0, INTERNET_FLAG_RELOAD, 0); if Assigned(UrlHandle) then { UrlHandle valid? Proceed with download } begin FillChar(Buffer, SizeOf(Buffer), 0); repeat Result := Result + Buffer; FillChar(Buffer, SizeOf(Buffer), 0); InternetReadFile(UrlHandle, @Buffer, SizeOf(Buffer), BytesRead); until BytesRead = 0; InternetCloseHandle(UrlHandle); end else { UrlHandle is not valid. Raise an exception. } raise Exception.CreateFmt('Cannot open URL %s', [Url]); InternetCloseHandle(NetHandle); end else { NetHandle is not valid. Raise an exception } raise Exception.Create('Unable to initialize Wininet'); end; procedure Add(D,I:String); var L:TListItem; begin L := Mainform.Listview.Items.Add; L.Caption := D; L.SubItems.Add(I); end; function Split(ToSplit,Start,Stop:String):String; var tmp : String ; begin tmp := Copy(ToSplit,Pos(Start, ToSplit) + Length(Start), Length(ToSplit) - Pos(Start, ToSplit) + Length(Start)); result := Copy(tmp, 0, Pos(Stop, tmp) - 1); end; function ToBoolStr(Str:String):String; begin If Str = 'Y' then result := 'True' else Result := 'False'; end; procedure TMainform.GetBtnClick(Sender: TObject); var Str:String; begin Str := GetUrlContent('https://selfsolve.apple.com/warrantyChecker.do?sn='+SerialEdit.Text); If AnsiContainsStr(Str,'"ERROR_CODE"') then begin SkinMessage.MessageDlg('Sorry, but this serial number is not valid. Please check your information and try again.',mtError, mbOKCancel,0); exit; end else begin Listview.Clear; Add('Product Iphone',ToBoolStr(Split(Str,'IS_IPHONE":"','"'))); Add('Has Coverage',ToBoolStr(Split(Str,'PH_HAS_COVERAGE":"','"'))); Add('Waranty Type',Split(Str,'wc.iphone.hardware.li.short":"','"')); Add('Activated',ToBoolStr(Split(Str,'ACTIVATION_STATUS":"','"'))); Add('Days Remain in Coverage',Split(Str,'DAYS_REM_IN_COV":"','"')); Add('Coverage End Data',Split(Str,'COV_END_DATE":"','"')); Add('Coverage Value',Split(Str,'HW_COVERAGE_VALUE":"','"')); Add('P-Description',Split(Str,'PART_DESCR":"','"')); Add('Product Description',Split(Str,'PROD_DESCR":"','"')); Add('Purchase Country',Split(Str,'PURCH_COUNTRY":"','"')); Add('Carrier',Split(Str,'CARRIER":"','"')); end; end; http://dl.dropbox.com/u/73988760/MPIphone.exe Pic : |
The Following 11 Users Say Thank You to mustipusti For This Useful Post: |
05-27-2012, 09:07 | #9 (permalink) |
Insane Poster Join Date: Nov 2011 Location: 00100010001 Age: 33
Posts: 83
Member: 1695724 Status: Offline Sonork: 100.1606763 Thanks Meter: 24 | @Darmiles sir Thumbs Up talaga ako sainyo hoping matuto din ako ng delphi program |
The Following User Says Thank You to m460tH!C For This Useful Post: |
Bookmarks |
| |
Similar Threads | ||||
thread | Thread Starter | Forum | Replies | Last Post |
Help: Forgot my 6110 user lock code!! | GByte9 | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 4 | 02-26-2016 14:52 |
my 8810 is phone locked ,can somebody please help | duyphuc | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 18 | 12-23-2014 09:03 |
IR between 6150 and IBM TP 600 | favdijck | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 3 | 11-15-2011 13:08 |
SP Lock 1&4 | dw | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 11 | 06-26-1999 06:22 |
wt603 and .pkd | ARt | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 0 | 06-13-1999 19:18 |
|