Challenging Task for all gurus [message #132750] |
Mon, 15 August 2005 23:55 |
toufiq_raja
Messages: 39 Registered: May 2005 Location: Islamabad
|
Member |
|
|
dear all,
here a task ahead of me, if any body have any idea, let me know.
i want to read the physical address/serial number of hard disk through oracle, so that my application/database does not run on any other hard disk or machine. purpose is to restrict software piracy. that is if some one copies my application it should not run on other machine. how to read the serial number.
if any one have a query regarding the understanding of the task please contact me
Regards!
Raja Toufiq
[Updated on: Mon, 15 August 2005 23:57] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Challenging Task for all gurus [message #133633 is a reply to message #132750] |
Sat, 20 August 2005 07:09 |
ramisy2k
Messages: 150 Registered: April 2005
|
Senior Member |
|
|
thanx alot Maaher ,
i have dowaloaded the file but the the site is not in English language...
also can u tell me how to use ocx deature in forms 6i and by using the three .dll files in the zipped folder which i downloaded from the link u provided how can i get the serrial no of the hard disk ...
waiting for ur answer!
regards,
Asim
|
|
|
|
|
Re: Challenging Task for all gurus [message #133992 is a reply to message #132750] |
Tue, 23 August 2005 02:58 |
ramisy2k
Messages: 150 Registered: April 2005
|
Senior Member |
|
|
Hi Toufiq,
Its is difficult to figure out what exactly the problem is but have u followed all the steps before running the form that i mentioned in the text file..i.e. have u followed this step
STEP 2:
Then go to 'START MENU' and click 'RUN' and then paste the follwing text without quotes there:
'Regsvr32.exe hwinfo.ocx'
Now press the enter button...
A succeed message will come!!!
---------
TRY IT AGAIN AND SEE WHAT HAPPENS..i MADE THAT FORM USING 6i ON WINDOWS XP...
i am wondering how it could show the serial no of my hard disk on ur pc..either its sld show urs or show nothing..
anyways, if the problem does not solve then leave that form and follow the following steps...
make a new form, new block, new canvas...
go to layout editor of the canvas
Now:
- Create an ActiveX Control Item (OCX) on your canvas.
- Right click it and select 'Insert Object...'.
- A list will come
- Press 'H' on keyboard
- It will come to a selection "HardwareInfo Control'
- select it and then press ok!.
- In the main Form biulder menu 'Program', choose 'Import OLE Library Interfaces'
- again Press 'H' on keyboard
- and see to find out a selection in the list: "HardwareInfo.HardWareInfo.ctrl1'
- select it and then u will see something each in Method Package(s) and the Event Package(s) lists.
- Select both the Method Package(s) and the Event Package(s). Make sure they're highlighted.
i.e "_dhardwareinfo and _dHardwareinfoEvents"
- Now press OK
- Verify the existance of 5 new programme units in your Foms Program units section in object navigator:
i.e.
HARDWAREINFOLib_CONSTANTS
...
...
...
HARDWAREINFO_HardWareIn_EVENTS
- Now go to layout editor again and make a new single display_item (non-db)
- make a push button..
copy the following code in ur wehn-buton-pres tigger, dont forget ot change the
'your_block.your_activex_item_name' p[ortion in the following code with correct block and OCX item name
DECLARE
VAR oleobj;
BEGIN
VAR := :ITEM('your_block.your_activex_item_name').interface;
:ur_display_item_name := HARDWAREINFO_DHardWareInfo.HardDisk1SerialNumber(VAR);
END;
now run the form and see what serial no it shows..
also how maany hard disk u have on ur pc the .dll files can show upto four hard disk serial nos
look closely this 'HardDisk1SerialNumber' of the above:
:ur_display_item_name := HARDWAREINFO_DHardWareInfo.HardDisk1SerialNumber(VAR);
u can see the '1' in the 'HardDisk1SerialNumber' is the no of system hard disk..u may try it by changing to HardDisk2SerialNumber, HardDisk3SerialNumber, HardDisk4SerialNumber
Regards,
Asim.
|
|
|
Re: Challenging Task for all gurus [message #134275 is a reply to message #133992] |
Wed, 24 August 2005 02:50 |
ramisy2k
Messages: 150 Registered: April 2005
|
Senior Member |
|
|
Hi,
there have been 36 downloads to my Hard disk serial no retrieval file ....i just want to how many of those have succesfully rettived their own hard disk serial no using the form i provided in RAR file???
any feedback would be welcomed??
regards,
Asim.
|
|
|
Re: Challenging Task for all gurus [message #134312 is a reply to message #134275] |
Wed, 24 August 2005 04:57 |
|
saadatahmad
Messages: 452 Registered: March 2005 Location: Germany/Paderborn
|
Senior Member |
|
|
Hi,
Toufiq is right. By downloading your form, one gets your hard disk serial number every time. I created a new OCX item and inserted the Hardware Info and got the information about my hardware.
However, When you provided the form for others, you didn't mention Maaher's contribution towards this solution.
You just mentioned:
after posting my question, I thought to try it myself and by the virtue of try try again!! motto I finally done it..
He provided you this link
"Here's a link to an OCX for drive information:
http://www.vb-fun.de/cgi-bin/loadframe.pl?ID=vb/komponenten/komponente0042.shtml
and only after that you were able to complete the task. You should appreciate other's contribution as well.
At the end, I would say that your work is appreciable.
regards.
[Updated on: Wed, 24 August 2005 05:00] Report message to a moderator
|
|
|
Re: Challenging Task for all gurus [message #134319 is a reply to message #134312] |
Wed, 24 August 2005 05:18 |
ramisy2k
Messages: 150 Registered: April 2005
|
Senior Member |
|
|
Hi,
thanks Saadat for your response..
If you have read the entire thread carefully then you should know that I thanked Maher for he posting the link (prior to my attachment post)..and it is only I on this thread who has thanked Maher as yet..
Secondly, I never said that I am taking all the credit becoze I didn't explicitly appreciated Maher..I just tried to setup the .dll the files to use them in form for my purpose..and I succeeded..
Credit also goes to the person or the one who made these .dll files..
Anyways, why is that my form shows my hard disk serial no. on others system too?
Is making a new ocx_item and going through all the procedure is the solution to get the serial no..
Regards,
Asim.
|
|
|
|
|
|
|
Re: Challenging Task for all gurus [message #390594 is a reply to message #390571] |
Sun, 08 March 2009 01:08 |
rmoplusx
Messages: 19 Registered: February 2009
|
Junior Member |
|
|
Littlefoot wrote on Sat, 07 March 2009 11:10 | How nice of you!
In the future, please, try to keep the discussion (on the OraFAQ Forum) in English so that people might understand it. Also, although there's nothing wrong about it, you have replied to a question asked almost 4 years ago. Perhaps you'd want to participate in newer discussions - there's plenty of them!
|
i am very sorry and i will remember that before any post.
|
|
|
|
|
|
|