Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SLGatherMigrationBlob

SLGatherMigrationBlob function

Gathers licensing information for the provided file handle. This licensing information can later be applied or deposited using the SLDepositMigrationBlob function.

Syntax


HRESULT WINAPI SLGatherMigrationBlob(
  _In_     BOOL    bMigratableOnly,
  _In_opt_ LPCWSTR pwszEncryptorUri,
  _In_     HANDLE  hFile
);

Parameters

bMigratableOnly [in]

Type: BOOL

TRUE if only data that can be migrated should be gathered; FALSE otherwise.

pwszEncryptorUri [in, optional]

Type: LPCWSTR

The URI of the encrypting session key used to encrypt any sensitive data in the output BLOB. Only valid values are NULL and SL_DEFAULT_MIGRATION_ENCRYPTOR_URI, which both refer to the same key.

hFile [in]

Type: HANDLE

The handle to the file where the licensing state BLOB should be written.

Return value

Type: HRESULT WINAPI

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

Return code/valueDescription
E_INVALIDARG
0x80070057

One or more arguments are not valid.

E_ACCESSDENIED
0x80070005

Access denied (API requires admin privileges).

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Slpublic.h

Library

Slc.lib

DLL

Slc.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft