Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: The GetLastError function may not return an error code when an existing file is programmatically copied to a new file on a partition that has the encryption filter installed in Windows Embedded CE 6.0 R3


Symptoms

Consider the following scenario:
  • You run a Windows Embedded CE 6.0 R3-based image that contains the Storage Manager components on the target device.
  • You install the Encfilt.dll encryption filter on a partition that is full.
  • You take one of the following actions:
    • You run a managed application that calls the File.Copy method to copy an existing file to a new file on the partition.
    • You run a native application that calls the CopyFile function to copy an existing file to a new file on the partition.
  • You call the GetLastError function to return error information.

In this scenario, either the managed application or the native application does not return an error as expected. The managed application shows that the file copy is successful. In the native application, although the CopyFile function returns False, the result of the GetLastError function returns no error code.

↑ Back to the top


Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Monthly Update November 2011. In the "File information" section, the package file name contains the product version, the date, the Microsoft Knowledge Base article number, and the processor type. The package file name format is as follows: 
Product version-yymmdd-kbnnnnnn-processor type
For example, Wincepb60-110128-kb2492159-armv4i.msi is the ARMV4i Windows Embedded CE 6.0 Platform Builder fix that is documented in Knowledge Base article 2492159 and that is contained in the January 2011 monthly update.

To resolve this problem immediately, download this Windows Embedded CE 6.0 monthly update from the following Microsoft website.

Microsoft Download Center

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.

Installer files
File nameFile sizeDateTime
Wincepb60-111102-kb2627799-armv4i.msi1,536,00002-Nov-201120:39
Wincepb60-111102-kb2627799-mipsii.msi1,503,23202-Nov-201120:39
Wincepb60-111102-kb2627799-mipsii_fp.msi1,503,23202-Nov-201120:39
Wincepb60-111102-kb2627799-mipsiv.msi1,523,71202-Nov-201120:39
Wincepb60-111102-kb2627799-mipsiv_fp.msi1,523,71202-Nov-201120:39
Wincepb60-111102-kb2627799-sh4.msi1,425,40802-Nov-201120:39
Wincepb60-111102-kb2627799-x86.msi1,323,00802-Nov-201120:39
Files that are included in this update package
File nameFile sizeDateTimePath
Windows embedded ce 6.0_update_kb2627799.htm7,89802-Nov-201117:30111102_kb2627799
Apis.c36,63311-Oct-201117:18Private\Winceos\Coreos\Core\Dll
Coremain.lib715,97811-Oct-201117:13Public\Common\Oak\Lib\Armv4i\Debug
Encfilt.lib351,60811-Oct-201117:13Public\Common\Oak\Lib\Armv4i\Debug
Kcoremain.lib638,70811-Oct-201117:13Public\Common\Oak\Lib\Armv4i\Debug
Coremain.lib574,85411-Oct-201117:13Public\Common\Oak\Lib\Armv4i\Retail
Encfilt.lib229,42811-Oct-201117:13Public\Common\Oak\Lib\Armv4i\Retail
Kcoremain.lib517,32011-Oct-201117:13Public\Common\Oak\Lib\Armv4i\Retail
Coremain.lib677,72011-Oct-201117:14Public\Common\Oak\Lib\Mipsii\Debug
Encfilt.lib345,91011-Oct-201117:14Public\Common\Oak\Lib\Mipsii\Debug
Kcoremain.lib606,95411-Oct-201117:14Public\Common\Oak\Lib\Mipsii\Debug
Coremain.lib557,37611-Oct-201117:13Public\Common\Oak\Lib\Mipsii\Retail
Encfilt.lib236,24011-Oct-201117:14Public\Common\Oak\Lib\Mipsii\Retail
Kcoremain.lib507,38411-Oct-201117:13Public\Common\Oak\Lib\Mipsii\Retail
Coremain.lib677,99211-Oct-201117:14Public\Common\Oak\Lib\Mipsii_fp\Debug
Encfilt.lib345,95411-Oct-201117:15Public\Common\Oak\Lib\Mipsii_fp\Debug
Kcoremain.lib607,21411-Oct-201117:14Public\Common\Oak\Lib\Mipsii_fp\Debug
Coremain.lib557,64811-Oct-201117:14Public\Common\Oak\Lib\Mipsii_fp\Retail
Encfilt.lib236,27211-Oct-201117:14Public\Common\Oak\Lib\Mipsii_fp\Retail
Kcoremain.lib507,55011-Oct-201117:14Public\Common\Oak\Lib\Mipsii_fp\Retail
Coremain.lib687,21211-Oct-201117:15Public\Common\Oak\Lib\Mipsiv\Debug
Encfilt.lib353,07811-Oct-201117:15Public\Common\Oak\Lib\Mipsiv\Debug
Kcoremain.lib616,19211-Oct-201117:15Public\Common\Oak\Lib\Mipsiv\Debug
Coremain.lib570,08211-Oct-201117:15Public\Common\Oak\Lib\Mipsiv\Retail
Encfilt.lib243,10611-Oct-201117:15Public\Common\Oak\Lib\Mipsiv\Retail
Kcoremain.lib519,56411-Oct-201117:15Public\Common\Oak\Lib\Mipsiv\Retail
Coremain.lib687,48411-Oct-201117:16Public\Common\Oak\Lib\Mipsiv_fp\Debug
Encfilt.lib353,12211-Oct-201117:16Public\Common\Oak\Lib\Mipsiv_fp\Debug
Kcoremain.lib616,45211-Oct-201117:16Public\Common\Oak\Lib\Mipsiv_fp\Debug
Coremain.lib570,35411-Oct-201117:16Public\Common\Oak\Lib\Mipsiv_fp\Retail
Encfilt.lib243,13811-Oct-201117:16Public\Common\Oak\Lib\Mipsiv_fp\Retail
Kcoremain.lib519,73011-Oct-201117:16Public\Common\Oak\Lib\Mipsiv_fp\Retail
Coremain.lib581,95811-Oct-201117:17Public\Common\Oak\Lib\Sh4\Debug
Encfilt.lib297,28411-Oct-201117:17Public\Common\Oak\Lib\Sh4\Debug
Kcoremain.lib520,69411-Oct-201117:17Public\Common\Oak\Lib\Sh4\Debug
Coremain.lib498,30811-Oct-201117:17Public\Common\Oak\Lib\Sh4\Retail
Encfilt.lib210,63011-Oct-201117:17Public\Common\Oak\Lib\Sh4\Retail
Kcoremain.lib453,07411-Oct-201117:17Public\Common\Oak\Lib\Sh4\Retail
Coremain.lib580,55811-Oct-201117:12Public\Common\Oak\Lib\X86\Debug
Encfilt.lib305,15011-Oct-201117:12Public\Common\Oak\Lib\X86\Debug
Kcoremain.lib523,96611-Oct-201117:12Public\Common\Oak\Lib\X86\Debug
Coremain.lib500,36611-Oct-201117:12Public\Common\Oak\Lib\X86\Retail
Encfilt.lib200,68211-Oct-201117:12Public\Common\Oak\Lib\X86\Retail
Kcoremain.lib455,62011-Oct-201117:12Public\Common\Oak\Lib\X86\Retail

↑ Back to the top


References

For more information about file system encryption that is implemented as a file system filter, visit the following Microsoft Developer Network (MSDN) website:For more information about the CopyFile function, visit the following MSDN website:For more information about the GetLastError function, visit the following MSDN website:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: kbnotautohotfix, kbfix, kbqfe, kbpubtypekc, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 2627799
Revision : 1
Created on : 1/7/2017
Published on : 12/13/2011
Exists online : False
Views : 77