ResUtilRemoveResourceServiceEnvironment function (resapi.h)

Removes the environment data from a service. This function must be called from a resource DLL. The PRESUTIL_REMOVE_RESOURCE_SERVICE_ENVIRONMENT type defines a pointer to this function.

Syntax

DWORD ResUtilRemoveResourceServiceEnvironment(
  [in] LPCWSTR            pszServiceName,
  [in] PLOG_EVENT_ROUTINE pfnLogEvent,
  [in] RESOURCE_HANDLE    hResourceHandle
);

Parameters

[in] pszServiceName

Pointer to a null-terminated Unicode string that contains the name of the service.

[in] pfnLogEvent

Pointer to the LogEvent entry point function of the resource DLL that manages the service.

[in] hResourceHandle

Resource handle that the LogEvent entry point function requires. Use the handle passed to the DLL in the Open entry point function.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll

See also

ResUtilGetEnvironmentWithNetName