Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want server hard disk serial number no client hdd
Message
 
To
27/05/2004 07:25:13
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00907654
Message ID:
00907787
Views:
6
>Hi all
>I have a DLL that with this I can read hard disk serial number.
>It is in my app directory and I use from it by DECLARE command.
>I use from it for copy protection solution.
>But when I install my app on server and client run the app, it return client hard disk serial number.
>I want this return server hard disk serial number.
>Is this possible or not and what must I do?
>Thanks for your guide.

You mean
DECLARE SHORT GetVolumeInformation IN Win32API;
  STRING @lpRootPathName, STRING @lpVolumeNameBuffer,;
  INTEGER nVolumeNameSize, INTEGER @lpVolumeSerialNumber,;
  INTEGER @lpMaximumComponentLength, INTEGER @lpFileSystemFlags,;
  STRING @lpFileSystemNameBuffer, INTEGER nFileSystemNameSize
lproot = "F:\"
lpvol = SPACE(260)
lnnamesize = 260
lnserialno = 0
lnmaxcomp = 0
lnflags = 0
lpsysname = SPACE(260)
lnnamesize = 260
? GetVolumeInformation(@lproot, @lpvol, lnnamesize, @lnserialno,;
  @lnmaxcomp, @lnflags, @lpsysname, lnnamesize)
? lnserialno
If the function returns non-zero, it succeeded. Note that this only works on Win2K and above under Win2K or above servers.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform