GetRunningProcessForSite

Returns the process ID of the worker process when the parameters of this function match the parameters for the current user specified by the ConstructCommandLine function.

    HRESULT
    GetRunningProcessForSite( 
        [in] BSTR    bstrSite, 
        [in] BSTR    bstrApplication, 
        [in] BSTR    bstrApplicationPool, 
        [in] BSTR    bstrConfigPath, 
        [out, retval] DWORD * pdwPid
    );

Parameters

  • [in] bstrSite

    The name of the site.

  • [in] bstrApplication

    The name of the application.

  • [in] bstrApplicationPool

    The name of the application pool.

  • [in] bstrConfigPath

    The path to the configuration files.

  • [out, retval] * pdwPid

    The process ID of the worker process.

Return Value

HRESULT

See Also

Reference

ConstructCommandLine

StopProcess