共用方式為


SetStringPropertyA method

Sets a specified property.

Syntax

HRESULT retVal = object.SetStringPropertyA(pszName, pszVal);

Parameters

  • pszName [in]
    Type: LPCSTR

    The property name.

  • pszVal [in]
    Type: LPCSTR

    The property value.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.