<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Icon from exe in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484909#M28014</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;Thanks for the quick reply. I don't really understand the usage of the first parameter in this DrawIcon function (handle to device context). How can I get the value of this parameter form my picture control?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2007 08:28:14 GMT</pubDate>
    <dc:creator>Wim S</dc:creator>
    <dc:date>2007-03-01T08:28:14Z</dc:date>
    <item>
      <title>Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/348406#M22321</link>
      <description>I need to be able to display the icon bitmaps embedded in exe files on a&lt;BR /&gt;
panel of a CVI application. I am using LabWindows CVI 8.0 base verson.&lt;BR /&gt;
&lt;BR /&gt;
Can someone help me understand how to do this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.......&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Apr 2006 19:10:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/348406#M22321</guid>
      <dc:creator>mevinger</dc:creator>
      <dc:date>2006-04-05T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/351952#M22491</link>
      <description>Hello Michael,&lt;BR /&gt;
&lt;BR /&gt;
So CVI doesn't provide a built-in function to allow you extract an
image from a DLL or EXE.&amp;nbsp; Instead, you will have to use the &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/icons/iconreference/iconfunctions/extracticon.asp" target="_blank"&gt;ExtractIcon(Ex)&lt;/A&gt; and &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/icons/iconreference/iconfunctions/drawicon.asp" target="_blank"&gt;DrawIcon&lt;/A&gt; functions available in CVI Full Development System and the Windows SDK.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:57:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/351952#M22491</guid>
      <dc:creator>Wendy L</dc:creator>
      <dc:date>2006-04-13T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/352204#M22499</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Michael,&lt;BR /&gt;&lt;BR /&gt;You can also &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=484269E2-3B89-47E3-8EB7-1F2BE6D7123A&amp;amp;displaylang=en" target="_blank"&gt;download the Windows Platform SDK&lt;/A&gt; directly from Microsoft since you do not have the FDS version of CVI.&lt;BR /&gt;&lt;BR /&gt;Mert A.&lt;BR /&gt;National Instruments&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Apr 2006 04:45:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/352204#M22499</guid>
      <dc:creator>Mert_A.</dc:creator>
      <dc:date>2006-04-14T04:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/483755#M27971</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am also interested in getting the icons from a DLL or EXE file. I have used the ExtractIcon function successfully to get a handle to the icons (HICON). Unfortunately I don't know how to handle HICON variables. Is there any way to turn them into a CVI bitmap, that I can draw to a picture control, canvas or table cell?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wim&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2007 15:07:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/483755#M27971</guid>
      <dc:creator>Wim S</dc:creator>
      <dc:date>2007-02-27T15:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484742#M28004</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;Hi Wim,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The DrawIcon function, mentioned above, will allow you to position your HICON.&amp;nbsp; Otherwise, you would have to use a Windows SDK function to convert from HICON to bitmap - there is no CVI built-in function.&amp;nbsp; The available CVI functions are in Library &amp;gt;&amp;gt; User Interface Library &amp;gt;&amp;gt; Bitmaps.&amp;nbsp; I did not find any Windows SDK functions available to convert an HICON to a bitmap.&amp;nbsp; However, I did see a .NET function &lt;A href="http://msdn2.microsoft.com/en-us/library/system.drawing.bitmap.fromhicon.aspx" target="_blank"&gt;Bitmap.FromHicon Method&lt;/A&gt;.&amp;nbsp; This method cannot be used directly in CVI, though you could use it for a&amp;nbsp;Measurement Studio project.&amp;nbsp; &lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Feb 2007 22:54:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484742#M28004</guid>
      <dc:creator>AEDavid</dc:creator>
      <dc:date>2007-02-28T22:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484909#M28014</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi David,&lt;/P&gt;
