Hi all,
On win2k can I find programmatically whether a disk is dynamic or basic
??
with regards,
Nagesh Bhattu
Hi,
the following code can do it:
BYTE buff[2048];
DWORD nBytes;
PDRIVE_LAYOUT_INFORMATION pDriveInfo;
pd = (PDRIVE_LAYOUT_INFORMATION)buff;
HANDLE dev = OpenDisk(0);
BOOL bResult = DeviceIoControl(dev,
IOCTL_DISK_GET_DRIVE_LAYOUT,
NULL, 0,pDriveInfo, 2048,
&nBytes, NULL);
if(pDriveInfo->PartitionEntry[0].PartitionType == PARTITION_LDM)
{
bSynDisk = TRUE;
}
else
{
bSynDisk = FALSE;
}
----- Original Message -----
From: “Nagesh Bhattu”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Saturday, August 17, 2002 10:13 PM
Subject: [ntdev] dynamic disk
> Hi all,
> On win2k can I find programmatically whether a disk is dynamic or basic
> ??
> with regards,
> Nagesh Bhattu
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@21cn.com
> To unsubscribe send a blank email to %%email.unsub%%
>
----------------------------------------------
ÍæÖ©ÖëÏÀÓÎÏ·,ÈÕÈÕËÍ´ó½±,ÿÌìÍ·½±°®Á¢ÐÅT68ÊÖ»ú
http://sms.21cn.com/game_a04.jsp
ÊÖ»úºÅÂëÕ¼²·ÄãµÄ²ÆÔË,Ãâ·ÑÊÔÓÃ
http://sms.21cn.com/game_mc001.jsp
¶à¿î»úÐÍͼƬÁåÉù,ÒýÁìÊÖ»ú³±Á÷
http://211.147.1.182/21CN/modules/pic/
ÊÕ·ÑÓÊÏäÎå°ü³Ðŵ:°üÍË°ü»»°üÂúÒâ ºñÀñË«°üËÍ´ó½±
http://mail.21cn.com/5bao/5bao2.html