Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 2.19 KB

nf-ntddk-iocreatedisk.md

File metadata and controls

76 lines (56 loc) · 2.19 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntddk.IoCreateDisk
IoCreateDisk function (ntddk.h)
The IoCreateDisk routine initializes a raw disk by creating a new partition table.
storage\iocreatedisk.htm
storage
03/29/2018
IoCreateDisk function
IoCreateDisk, IoCreateDisk routine [Storage Devices], ntddk/IoCreateDisk, rtns-disk_5f69686f-f812-4ccc-8bc8-4caa70230d20.xml, storage.iocreatedisk
ntddk.h
Ntddk.h
Universal
This routine is only available on Windows XP and later.
NtosKrnl.lib
NtosKrnl.exe
Windows
IoCreateDisk
ntddk/IoCreateDisk
APIRef
kbSyntax
DllExport
NtosKrnl.exe
IoCreateDisk

IoCreateDisk function

-description

The IoCreateDisk routine initializes a raw disk by creating a new partition table.

-parameters

-param DeviceObject [in]

Specifies the DEVICE_OBJECT for the raw disk.

-param Disk [in, optional]

Pointer to a CREATE_DISK structure that specifies the type and parameters for the partition table. If Disk is NULL, the routine deletes the partition table on the disk.

-returns

Returns STATUS_SUCCESS on success, or the appropriate error code on failure.

-remarks

IoCreateDisk must only be used by disk drivers. Other drivers should use the IOCTL_DISK_CREATE_DISK I/O request instead.

-see-also

CREATE_DISK

IOCTL_DISK_CREATE_DISK