# How can I assign a icon's file path to an unit variable in the InitParam struct?

**URL:** <https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844>\
**Category:** Windows\
**Created:** [December 28, 2017, 6:09am UTC](https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844 "2017-12-28T06:09:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xu\_wu](https://avatars.discourse-cdn.com/v4/letter/x/dfb087/32.png) [@xu\_wu](https://devforum.zoom.us/u/xu_wu)\
**Post date:** [December 28, 2017, 6:09am UTC](https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844/1 "2017-12-28T06:09:37Z")

</div>

I want to change icons of windows during SDK initialization. But how can I assign a icon’s file path to an unit variable in the InitParam struct?

![](https://support.zoom.us/hc/user_images/5AKzv1eO9fhYjczI3zEjqw.png)

---

<div class="post-metadata">

**Author:** ![dats\_liao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dats_liao/32/464_2.png) [@dats\_liao](https://devforum.zoom.us/u/dats_liao)\
**Post date:** [December 28, 2017, 6:50am UTC](https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844/2 "2017-12-28T06:50:13Z")

</div>

hi

you need to add the new icon in the res file of your dll, and pass the resource id and module handle to us.

thanks

dats

---

<div class="post-metadata">

**Author:** ![xu\_wu](https://avatars.discourse-cdn.com/v4/letter/x/dfb087/32.png) [@xu\_wu](https://devforum.zoom.us/u/xu_wu)\
**Post date:** [December 28, 2017, 7:06am UTC](https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844/3 "2017-12-28T07:06:18Z")

</div>

Great! Thank you, dats. I’ll try as you said.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 26, 2021, 7:19pm UTC](https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844/4 "2021-08-26T19:19:59Z")

</div>

Marking as solved.

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 26, 2021, 7:20pm UTC](https://devforum.zoom.us/t/how-can-i-assign-a-icons-file-path-to-an-unit-variable-in-the-initparam-struct/844/5 "2021-08-26T19:20:01Z")

</div>

Closed on August 26, 2021, 7:20pm UTC


