InstallPerfDll function

Installs performance counter strings, as defined in an input .ini file, into the system registry.

Note  Microsoft recommends that developers use LoadPerfCounterTextStrings instead of InstallPerfDll. LoadPerfCounterTextStrings calls InstallPerfDll internally.
 

Syntax


LOADPERF_FUNCTION InstallPerfDll(
  _In_ LPCSTR    szComputerName,
  _In_ LPCSTR    szIniFile,
  _In_ ULONG_PTR dwFlags
);

Parameters

szComputerName [in]

The name of the system. This should be NULL because this function cannot be used to install remotely.

szIniFile [in]

The name of the initialization file that contains definitions to add to the registry.

dwFlags [in]

This parameter can be LOADPERF_FLAGS_DISPLAY_USER_MSGS ((ULONG_PTR) 8).

Return value

If the function is successful, it returns TRUE and posts additional information in an application event log. Otherwise, it returns an error code that represents the condition that caused the failure.

Remarks

This function has no associated import library; you must call it using the LoadLibrary and GetProcAddress functions.

Requirements

Header

LoadPerf.h

DLL

Loadperf.dll

See also

LoadPerfCounterTextStrings

 

 

Show: