### Function CreateInstance - Create a new instance of the specified IID

## SYNOPSIS

    import win32com.server.policy

    def CreateInstance(clsid, reqIID)

## DESCRIPTION

The COM framework always calls this function to create a new instance for the specified CLSID. This function looks up the registry for the name of a policy, creates the policy, and asks the policy to create the specified object by calling the _CreateInstance_ method.

Exactly how the policy creates the instance is up to the policy. See the specific policy documentation for more details.

## SEE ALSO

win32com.server.policy

Copyright © Greg Stein and Mark Hammond
All Rights Reserved
Comments to author: dev@null
Generated: Sun Apr 20 1997