&lt;P&gt;Thanks for the quick reply. I don't really understand the usage of the first parameter in this DrawIcon function (handle to device context). How can I get the value of this parameter form my picture control?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2007 08:28:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484909#M28014</guid>
      <dc:creator>Wim S</dc:creator>
      <dc:date>2007-03-01T08:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484934#M28016</link>
      <description>&lt;DIV&gt;You can obtain a system handle from a top level CVI panel with:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int han;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetPanelAttribute (panelHandle, ATTR_SYSTEM_WINDOW_HANDLE, &amp;amp;han);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;then you can obtain the Windows DC for the panel by:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HDC panDC;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; panDC = GetDC ((HWND) han);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;which will allow you to use the DrawIcon function, or indeed many other SDK drawing functions. Note that the offsets to the drawing position are with respect to the &lt;EM&gt;panel&lt;/EM&gt; top left corner - you can easily aim the target of your drawing to any part of your panel or control by using suitable offset values.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;JR&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Mar 2007 09:30:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/484934#M28016</guid>
      <dc:creator>jr_2005</dc:creator>
      <dc:date>2007-03-01T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485385#M28039</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I'm sorry but I can't get this thing working. I use the DrawIcon function, but nothing appears on my panel. Can someone see what I am doing wrong? I attached my project to this message.&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;Wim&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2007 21:52:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485385#M28039</guid>
      <dc:creator>Wim S</dc:creator>
      <dc:date>2007-03-01T21:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485406#M28040</link>
      <description>The reason you cannot see the result is because of how the CVI panel gets drawn. You are only calling draw icon once, and you are just drawing directly to the screen. This means that the next time the CVI panel redraws, whatever you have drawn will be "covered up" by the new draw. The way to handle this is to redraw whatever you want every time the panel window recieves a WM_PAINT message. You can do this by using InstallWinMsgCallback. I made some quick and dirty modifications to the example you posted that should give you an idea how this is done in CVI. There are some caveats to doing this (CVI isn't really expecting you to be drawing onto the panel) but it does work.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-alex&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Mar 2007 22:23:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485406#M28040</guid>
      <dc:creator>Alex D</dc:creator>
      <dc:date>2007-03-01T22:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485603#M28055</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Thanks Alex. This seems to work fine. What I would like to do now is save each extracted icon to a PNG file, keeping the icon's transparency. I adjusted my code, trying to get al icon information&amp;nbsp;to create a CVI bitmap. If this would work, then I could simply use the SaveBitmapToPNGFile function. I succeed in getting a handle to the color bitmap and the mask bitmap, using the GetIconInfo function. But then, when trying to get the information from these two bitmaps, the pointer to the data (bmBits member of the&amp;nbsp;BITMAP structure)&amp;nbsp;is always NULL&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt; . I already tried a lot of work arounds, but I'm afraid I am stuck here...</description>
      <pubDate>Fri, 02 Mar 2007 09:54:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485603#M28055</guid>
      <dc:creator>Wim S</dc:creator>
      <dc:date>2007-03-02T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485607#M28057</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;I thought it might be usefull to attach my code again...</description>
      <pubDate>Fri, 02 Mar 2007 09:56:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485607#M28057</guid>
      <dc:creator>Wim S</dc:creator>
      <dc:date>2007-03-02T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485611#M28058</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;The example code &lt;A href="http://forums.ni.com/ni/board/message?board.id=180&amp;amp;message.id=11439&amp;amp;query.id=41998#M11439" target="_blank"&gt;here&lt;/A&gt;&amp;nbsp;manages to draw on a CVI panel without needing to worry about Windows messages. Is this because it draws to an area of the panel occupied by a&amp;nbsp;Canvas control? I have also produced code which draws directly onto a Decoration control with similar ease.&lt;/P&gt;
&lt;P&gt;JR&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2007 10:11:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485611#M28058</guid>
      <dc:creator>jr_2005</dc:creator>
      <dc:date>2007-03-02T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485916#M28076</link>
      <description>Wim:&lt;BR /&gt;&lt;BR /&gt;You should be able to get the bitmap data by calling GetDIBits, similar to the following:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;GetDIBits (hdc, iconInfo.hbmColor, 0, bm.bmHeight, bitmapData, &amp;amp;bitmapInfo, DIB_RGB_COLORS);&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;You basically setup the bitmapInfo structure indicating how you would like the data, and provide the bitmapData buffer, and it will fill it out for you.&lt;BR /&gt;&lt;BR /&gt;JR:&lt;BR /&gt;&lt;BR /&gt;As far as I can tell, the program in the link suffers from the same problems described above. If you force an invalidation by moving the child panel or moving the panel offscreen and back, the draws will be lost. The workaround discussed in this post should work there as well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-alex&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Mar 2007 20:05:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/485916#M28076</guid>
      <dc:creator>Alex D</dc:creator>
      <dc:date>2007-03-02T20:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/486366#M28096</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks a lot Alex, I will try this on my example as soon as I find some spare time &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt; . I will let you know about the results.&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Mar 2007 10:05:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/486366#M28096</guid>
      <dc:creator>Wim S</dc:creator>
      <dc:date>2007-03-05T10:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/486407#M28099</link>
      <description>&lt;P&gt;Alex,&lt;/P&gt;
&lt;P&gt;There might have been a small misunderstanding on my part here.&amp;nbsp;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt; I thought you implied that the area drawn via the DC would be &lt;EM&gt;over-written&lt;/EM&gt; by CVI and would thus &lt;EM&gt;never&lt;/EM&gt; be visible, unless the message based structure for drawing that you suggested was implemented. I find this not to be the case, although of course the area written by the DC is not &lt;EM&gt;automatically&lt;/EM&gt; re-drawn after the panel has been obscured. In my applications, this is not important as the area is constantly being re-written/updated anyway&amp;nbsp;via&amp;nbsp;a CVI Timer mechanism.&lt;/P&gt;
&lt;P&gt;JR&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2007 11:58:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/486407#M28099</guid>
      <dc:creator>jr_2005</dc:creator>
      <dc:date>2007-03-05T11:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Icon from exe</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/2278746#M60610</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I realise this thread is ancient, but as I recently had this problem, too, and all answers thus far were more hacks than anything else, here's a clean solution. The following function extracts the icon of a file and converts it into a CVI bitmap that can be used everywhere without any paint hacks. Enjoy&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;int GetBitmapFromFileIcon(const char *filename)
{
    int             result = 0;
    SHFILEINFO      fileInfo;
    ICONINFO        iconInfo;
    HICON           hIcon = 0;
    HDC             hDC = 0;
    BITMAPINFO      bmi;
    int             height, width, bmpID;
    unsigned char   *colours = 0;
    unsigned char   *mask = 0;
    unsigned char   *alpha = 0;
    unsigned int    lineLenWin, lineLenCVI;
    unsigned int    x, y, index, indexCVI;
    
    // Request file icon from shell
    memset(&amp;amp;fileInfo, 0, sizeof(fileInfo));
    if (!SHGetFileInfo(filename, 0, &amp;amp;fileInfo, sizeof(fileInfo), SHGFI_ICON | SHGFI_SHELLICONSIZE | SHGFI_SMALLICON)) goto Exit;
    hIcon = fileInfo.hIcon;

    // We need some DC later
    hDC = GetDC(NULL);
    if (!hDC) goto Exit;

    // Get icon components and extract properties
    if (!GetIconInfo(hIcon, &amp;amp;iconInfo)) goto Exit;

    memset(&amp;amp;bmi, 0, sizeof(bmi));
    bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
    if (!GetDIBits(hDC, iconInfo.hbmColor, 0, 0, 0, &amp;amp;bmi, DIB_RGB_COLORS)) goto Exit;
    height = bmi.bmiHeader.biHeight;
    width = bmi.bmiHeader.biWidth;

    // Extract colour values
    colours = malloc(height * width * 4);
    if (!colours) goto Exit;
        
    memset(&amp;amp;bmi, 0, sizeof(bmi));
    bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
    bmi.bmiHeader.biWidth = width;
    bmi.bmiHeader.biHeight = -height;            // "-" for "top down"
    bmi.bmiHeader.biPlanes = 1;
    bmi.bmiHeader.biBitCount = 32;
    bmi.bmiHeader.biCompression = BI_RGB;
    if (!GetDIBits(hDC, iconInfo.hbmColor, 0, height, colours, &amp;amp;bmi, DIB_RGB_COLORS)) goto Exit;

    // Check for alpha channel
    for (index = 3; index &amp;lt; bmi.bmiHeader.biSizeImage; index += 4) {
        if (colours[index]) break;
    }
    
    if (index &amp;lt; bmi.bmiHeader.biSizeImage) {
        // Icon with alpha channel, extract it
        alpha = malloc(height * width);
        if (!alpha) goto Exit;
        
        indexCVI = 0;
        for (index = 3; index &amp;lt; bmi.bmiHeader.biSizeImage; index += 4) {
            alpha[indexCVI++] = colours[index];
        }
    } else {
        // Icon without alpha channel, extract mask
        mask = malloc(height * ((width + 31) &amp;amp; ~31) / 8);
        if (!mask) goto Exit;
        
        bmi.bmiHeader.biBitCount = 1;
        if (!GetDIBits(hDC, iconInfo.hbmMask, 0, height, mask, &amp;amp;bmi, DIB_RGB_COLORS)) goto Exit;

        // Mask is inverted to what CVI expects. Also, it uses different padding (32-bit vs. 16-bit)
        lineLenWin = ((width + 31) &amp;amp; ~31) / 8;
        lineLenCVI = ((width + 15) &amp;amp; ~15) / 8;
    
        index = 0; indexCVI = 0;
        for (y = 0; y &amp;lt; height; y++) {
            for (x = 0; x &amp;lt; lineLenCVI; x++) {
                mask[indexCVI + x] = mask[index + x] ^ 0xff;
            }
            index += lineLenWin;
            indexCVI += lineLenCVI;
        }
    }
    
    if (NewBitmapEx(-1, 32, width, height, 0, colours, mask, alpha, &amp;amp;bmpID)) goto Exit;
    
    result = bmpID;
Exit:
    if (colours)
        free(colours);
    if (alpha)
        free(alpha);
    if (mask)
        free(mask);
    if (hDC)
        ReleaseDC(NULL, hDC);
    if (hIcon)
        DestroyIcon(hIcon);
    return result;
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:44:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Get-Icon-from-exe/m-p/2278746#M60610</guid>
      <dc:creator>MarcelK</dc:creator>
      <dc:date>2013-01-14T14:44:59Z</dc:date>
    </item>
  </channel>
</rss>

