gvSetUnpluggedCallback

GameSpy SDK

gvSetUnpluggedCallback

Sets a callback to be called when the SDK detects that the device was unplugged or is no longer functioning.

void gvSetUnpluggedCallback(
GVDevice device,
gvUnpluggedCallback unpluggedCallback );
RoutineRequired HeaderDistribution
gvSetUnpluggedCallback<gv.h>SDKZIP

Parameters

device
[in] The handle to the device.
unpluggedCallback
[in] The callback to set. Can be NULL.

Remarks

A gvUnpluggedCallback allows an application to know if a device is unplugged or otherwise stops working. The callback will be called when the SDK detects that the device has been unplugged. The device will be freed by the SDK immediately after the callback returns and cannot be used again by the application.

Section Reference: Gamespy Voice SDK

See Also: gvUnpluggedCallback