Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include <windows.h>
#include <stdio.h>
#include <ftapi.h>
void __cdecl main( int argc, char** argv )
{ FT_LOGICAL_DISK_ID diskId; int memberNumber; BOOL b;
if (argc != 3) { printf("usage: %s <diskId> <memberNumber>\n", argv[0]); return; }
sscanf(argv[1], "%I64X", &diskId); sscanf(argv[2], "%d", &memberNumber);
printf("Orphaning member %d on %I64X...\n", memberNumber, diskId);
b = FtOrphanLogicalDiskMember(diskId, (WORD) memberNumber);
if (b) { printf("Member orphaned.\n"); } else { printf("Orphaning failed with %d\n", GetLastError()); } }
|