IDvdInfo2::GetDVDDirectory method

The GetDVDDirectory method retrieves the root directory that is set in the DVD Navigator.

Syntax


HRESULT GetDVDDirectory(
  [out] LPWSTR pszwPath,
  [in]  ULONG  ulMaxSize,
  [out] ULONG  *pulActualSize
);

Parameters

pszwPath [out]

Pointer to a buffer that receives the path string.

ulMaxSize [in]

Size of the buffer, in WCHARs.

pulActualSize [out]

Pointer to a variable that receives the size of actual data returned, in WCHARs.

Return value

Returns one of the following HRESULT values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

The buffer is not large enough to hold the string.

VFW_E_DVD_INVALIDDOMAIN

The DVD Navigator is not in a valid domain.

 

Remarks

This method is demonstrated in the DVDSample application in CDvdCore::GetDriveLetter.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
Error and Success Codes
IDvdInfo2 Interface

 

 

Show: