Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== RegisterImageResource ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Register Icon from Application binary resource (can be bitmap, PNG or Icon of any size) ===== Parameters ===== * [[scripting:api:data-type:ULONG|ULONG]] **hResourceInstance** * [[scripting:api:data-type:UINT|UINT]] **nResourceID** * [[scripting:api:data-type:BSTR|BSTR]] **sResourceType** = %%""%% (optional) ==== Return Value ==== * [[scripting:api:data-type:long|long]] **pnIcon** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pnIcon = Application.RegisterImageResource(hResourceInstance, nResourceID, sResourceType); </code>==== Visual Basic Script ==== <code vb> pnIcon = Application.RegisterImageResource hResourceInstance, nResourceID, sResourceType </code>==== C++ ==== <code cpp> long nIcon; HRESULT hr = Application.RegisterImageResource(hResourceInstance, nResourceID, sResourceType, &nIcon); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~