Click to Rate and Give Feedback
MSDN
MSDN Library
Packaging
 IOpcFactory::CreatePackageRootUri M...
IOpcFactory::CreatePackageRootUri Method

Creates an OPC URI object that represents the root of a package.

Syntax

HRESULT CreatePackageRootUri(
  [out, retval]  IOpcUri **rootUri
);

Parameters

rootUri [out]

A pointer to the IOpcUri interface of the OPC URI object that represents the URI of the root of a 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_POINTER

The rootUri parameter is NULL.

 

Remarks

The URI of the root of a package is always represented as "/".

Support on Previous Windows Versions

The behavior and performance of this method is the same on all supported Windows versions. 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 clientWindows 7, Windows Vista with SP2 and Platform Update for Windows Vista
Minimum supported serverWindows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008
HeaderMsopc.h
IDLMsopc.idl

See Also

IOpcFactory
Overviews
Getting Started with the Packaging API
Packaging API Programming Guide
Platform Update for Windows Vista

 

Reference
Packaging Errors
Packaging API Reference
Packaging API Samples

Send comments about this topic to Microsoft

Build date: 11/16/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker