Retrieves the ID that uniquely identifies the drive in the system.
#include "ILTDVDBurner2.h"
| Platform | Syntax |
|---|---|
| C | HRESULT ILTDVDBurner_getDriveId(pDVDBurner, Index, pVal) |
| C++ | HRESULT GetDriveId(Index, pVal) |
Pointer to an ILTDVDBurner interface.
Value that represents a zero-based index of the drive for which to retrieve the ID.
Pointer to a character string to be updated with the drive ID.
| Value | Meaning |
|---|---|
| S_OK | The function was successful. |
| <> S_OK | An error occurred. Refer to the Error Codes. |
Save the retrieved ID for later use: it is guaranteed to be unique and not to change.
If the function succeeds, the user is responsible for freeing the retrieved ID string by calling SysFreeString.
Win32, x64
For a C example, refer to ILTDVDBurner::GetDriveId Example for C.
For a C++ example, refer to ILTDVDBurner::GetDriveId Example for C++.