Provider::SetCreationClassName method

[The Provider class is part of the WMI Provider Framework, which is no longer available for use as of Windows Vista. Instead, see Using WMI for the preferred ways to write a WMI COM provider or a WMI provider that uses the .NET Framework System.Management namespaces.]

The SetCreationClassName method sets the CreationClassName string property, if any, of the given instance to the name of this provider.

Syntax


bool SetCreationClassName(
  CInstance *pInstance
);

Parameters

pInstance

Pointer to the affected instance.

Return value

Returns TRUE if the operation was successful and FALSE if it was unsuccessful.

Remarks

The SetCreationClassName method sets the value of the CreateClassName property to the name of the current class. Not all classes have a CreationClassName property.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Provider.h (include FwCommon.h)

Library

Framedyn.lib

DLL

Framedyn.dll

 

 

Show:
© 2014 Microsoft