--- myst: html_meta: description: "Resolve a packaged resource name to a resource ID and size." --- # `MC_knlGetResourceID` Resolve a packaged resource name to a resource ID and size. ## Prototype ```c M_Int32 MC_knlGetResourceID(M_Char *resourceName, M_Int32 *size); ``` ```{doxygenfunction} MC_knlGetResourceID :project: libwipi ``` ## Catalog identity | Field | Value | |---|---| | API level | `1.2.1` | | Family | [`MC_KNL`](../families/kernel.md) | | Ordinal | 142 | | Documentation | `reviewed` | | Implementation class | `table` | | ABI class | `word-tail` | ## Usage ### Parameters | Name | Meaning | |---|---| | `resourceName` | Resource path stored in the application package. | | `size` | Output location that receives the resource size. | ### Return value A resource ID or the provider-defined failure value. ### Ownership The returned ID refers to package-owned resource data. ## Profile availability API membership, device ABI, and install profile are independent. The rows below describe libwipi implementation evidence, not platform-wide WIPI requirements. | ABI profile | Install profile | Current evidence | |---|---|---| | `host-sim` | `none` | headers only | | `ktf-samsung` | `none` | linkable generated veneer | | `ktf-samsung` | `aram-ktf` | linkable generated veneer | | `ktf-samsung` | `sch-w8300-qpst-probe` | linkable generated veneer; named-device candidate | | `lgt-raptor` | `aram-raptor` | observed in the scoped emulator suite | | `lgt-raptor` | `aram-wie-raptor` | observed in the scoped emulator suite | | `skt-samsung-sch-w830-dl21` | `none` | linkable exact-device fixed-root veneer | ## Compiled examples - [Memory and Resource](../../../examples/memory-resource.md) ## Evidence boundary Samsung/KTF selector confidence: `confirmed`. Catalog evidence: `anycall_magichole:analysis/decompiled/wipi_mc_knl_spec_adapter.c:1238`.