View Full Version : Device ID
Heinz
10-24-2006, 06:55 PM
Hi,
has anybody an idea, how the device ID, user ID or any other device/user specific information that could be used for a copy protection can be extracted with PPL? Any hints would be highly welcome :)
thanks,
Heinz
kornalius
10-24-2006, 07:46 PM
Hi,
Welcome aboard.
Can you please change your avatar to something else.
You want to know how to extract the device ID with PPL right?
It is possible, it would have to be programmed in PPL but it is not something I can do right now. Maybe someone can help you by following the instructions here:
http://msdn2.microsoft.com/en-us/library/ms172516.aspx
PointOfLight
10-25-2006, 06:56 AM
I know this isn't really what you wanted, but if it's something you need right away, this might get you by until myself or someone else can make a native PPL version (or at least come up with a DLL or something). Get the example here: http://www.csdatasol.net/Downloads/uuid_ppl.zip. The executable uuid.exe needs to be installed in the same directory as your PPL program. When run, it creates a text file called register.txt with one line in it. If the line is {some-text-here}, then it's a valid device ID (just strip off the {}). If the text isn't surrounded by {}, then it will be an error describing why UUID didn't work. The included project has a function called GetUUID that you can use in your PPL program. Again, not a great solution, but a workable one.
Heinz
10-25-2006, 11:06 AM
Hi Eric,
thanks a lot for your help! That is perfect!
thanks,
Heinz
kornalius
10-25-2006, 04:20 PM
What about DeviceSerial() it returns the ID of the device. I didn't even remember I had this function. I am missing the DeviceName() function though. But it will be added very soon.
kornalius
10-25-2006, 05:03 PM
By the way, DeviceOwner() is a new function you will have in 1.06. It will return a list with the following:
Owner Name
Company
Address
Telephone
Email
Notes
Hope you will like it.
Btw to use DeviceSerial() you need to do it like this:
DeviceSerial(2002)
kornalius
10-25-2006, 05:14 PM
I just fixed a few bugs in DeviceSerial() for 1.06.
Heinz
10-25-2006, 07:28 PM
Hi Alain,
thanks a lot for your efforts! Sorry that I overlooked this function, but I am new to PPL and have not yet a full overview of all the great features :-)
Heinz
PointOfLight
10-25-2006, 07:47 PM
Actually, I didn't mention DeviceSerial because according to the help, it only supports 2000 and 2002 devices, even though the Device ID is available on 2003 devices as well. Or is it a problem where the help should be say something like "use 2000 for WM2000 devices, and 2002 for any device WM2002 and above"?
kornalius
10-25-2006, 09:31 PM
DeviceSerial() with a value 2002 works for WM2003 and probably too for WM2005. I didn't test on WM2005 though.
Heinz
01-27-2007, 10:21 PM
How do I use the function DeviceOwner (couldn't find it in the help)?
kornalius
01-28-2007, 12:15 AM
DeviceOwner(list$) will return a list.
Here are what each element of the list will hold:
0 - Owner's Name
1 - Company
2 - Address
3 - Telephone
4 - Email
5 - Notes
DeviceOwner(l$);
ForEach(l$)
ShowMessage(l$);
end;
PointOfLight
01-28-2007, 12:40 AM
The help file has been updated.
dennishea
01-28-2007, 07:43 AM
Has the whole help file been updated to version 1.12?
Denny
PointOfLight
01-28-2007, 08:29 PM
Unfortunately, not yet. I just meant I updated it for the DeviceOwner function.
Heinz
01-28-2007, 08:29 PM
Thanks a lot for the help!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.