WsFreeServiceHost function
Releases the memory associated with a Service Host object.
Syntax
void WINAPI WsFreeServiceHost(
_In_ WS_SERVICE_HOST* serviceHost
);
Parameters
- serviceHost [in]
-
A pointer to the Service Host object to release. The pointer must reference a valid WS_SERVICE_HOST object returned by WsCreateServiceHost and the referenced Service Host value may not be NULL.
Return value
This function does not return a value.
Security
Freeing a service host when it is not in a state where it can be freed will cause an access violation.
Requirements
|
Minimum supported client | Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|