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;