Replaces the existing Solution Header on the file indicated by FileToUpdate with the Solution Header provided in NewHeader. Opens the file for exclusive access and requires both read and write access to the file.
void
FesfUtil2UpdateHeaderExclusive(std::wstring_view FileToUpdate,
const FESF_UTIL2_SOLUTION_HEADER &NewHeader);
DWORD
FesfUtil2UpdateHeaderExclusive_C(
[in] LPCWSTR FileToUpdate,
[inout] PVOID HeaderBuffer,
[in] DWORD HeaderLength);
FileToUpdate
Fully qualified path of file to operate on.
NewHeader
Header to be substituted for the existing header.
Throws an FEU2Exception if an error is encountered.
Requires the caller to have SeRestorePrivilege. If the privilege is not already activated, it will be activated by the function and deactivated before return.
IFesfDs:: UpdateHeader