IWMSServer::get_FileType

banner art

Previous Next

IWMSServer::get_FileType

The get_FileType method retrieves the type of a content file identified by a specific path.

Syntax

  HRESULT get_FileType(
  
  BSTR
  
  path
  ,
  
  WMS_FILE_TYPE*
  
  pVal
  
  );

Parameters

path

[in] BSTR containing the path.

pVal

[out] Pointer to a member of the WMS_FILE_TYPE enumeration type. This must be one of the following values.

Value Description
WMS_FILE_DIRECTORY Indicates the item is a directory.
WMS_FILE_MEDIA Indicates the item is a digital media file.
WMS_FILE_PLAYLIST Indicates the item is a playlist.
WMS_FILE_STREAM_FORMAT Indicates the item is a stream format file.
WMS_FILE_UNSPECIFIED Indicates the file type is either unknown or unspecified.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_OUTOFMEMORY 0x8007000E Indicates that there is insufficient memory to complete the function.
E_POINTER 0x80004003 Indicates that pVal is a NULL pointer argument.

Remarks

This method requires the Network Service account to have read and browse access to the specified path.

Example Code

  

Requirements

Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next