INetDiagHelper::Initialize method (ndhelper.h)
The Initialize method passes in attributes to the Helper Class Extension from the hypothesis. The helper class should store these parameters for use in the main diagnostics functions. This method must be called before any diagnostics function.
Syntax
HRESULT Initialize(
[in] ULONG celt,
HELPER_ATTRIBUTE [] rgAttributes
);
Parameters
[in] celt
A pointer to a count of elements in HELPER_ATTRIBUTE array.
rgAttributes
A reference to the HELPER_ATTRIBUTE array.
Return value
Return code | Description |
---|---|
|
The operation succeeded. |
|
There is not enough memory available to complete this operation. |
|
One or more parameters has not been provided correctly. |
|
The caller does not have sufficient privileges to perform the diagnosis or repair operation. |
|
The diagnosis or repair operation has been canceled. |
Helper Class Extensions may return HRESULTS that are specific to the failures encountered in the function.
Remarks
The Initialize method is required when building a Helper Class Extension.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | ndhelper.h |