Export (0) Print
Expand All

IOpcFactory::CreatePackage method

Creates a package object that represents an empty package.

Syntax


HRESULT CreatePackage(
  [out, retval]  IOpcPackage **package
);

Parameters

package [out, retval]

A pointer to the IOpcPackage interface of the package object that represents an empty package.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_NOTIMPL

This method is not implemented for this version of Windows.

 

Remarks

Support on Previous Versions of Windows

This method is not supported on versions of Windows prior to Windows 7. For more information, see Getting Started with the Packaging API, and Platform Update for Windows Vista.

Thread Safety

Packaging objects are not thread-safe.

For more information, see the Getting Started with the Packaging API.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Msopc.h

IDL

Msopc.idl

See also

IOpcFactory
Overviews
Packages Overview
Getting Started with the Packaging API
Packaging API Programming Guide
Platform Update for Windows Vista
Reference
Music Bundle Sample
Packaging Errors
Packaging API Reference
Packaging API Samples

 

 

Community Additions

ADD
Show:
© 2014 Microsoft