WskDeregister function

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

Syntax


VOID WskDeregister(
  _In_ PWSK_REGISTRATION WskRegistration
);

Parameters

WskRegistration [in]

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

Target platform

Universal

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

Wsk.h (include Wsk.h)

Library

Netio.lib

IRQL

PASSIVE_LEVEL

See also

WskRegister
WSK_REGISTRATION

 

 

Send comments about this topic to Microsoft

Show: