EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

WebSocketDeleteHandle function

The WebSocketDeleteHandle function deletes a WebSocket session handle created by WebSocketCreateClientHandle or WebSocketCreateServerHandle.

Syntax


VOID WINAPI WebSocketDeleteHandle(
  _In_  WEB_SOCKET_HANDLE hWebSocket
);

Parameters

hWebSocket [in]

Type: WEB_SOCKET_HANDLE

WebSocket session handle returned by a previous call to WebSocketCreateClientHandle or WebSocketCreateServerHandle.

Return value

If the function succeeds, it returns S_OK.

If the function fails, it returns a system error code defined in WinError.h.

Remarks

Any use of a deleted WEB_SOCKET_HANDLE session handle may result in an access violation. Before an application deletes a session handle, it must ensure that all operations have been processed. Applications may use WebSocketAbortHandle to abort any queued operations before calling WebSocketDeleteHandle.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Websocket.h

Library

Websocket.lib

DLL

Websocket.dll

See also

WebSocketAbortHandle
WebSocketCreateClientHandle
WebSocketCreateServerHandle

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2015 Microsoft