WskDeregister function (wsk.h)

The WskDeregister function unregisters a WSK application's registration instance that was previously created by WskRegister.

Syntax

void WskDeregister(
  [in] PWSK_REGISTRATION WskRegistration
);

Parameters

[in] WskRegistration

A pointer to the memory location initialized by WskRegister that identifies a WSK application's registration instance.

Return value

None

Remarks

For each call to WskRegister that returns a success code, there must be exactly one corresponding WskDeregister call that uses the same WskRegistration parameter that was passed to WskRegister.

WskDeregister will wait to return until all of the following have completed:

  • All captured instances of the provider NPI are released.
  • Any outstanding calls to functions pointed to by WSK_PROVIDER_DISPATCH members have returned.
  • All sockets are closed.
For more information about attaching a WSK application to the WSK subsystem, see Registering a Winsock Kernel Application.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Universal
Header wsk.h (include Wsk.h)
Library Netio.lib
IRQL PASSIVE_LEVEL

See also

WSK_REGISTRATION

WskRegister