Logical Disk Manager API

Logical Disk Manager API

Post by storagema » Tue, 13 Jan 2004 21:42:29

Does anybody know where I can get a descripton of the
Logical Disk Manager? Specifically, I need to create a
partition on both dynamic and basic disks.


Logical Disk Manager API

Post by shur » Tue, 13 Jan 2004 22:03:17

AFAIK there is no such API. But if you have disassembler you could find useful information from:
- dmremote.exe - LDM component
- dmadmin.exe - LDM service
- dmutil.dll
- dmconfig.dll - the heart of dynamic disks (written by VERITAS Software)

dmremote uses DCOM but there is no "official" way to use it on remote computer.
IMHO this fact means that "matrix has you".


Logical Disk Manager API

Post by Pat [MSFT » Wed, 14 Jan 2004 03:45:30

Win32 provides access to the disk controls via DeviceIoControl() functions
(e.g. IOCTL_DISK_CREATE_DISK, which will create a disk with the partitions
layed out).

SysInternals (www.sysinternals.com) have some LDM utilities that you might
want to look at to get an idea of what you will need to do.


Logical Disk Manager API

Post by anonymou » Thu, 15 Jan 2004 18:20:46

The problem is that I need being able to add/remove a
partition to an initialized and already partitioned disk
possible on either dynamic and basic disks, so creating
disk is not an option here.

DeviceIoControl() functions
with the partitions
utilities that you might

Logical Disk Manager API

Post by Slobodan B » Fri, 16 Jan 2004 00:27:24

You can always run diskpart.exe using CreateProcess.
This is probably not what you want but it is good alternative if you want to
get your job done very quickly.


Or you can always use DeviceIoControl with codes like IOCTL_DISK_CREATE_DISK
to access disk partition tables.