GetPadResourceFileList

Declaration

Delphi

function GetPadResourceFileList(WParam:DWORD): PAnisChar; register;

C/C++

SOPAD_API char* SOPAD_GetPadResourceFileList( int WParam);

ActiveX

HRESULT _stdcall GetPadResourceFileList([in, out] BSTR* resourceFileList, [out, retval] long* Result);

Description

GetPadResourceFileList returns an XML with information about the resources files from the device. Most of this resources are looked and can´t be changed as they are required by the firmware. The resource information include the name of the files and the size of the files. 

Arguments

WParam

This Parameter is a place holder and has no functionality right now.

Return value

Pointer to the memory block where the XML should be stored into. (DeviceResourceListXMLSchema.xsd)

Otherwise the function returns the appropriate error code. You can get extended error code with the help of GetSOPadError call.

See also

DownloadPadResourceFileByName

GetPadResourceFileInfoByName

GetPadResourceFileList

PromoImageOptionsDoAction

PromoImageSetOptions

RemovePadResourceFileByName

RenamePadResourceFileName

Sample

C#
//  Reading of the filelist and show them in a DataGridView
 
string fileListXML = "";
SigDev.GetPadResourceFileList(ref fileListXML);

dataGridView1.Columns[0].Name = "Filename";
dataGridView1.Columns[1].Name = "Size";

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(fileListXML);
foreach (XmlNode xmlNode in xmlDoc.DocumentElement.ChildNodes)
{
	DataGridViewRow row = (DataGridViewRow)dataGridView1.Rows[0].Clone();
	row.Cells[0].Value = xmlNode.Attributes["name"].Value;
	row.Cells[1].Value = xmlNode.Attributes["size"].Value;
	dataGridView1.Rows.Add(row);
}