Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RegisterMediaTypes function

Registers media type strings.

Syntax


HRESULT RegisterMediaTypes(
  _In_   UINT ctypes,
  _In_   LPCSTR *rgszTypes,
  _Out_  CLIPFORMAT *rgcfTypes
);

Parameters

ctypes [in]

The number of media type strings in the rgszTypes array. This parameter cannot be zero.

rgszTypes [in]

The address of an array of strings identifying the media types to be registered. None of the strings in the array can be NULL. See Clipboard Formats for a list of valid values.

rgcfTypes [out]

The address of an array of the 32-bit values assigned to corresponding media types in rgszTypes. See the following Remarks section for the definition of CLIPFORMAT.

Return value

Returns S_OK if successful, or E_INVALIDARG if one or more parameters are invalid.

Remarks

typedef WORD CLIPFORMAT;

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 3.0

Header

Urlmon.h

Library

Urlmon.lib

DLL

Urlmon.dll

See also

RegisterMediaTypeClass

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.