Get Disk Volume Serial Number: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (Updated author links.)
Line 1: Line 1:
{|align=right
|<small>Author: [[{{ns:2}}:b_avery@yahoo.com|b_avery@yahoo.com]] ([[{{ns:3}}:b_avery@yahoo.com|talk]], [[{{ns:-1}}:Contributions/b_avery@yahoo.com|contrib]])</small>
|}
<br style="clear:both;">
== Description ==
== Description ==
Do you need to find out the Disc Serial Number, well here you go, $0 - Drive to check returns the Disc Serial Number
Do you need to find out the Disc Serial Number, well here you go, $0 - Drive to check returns the Disc Serial Number
Line 13: Line 17:


http://forums.winamp.com/showthread.php?postid=1320397#post1320397
http://forums.winamp.com/showthread.php?postid=1320397#post1320397
Page author: [[User:b_avery@yahoo.com|b_avery@yahoo.com]]

Revision as of 02:57, 30 April 2005

Author: b_avery@yahoo.com (talk, contrib)


Description

Do you need to find out the Disc Serial Number, well here you go, $0 - Drive to check returns the Disc Serial Number

; $0 - Drive to check returns the Disc Serial Number
Function GetDiskVolumeSerialNumber
  !define GetVolumeInformation "Kernel32::GetVolumeInformation(t,*t,i,*i,*i,*i,t,i) i"
  System::Call '${GetVolumeInformation}("$0",,${NSIS_MAX_STRLEN},.r0,,,,${NSIS_MAX_STRLEN})'
FunctionEnd  ;GetDiskVolumeSerialNumber

This has been created as a result of:

http://forums.winamp.com/showthread.php?postid=1320397#post1320397