Recent

Author Topic: GetVolumeLabel and Serial on Linux? How?  (Read 6604 times)

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
GetVolumeLabel and Serial on Linux? How?
« on: October 25, 2009, 05:39:47 pm »
Hi,

can everybody translate it in linux for lazarus?

function GetVolumeSerialNo(Drive: Char): DWORD;
begin
  GetVolumeInformation(PChar(Drive + ':\'), nil, 0, @Result, DWORD(nil^), DWORD(nil^), nil, 0);
end;

And how I get the label name?
Programmer Software and other copy protection tools.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
Re: GetVolumeLabel and Serial on Linux? How?
« Reply #2 on: November 05, 2009, 03:48:07 pm »
Hello,

not found the right.

Can everybody translate this code into linux fpc?

function GetVolumeID(Drive : Char) : PCHar;
type
  TCharBuffer = array[0..255] of Char;
var num :  TCharBuffer;
begin
  GetVolumeInformation(pChar(Drive + ':\'), @num, sizeof(num), nil, DWord(nil^), DWord(nil^), nil, 0);
  result := num;
end;


Programmer Software and other copy protection tools.

diducu

  • Newbie
  • Posts: 4
Re: GetVolumeLabel and Serial on Linux? How?
« Reply #3 on: November 05, 2009, 06:19:06 pm »
Man help me pls my pc dont let me to instal Linux.I dont know why .I install it and when i rulle it he give me an criticall err.and the pc is dead

 

TinyPortal © 2005-2018