Export (0) Print
Expand All

ResUtilRemoveResourceServiceEnvironment function

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 WINAPI ResUtilRemoveResourceServiceEnvironment(
  _In_  LPCWSTR pszServiceName,
  _In_  PLOG_EVENT_ROUTINE pfnLogEvent,
  _In_  RESOURCE_HANDLE hResourceHandle
);

typedef DWORD (WINAPI *PRESUTIL_REMOVE_RESOURCE_SERVICE_ENVIRONMENT)(
    _In_  LPCWSTR pszServiceName,
    _In_  PLOG_EVENT_ROUTINE pfnLogEvent,
    _In_  RESOURCE_HANDLE hResourceHandle
);

Parameters

pszServiceName [in]

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

pfnLogEvent [in]

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

hResourceHandle [in]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 Enterprise, Windows Server 2003 Datacenter

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

See also

ResUtilGetEnvironmentWithNetName

 

 

Show:
© 2014 Microsoft