Gets the license associated with a file.
HRESULT WINAPI IpcfGetSerializedLicenseFromFile( _In_ LPCWSTR wszInputFilePath, _Out_ PIPC_BUFFER *ppvLicense );
The path to the file from which to get the serialized license. The path must include the file name and, if one exists, the file name extension.
The path is limited to MAX_PATH characters. To extend this limit to 32,767 characters, prepend "\\?\" to the path. For more information, see Naming Files, Paths, and Namespaces.
A pointer to a variable that receives a pointer to a buffer that holds the license. The buffer is allocated by the File API and must be freed using IpcFreeMemory.
If the function succeeds, the return value is S_OK. If the function fails, it returns an HRESULT value that indicates the error.
For more information, see Error codes for a description of all RMS SDK 2.1 return values.
Possible values include, but are not limited to, those in the following list.
|Minimum supported client
||Windows Vista with SP2
|Minimum supported server
||Windows Server 2008