Export (0) Print
Expand All

IAppxBundleManifestPackageInfo::GetFileName method

Retrieves the file-name attribute of the package.

Syntax


HRESULT GetFileName(
  [out, retval]  LPWSTR *fileName
);

Parameters

fileName [out, retval]

Type: LPWSTR*

A string that contains the file name of the package.

Return value

Type: HRESULT

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

Remarks

You can pass the package file name that GetFileName outputs to the IAppxBundleReader::GetPayloadPackage method to access the package’s contents.

When you're done using the file name, free the memory allocated for fileName by using the CoTaskMemFree function.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxBundleManifestPackageInfo is defined as 54CD06C1-268F-40BB-8ED2-757A9EBAEC8D

See also

IAppxBundleManifestPackageInfo

 

 

Show:
© 2014 Microsoft