====== 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 ==== var pnIcon = Application.RegisterImageResource(hResourceInstance, nResourceID, sResourceType); ==== Visual Basic Script ==== pnIcon = Application.RegisterImageResource hResourceInstance, nResourceID, sResourceType ==== C++ ==== long nIcon; HRESULT hr = Application.RegisterImageResource(hResourceInstance, nResourceID, sResourceType, &nIcon); ===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~