GetPadResourceFileInfoByName
Declaration
Delphi (DLL)
function GetPadResourceFileInfoByName(ResourceName: ShortString;var ResourceId:integer; var ResourceSize: integer): integer; register;
C/C++ (DLL)
SOPAD_API int SOPAD_GetPadResourceFileInfoByName(char *ResourceName, int* ResourceID, int* ResourceSize);
ActiveX
HRESULT _stdcall GetPadResourceFileInfoByName([in] BSTR ResourceName, [in, out] BSTR* ressourceID, , [in, out] BSTR* ressourceSize, [out, retval] long* Result);
Description
GetPadResourceFileInfoByName returns the size and id of a resource file from the signature pad
Arguments
ResourceName
Name of the resource file you want to store on the device e.g. "PromoScreen1.soi"
ressourceID
ID of resource file (not used yet)
ressourceSize
Size of the resource file
Return value
GetPadResourceFileInfoByName returns (SOPAD_ERROR_SUCCESS = 0) if it was possible to cache the settings.
Otherwise the function returns the appropriate error code. You can get extended error code with the help of GetSOPadError call.
Possible error codes are listed below: Driver error codes
See also
Sample
// remove the Promoscreen1 from the device  string ImageOrientation = ""; int ImageNumber = 1; int padResourceFileInfoByNameStatus = -1; int ressourceSize = 0; int ressourceID = 0;  // For 10 Ince Pad the PromoScreen needs the Orientation Info if (radioButton_Landscape.Checked && devStatus == deviceStatus.tenInchPad) ImageOrientation = "L"; else if (radioButton_Portait.Checked && devStatus == deviceStatus.tenInchPad) ImageOrientation = "P";  padResourceFileInfoByNameStatus = SigDev.GetPadResourceFileInfoByName("PromoScreen" + ImageNumber + ImageOrientation + ".soi", ref ressourceID, ref ressourceSize);