GetNewPacket
Creates a packet object that implements the IPacket interface.
HRESULT GetNewPacket(IPacket **out_ppPacket);
Parameters
- out_ppPacket
A pointer to an object that implements IPacket.
Example
This example dynamically creates an instance of IPacket.
Managed Equivalent
PacketFactory..::.GetNewPacket
Requirements
DeviceAgentTransport.h