18 lines
878 B
Matlab
18 lines
878 B
Matlab
function [retCode, confirmationCode, extErr] = dcdoupdatecodefromfile(libName, filename)
|
|
%DCDOUPDATECODEFROMFILE Update a dongle attached to this computer using a
|
|
%strongly encrypted update code.
|
|
% [RETCODE,CONFIRMATIONCODE,EXTERR] =
|
|
% DCDOUPDATECODEFROMFILE(LIBNAME,FILENAME) calls the API via the external
|
|
% library LIBNAME. FILENAME is a file containing the update code to be
|
|
% applied. RETCODE is the return code of the API call. If the update
|
|
% succeeded, CONFIRMATIONCODE contains the update's confirmation code. If
|
|
% the update failed, EXTERR contains an additional error code that
|
|
% provides more information.
|
|
|
|
% Copyright Microcosm Ltd. DO NOT MODIFY THIS FILE.
|
|
|
|
confirmationCode = int32(0);
|
|
extErr = int32(0);
|
|
[retCode, filename, confirmationCode, extErr] = calllib(libName, 'DCDoUpdateCodeFromFile', filename, confirmationCode, extErr);
|
|
end
|