IWMSPacket::SetInHeader

The SetInHeader method copies data to a specified location within a packet header.

HRESULT SetInHeader(
  DWORD cbOffset,
  BYTE* pbData,
  DWORD cbData
);

Arguments

[in] DWORD containing the offset into the packet header at which to begin copying the data. The offset is specified in bytes.

[in] Pointer to a byte array containing the data to be copied into the header.

[in] DWORD containing the count of bytes to be copied into the header.

Return Value

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

Return code

Number

Description

E_FAIL

0x80004005

The data could not be copied.

Requirements

Header: wmspacket.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Concepts

IWMSPacket Interface