FIX: DllMain is not called when a project is loaded through LoadLibrary function in Windows Embedded Compact 2013

Introduction
This article describes an issue in which the DllMain DLL entry is not called when a project is loaded through the LoadLibrary function in Windows Embedded Compact 2013. An update is available to resolve this issue. Before you install this update, all previously issued updates for this product must be installed.
Symptoms
You create a Virtual CEPC x86 project or some other reference device project by using the software development kit (SDK). You put the project on a Windows Embedded Compact 2013 device and then create a DLL project. When the DLL project is loaded through the LoadLibrary function, the DllMain DLL entry is not called as expected. This behavior occurs because the file is loaded as a data file instead of as an executable file.

Note This issue does not occur if the DLL project is built as an operating system subproject.
Resolution

Software update information

Windows Embedded Compact 2013 Monthly Update (February 2016) is now available from Microsoft. To download this Windows Embedded Compact 2013 monthly update, go to Microsoft OEM Online or MyOEM

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:

  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Files that are included in this update package


File nameFile sizeDateTimePath
Loader.c199,64619-Feb-201610:07Private\Winceos\Coreos\Nk\Kernel
Nkmain.lib3,671,97619-Feb-201610:16Public\Common\Oak\Lib\X86\Checked
Nkprmain.lib3,719,31219-Feb-201610:16Public\Common\Oak\Lib\X86\Checked
Nkmain.lib2,586,48619-Feb-201610:16Public\Common\Oak\Lib\X86\Retail
Nkprmain.lib2,631,64619-Feb-201610:16Public\Common\Oak\Lib\X86\Retail
Nkmain.lib3,290,39019-Feb-201610:15Public\Common\Oak\Lib\X86\Debug
Nkprmain.lib3,335,48419-Feb-201610:15Public\Common\Oak\Lib\X86\Debug
Nkmain.lib3,561,53819-Feb-201610:16Public\Common\Oak\Lib\Armv7\Checked
Nkprmain.lib3,607,47819-Feb-201610:16Public\Common\Oak\Lib\Armv7\Checked
Nkmain.lib2,406,06219-Feb-201610:16Public\Common\Oak\Lib\Armv7\Retail
Nkprmain.lib2,458,15419-Feb-201610:16Public\Common\Oak\Lib\Armv7\Retail
Nkmain.lib3,993,21619-Feb-201610:15Public\Common\Oak\Lib\Armv7\Debug
Nkprmain.lib4,047,39019-Feb-201610:15Public\Common\Oak\Lib\Armv7\Debug
References
Learn about the terminology that Microsoft uses to describe software updates.
Properties

Article ID: 3144208 - Last Review: 03/15/2016 16:31:00 - Revision: 1.0

Windows Embedded Compact 2013

  • kbsurveynew kbexpertiseadvanced atdownload kbfix KB3144208
Feedback