13.07.2015 Views

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ulEvent = pNotificationArray[i].<strong>Disk</strong>.ulEvent;printf( " Event: %s\n",ulEvent==<strong>VDS</strong>_NF_DISK_ARRIVE? "<strong>Disk</strong> Arrival":ulEvent==<strong>VDS</strong>_NF_DISK_DEPART? "<strong>Disk</strong> Depart":ulEvent==<strong>VDS</strong>_NF_DISK_MODIFY? "<strong>Disk</strong> Change":"<strong>Disk</strong> Unknown");StringFromGUID2( pNotificationArray[i].<strong>Disk</strong>.diskId, buffer, 50 );wprintf( L" Object Id: %s\n", buffer );break;case <strong>VDS</strong>_NTT_PARTITION:ulEvent = pNotificationArray[i].Partition.ulEvent;printf( " Event: %s\n",ulEvent==<strong>VDS</strong>_NF_PARTITION_ARRIVE? "Partition Arrival":ulEvent==<strong>VDS</strong>_NF_PARTITION_DEPART? "Partition Depart":ulEvent==<strong>VDS</strong>_NF_PARTITION_MODIFY? "Partition Change" :"Partition Unknown");StringFromGUID2( pNotificationArray[i].Partition.diskId, buffer,50 );wprintf( L" <strong>Disk</strong> Id: %s\n", buffer );printf( " Offset: %I64u\n",pNotificationArray[i].Partition.ullOffset);break;case <strong>VDS</strong>_NTT_DRIVE_LETTER:ulEvent = pNotificationArray[i].Letter.ulEvent;printf( " Event: %s\n",ulEvent==<strong>VDS</strong>_NF_DRIVE_LETTER_ASSIGN? "Drive Letter Assigned":ulEvent==<strong>VDS</strong>_NF_DRIVE_LETTER_FREE? "Drive Letter Freed":"Drive Letter Unknown");StringFromGUID2( pNotificationArray[i].Letter.volumeId, buffer,50 );wprintf( L" Letter: %c\n",pNotificationArray[i].Letter.wcLetter );wprintf( L" Volume Id: %s\n", buffer );break;case <strong>VDS</strong>_NTT_FILE_SYSTEM:ulEvent = pNotificationArray[i].FileSystem.ulEvent;printf( " Event: %s\n",ulEvent==<strong>VDS</strong>_NF_FILE_SYSTEM_MODIFY? "File System Modify":ulEvent==<strong>VDS</strong>_NF_FILE_SYSTEM_FORMAT_PROGRESS? "File System Format":"File System Unknown" );if ( ulEvent==<strong>VDS</strong>_NF_FILE_SYSTEM_FORMAT_PROGRESS )printf( "%ld Completed.\n",pNotificationArray[i].FileSystem.dwPercentCompleted);StringFromGUID2( pNotificationArray[i].FileSystem.volumeId,buffer, 50 );wprintf( L" Volume Id: %s\n", buffer );break;case <strong>VDS</strong>_NTT_MOUNT_POINT:ulEvent = pNotificationArray[i].MountPoint.ulEvent;printf( " Event: %s\n",ulEvent==<strong>VDS</strong>_NF_MOUNT_POINTS_CHANGE? "Mount Points Change":"Mount Points Unknown" );StringFromGUID2( pNotificationArray[i].FileSystem.volumeId, buffer,50 );291 / 360[<strong>MS</strong>-<strong>VDS</strong>] — v20110610<strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> (<strong>VDS</strong>) <strong>Protocol</strong> <strong>Specification</strong>Copyright © 2011 Microsoft Corporation.Release: Friday, June 10, 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!