Click here to Skip to main content
15,905,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help Pin
ThatsAlok6-Apr-05 22:53
ThatsAlok6-Apr-05 22:53 
GeneralRe: need help Pin
Francis Chau6-Apr-05 23:41
Francis Chau6-Apr-05 23:41 
GeneralRe: need help Pin
ThatsAlok7-Apr-05 0:09
ThatsAlok7-Apr-05 0:09 
GeneralControl camera Pin
RoyalVN6-Apr-05 22:34
RoyalVN6-Apr-05 22:34 
GeneralRe: Control camera Pin
jerry0davis6-Apr-05 22:52
jerry0davis6-Apr-05 22:52 
GeneralRe: Control camera Pin
jerry0davis6-Apr-05 22:57
jerry0davis6-Apr-05 22:57 
GeneralGet Serial HDD, encoding and save !!! Pin
RoyalVN6-Apr-05 22:30
RoyalVN6-Apr-05 22:30 
GeneralRe: Get Serial HDD, encoding and save !!! Pin
BadJerry7-Apr-05 1:18
BadJerry7-Apr-05 1:18 
To get the HDD id
 TCHAR lpVolumeNameBuffer[256];
 DWORD VolumeSerialNumber;
 DWORD MaximumComponentLength;
 DWORD FileSystemFlags;
 TCHAR lpFileSystemNameBuffer[256];

if ( GetVolumeInformation(
         _T("C:\\"),               // address of root directory of the file system
         lpVolumeNameBuffer,             // address of name of the volume
         255,                            // length of lpVolumeNameBuffer
         &VolumeSerialNumber,            // address of volume serial number
         &MaximumComponentLength,        // address of system's maximum filename length
         &FileSystemFlags,               // address of file system flags
         lpFileSystemNameBuffer,         // address of name of file system
         255                             // length of lpFileSystemNameBuffer
   ) )
     {
      return VolumeSerialNumber;
  }
 else
     return 0;


Hope this helps...
GeneralInstallShield Pin
charu1236-Apr-05 22:19
charu1236-Apr-05 22:19 
Generalifstream operator>> Pin
Cedric Moonen6-Apr-05 21:27
Cedric Moonen6-Apr-05 21:27 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 21:31
NewbieStats6-Apr-05 21:31 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:39
Cedric Moonen6-Apr-05 21:39 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 21:45
toxcct6-Apr-05 21:45 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:55
Cedric Moonen6-Apr-05 21:55 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 21:45
NewbieStats6-Apr-05 21:45 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:51
Cedric Moonen6-Apr-05 21:51 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 21:53
NewbieStats6-Apr-05 21:53 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:02
Cedric Moonen6-Apr-05 22:02 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 21:54
toxcct6-Apr-05 21:54 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 21:57
Cedric Moonen6-Apr-05 21:57 
GeneralRe: ifstream operator>> Pin
NewbieStats6-Apr-05 22:00
NewbieStats6-Apr-05 22:00 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:07
Cedric Moonen6-Apr-05 22:07 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:00
toxcct6-Apr-05 22:00 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:05
Cedric Moonen6-Apr-05 22:05 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:13
toxcct6-Apr-05 22:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.