Windows error 0x00000057, 87

Detailed Error Information

INVALID_PARAMETER[1]

MessageThe parameter is incorrect.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x80070057.

XNS_INTERNAL_ERROR[2]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0x57: XNS_INTERNAL_ERROR.

HRESULT analysis[3]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[3][1]
DescriptionThe default facility code.[3][1]
Error Code87 (0x0057)

Questions

8votes
2answers

Windows 7 contains duplicate, identical builtin print forms (Letter, Legal) but only one of the 2 successfully prints

I have a Windows 7 64-bit machine with a Lexmark E360dn printer. Whenever the user attempts to print anything, the printer defaults to "Letter" size, as expected. When the user clicks PRINT, the printer shows an error asking them to load "Custom Size 6", whatever that is. The problem is [...] read more
windows-7
printing
7votes
3answers

Combining RoboCopy with FtpUse

Our clients need to transfer specified files from their network to ours through FTP. The transfer must be invoked automatically whenever one of the specified files changes. For this purpose, RoboCopy is perfect. However, RoboCopy does not support transfer to FTP addresses. So, I would like to map our FTP [...] read more
windows
ftp
robocopy
7votes
6answers

How to copy a directory on Windows, preserving timestamps of all directories being copied

I want to copy a directory tree while preserving timestamps of any file and directory descendant that is being copied. The source directory is on a data DVD (ISO-9660 filesystem). I am copying to an NTFS partition. Copying with Windows Explorer, I see that all folders and files copied have [...] read more
windows
file-transfer
robocopy
xcopy
5votes
1answer

MSDN HMAC-SHA1 example not working

Creating an HMAC steps by using CryptoAPI found here: http://msdn.microsoft.com/en-us/library/Aa379863 * To compute an HMAC 1. Get a pointer to the Microsoft Cryptographic Service Provider (CSP) by calling CryptAcquireContext. 2. Create a handle to an HMAChash object by calling CryptCreateHash. Pass CALG_HMAC in the Algid parameter. Pass the handle of [...] read more
c++
cryptography
sha1
hmac
hmacsha1
4votes
4answers

File is too large for destination file system - Already NTFS

This is my first SuperUser post, so please bear with me if I make any mistakes, thanks. I have some large database files (4-7GB) that I need to transfer to an external hard drive (WD My Book, 6TB). However, when attempting to copy the files to the hard drive, I [...] read more
windows
external-hard-drive
ntfs
4votes
1answer

kernel debugger error when running my solution on window mixed reality portal

I've been doing some UWP development and when i run my application on mixed reality portal it throws the below error : CallContext:[\PublicAPIActivity] onecoreuap\windows\analog\input\mirage\stubdll\holographicspace.cpp(390)\Windows.Perception.Stub.dll!0F7C1A21: (caller: 03F18204) ReturnHr(2725) tid(2eac) 80070057 The parameter is incorrect. Exception thrown at 0x772D08B2 (KernelBase.dll) in MSIApp.exe: 0x40080201: WinRT originate error (parameters: 0x80070057, 0x00000057, 0x05AAEB64). analog\input\mirage\publicapi\holographicspace.cpp(340)\Windows.Mirage.dll!067CA971: (caller: [...] read more
c++
uwp
4votes
3answers

Win 64bit GetThreadContext returns zeroe'd out registers, or 0x57 errorcode

I'm working on a Windows 7 64 bit machine (I have admin privs). I'm using Python 2.7 (64-bit) with PyDev ctypes for Eclipse to try and read the values of registers in all threads associated with a particular PID (tried both PIDs of processes running in 64 and 32 bit [...] read more
python
windows
64-bit
pydev
threadcontext
3votes
2answers

Windows 10 Upgrade: Stops at 23% without error, Dism not mounting boot.wim WIM Image

I am attempting an OS Upgrade Windows 8.1 Pro -> Windows 10 Pro. The Problem The installer does not give a message apart from saying that it failed at roughly 23%, opening the setuperr.log, I get this at the end, the first 2 lines seem to point to the problem: [...] read more
windows-10
windows-8.1
windows-10-upgrade
dism
3votes
2answers

How to serialize a VARIANT or BSTR?

I am trying to figure out some COM marshalling features. Eventually, I want to persist a deeply nested variant array to file but I am trying first with a simple string. I realise these APIs are meant for remote procedure calls but I was hoping this serialization was also suitable [...] read more
c++
com
marshalling
2votes
1answer

Robocopy error 87 during copy and backup PDF files (to exFAT micro-sd card)

I am trying to set up mirroring with robocopy to backup directories to micro-sd cards, as: ROBOCOPY "C:\test" "E:\test" /MIR /COPY:DT /Z /W:5 This works fine for the most part except for PDF files for some reason, halting the process and returning the error: 2019/05/24 16:13:41 ERROR 87 (0x00000057) Changing [...] read more
windows
robocopy
2votes
0answers

The parameter is incorrect - Error installing.NET Framework 4.6 on Windows Server 2012

I'm trying to install the .NET 4.6 Framework on a Windows Server 2012 (not R2) VM, but I keep getting the error message "The parameter is incorrect" and a link to the log file. Here is the contents of my log file: OS Version = 6.2.9200, SP = 0.0, Platform [...] read more
windows-server-2012
.net-4.6
1vote
1answer

How to install .net framework 4.6.1 runtime on Windows Server 2012 R2

I spun up a aws EC2 instance Windows Server 2012 R2. It comes pre-loaded with .Net 4.5. But I'm running code that requires 4.6.1. I tried both the online and offline installers. I'm an admin. I'm selecting "run as administrator" on the installer(s). It extracts the package. The install progress [...] read more
windows-server-2012-r2
installation
.net
1vote
0answers

How to fix error 0x00000057 when installing a printer driver, no permission to write to DriverStore?

We have a customer with a PC where installing a particular local printer fails with error 87, "invalid parameter". Usually I'd blame the installation routine, but when looking at Process Monitor it seems like writing to c:\windows\system32\DriverStore fails. The printer to be installed in this case is the Amyuni PDF [...] read more
windows
installation
drivers
1vote
1answer

Enable "Audit Process Tracking" from CMD regardless of the system language

I want to edit the local security audit policy from the command line. From what I found out, there's auditpol.exe and I can set the policy using the "/set" parameter. This does indeed work, but there's one problem: I need specify the category and subcategory by a string that is [...] read more
windows
audit
local-security-policy
1vote
1answer

First audio CMSampleBuffer lost when reading mp4 file using AVAssetReader

I'm using AVAssetWriter to write audio CMSampleBuffer to an mp4 file, but when I later read that file using AVAssetReader, it seems to be missing the initial chunk of data. Here's the debug description of the first CMSampleBuffer passed to writer input append method (notice the priming duration attachement of [...] read more
ios
avfoundation
avassetreader
cmsamplebuffer
1vote
0answers

CLSID_D2D1ChromaKey issues

I try to use DirectX ChromaKey effect, but my function stucks on some step. What I do: 1. Create ID2D1Factory1 2. Create ID3D11Device and ID3D11DeviceContext 3. Obtain DXGIResource from received texture 4. Obtain shared handle from DXGIResource 5. Open DXGIResource as new ID3D11Texture2D using ID3D11Device 6. Obtain D3D11_TEXTURE2D_DESC of new [...] read more
c++
gpu
directx-11
direct2d
direct3d11
1vote
1answer

A D3D11_USAGE_STAGING Resource cannot be shared via D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX

I try to create new ID3D11Texture2D for map it to DXGI_MAPPED_RECT further. I receive some ID3D11Texture2D that I have no power on (can not change way of creation of). Here is the part of the code: CComPtr<IDXGIResource> cpDXGIResource; RET_HR_NULL(_pTexIn->QueryInterface(__uuidof(IDXGIResource), (void**)&cpDXGIResource), cpDXGIResource); HANDLE sharedHandle; cpDXGIResource->GetSharedHandle(&sharedHandle); CComPtr<ID3D11Texture2D> cpTexIn; cpD3D11Device->OpenSharedResource(sharedHandle, __uuidof(ID3D11Resource), (void**)(&cpTexIn)); D3D11_TEXTURE2D_DESC [...] read more
c++
directx
direct3d11
dxgi
1vote
0answers

Use custom driver for all new USB devices with same VID/PID

In order to use my USB HID complient device with LabView, I had to create a custom USB driver. That works fine, except when I connect a new device (same VID&PID, different GUID) windows automaticly uses the standard hid.dll driver instead of my custom driver. Therefor the new device doesn't [...] read more
usb
labview
hid
1vote
0answers

Google breakpad give invalid dump info on some devices/cpus/os?

I've compiled and ran google-breakpad on android app successfully, and solved some crashes with the sufficient information collected through it. But among the dumps there're some insufficient ones that give no stack trace or issued models. I spent some time trying to figure out the relationship between dump info and [...] read more
android
android-ndk
google-breakpad
0votes
0answers

Robocopy - ERROR 87 (0x00000057) Accessing Destination Directory

I'm currently using a robocopy in a loop performing the following command over a number of different directories: robocopy $sourceFolder $purgeFolder /MOV /LEV:0 /MINAGE:$OlderThan All source folder paths are at the same level in our directory structure and have exactly the same permissions however when the loop reaches certain directories [...] read more
robocopy
0votes
0answers

cancel disk while extracting in rufus

recently i want to make a bootable disk for my flashdisk. I've done this ton of times, but today while doing so my flashdisk is ejecting by it self. Rufus is stuck at extracting so i cancel the operation. ( still around 400 mb ). But now my flash disk [...] read more
usb
partitioning
mbr
format
rufus
0votes
0answers

How can I fix 0x00000057 error when installing Canon LBP2900 printer in a network?

Background I'm trying to install new Canon LBP2900 printer to all clients replacing HP LaserJet P1505 which connected to a printer server in small home network (4 computers). The details of network configuration provided as follows: 1. Printer server * OS: Windows 7 Ultimate 32-bit * IP address: 192.168.1.254 2. [...] read more
windows-7
networking
drivers
printer
0votes
6answers

Cannot Delete Unwanted COM ports - Windows 7

I recently installed a Cannon wireless printer for temporary use, the drivers of which set nearly all my COM ports to be constantly in-use (an occasionnal bug noted in the ReadMe after installation with no fixes - thanks Canon idiots!). I have now deleted the printer and drivers but the [...] read more
windows-7
printer
com
0votes
2answers

Windows Malicious Software Removal Tool log says it can't do all required actions. Should I be concerned?

Here's what the log file c:/Windows/debug/mrt.log of my Windows 7 install says: WARNING: Security policy doesn't allow for all actions MSRT may require. ->Scan ERROR: resource process://pid:6080 (code 0x00000005 (5)) ->Scan ERROR: resource process://pid:5300 (code 0x00000057 (87)) ->Scan ERROR: resource process://pid:3512 (code 0x00000057 (87)) I use the default setup. I [...] read more
windows-7
malware-removal
0votes
2answers

Makecat failure: no members found

I am trying to modify existing input cdf file to use SHA256 instead of SHA1 by adding following two lines under [CatalogHeader] section: CatalogVersion=2 HashAlgorithms=SHA256 Executing makecat.exe now gives me following failure message even though nothing under [CatalogFiles] has changed: Failed: CryptCATCDFEnumMembersByCDFTagEx. Last Error: 0x00000057 Failed: No members found. Last [...] read more
windows
sha256
0votes
1answer

Using HidD_GetInputReport(..) to retrive XBOX ONEs button states

I am trying to talk to the XBOX ONE Controller via the Microsoft HID API without using XINPUT. I'm currently able to control all the rumble motors (including the force feedback triggers) by sending the packet using HidD_SetOutputReport(HANDLE, VOID*, ULONG). But I'm stuck reading the button values using HidD_GetInputReport(HANDLE, VOID*, [...] read more
c++
windows
hid
xbox-one
hidpi
0votes
1answer

Same HTTP request passes with CURL_CLI but fails with LIBCURL

Am using libcurl to communicate with Amazon S3. GET calls are success whereas PUT (for uploading files) calls are failing with 403. PUT call with same headers when ran through CURL-CLI are success. I have disabled certificate checking. [[ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0) ]] Using CURLOPT_DEBUGFUNCTION option as specified in https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html, [...] read more
c
curl
libcurl
0votes
1answer

IDXGISurface::Map: This object was not created with CPUAccess flags that allow CPU access

I try to create new ID3D11Texture2D for map it to DXGI_MAPPED_RECT further. I receive some ID3D11Texture2D that I have no power on (can not change way of creation of). Here is the part of the code: CComPtr<IDXGIResource> cpDXGIResource; RET_HR_NULL(_pTexIn->QueryInterface(__uuidof(IDXGIResource), (void**)&cpDXGIResource), cpDXGIResource); HANDLE sharedHandle; cpDXGIResource->GetSharedHandle(&sharedHandle); CComPtr<ID3D11Texture2D> cpTexIn; cpD3D11Device->OpenSharedResource(sharedHandle, __uuidof(ID3D11Resource), (void**)(&cpTexIn)); D3D11_TEXTURE2D_DESC [...] read more
c++
directx
direct2
0votes
0answers

How to install .net framework 4.6.1 runtime on Windows Server 2012 R2

I spun up a aws EC2 instance Windows Server 2012 R2. It comes pre-loaded with .Net 4.5. But I'm running code that requires 4.6.1. I tried both the online and offline installers. I'm an admin. I'm selecting "run as administrator" on the installer(s). It extracts the package. The install progress [...] read more
.net
windows
server
0votes
0answers

Robocopy - ERROR 87 (0x00000057) Accessing Destination Directory

I'm currently using a robocopy in a loop performing the following command over a number of different directories: robocopy $sourceFolder $purgeFolder /MOV /LEV:0 /MINAGE:$OlderThan All source folder paths are at the same level in our directory structure and have exactly the same permissions however when the loop reaches certain directories [...] read more
robocopy
0votes
1answer

TrueType Font cmap table Format 0 not serializing

Here is the data I am using to construct the table: { version: { type: 'USHORT', value: 0 }, numTables: { type: 'USHORT', value: 1 }, platformID: { type: 'USHORT', value: 0 }, encodingID: { type: 'USHORT', value: 0 }, offset: { type: 'ULONG', value: 12 }, format: { type: [...] read more
fonts
truetype
0votes
1answer

Windows Phone App crashes after Launcher.LaunchFileAsync when downloaded from store

I have a strange problem, if I deploy my app through visual studio as debug or release version all is working well. But if I publish it to the store and download it from there the app crashes after Launcher.LaunchFileAsync or FileOpenPicker. When my app launches for example the default [...] read more
windows-phone
windows-phone-8.1
windows-phone-store
0votes
1answer

WINAPI: Windows Registry functions fail

I have a trouble writing some keys into registry: PHKEY key = NULL; HRESULT hResult = S_FALSE; hResult = RegOpenKeyEx(HKEY_CLASSES_ROOT, _T("AppID"), 0, KEY_CREATE_SUB_KEY, key); and this fails with code 0x00000057 - The parameter is incorrect. hResult = RegCreateKeyEx(HKEY_CLASSES_ROOT, _T("new_key_name"), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, key, NULL); this fails with code [...] read more
c++
winapi
registry
0votes
2answers

WinDbg with dump files when you have a classic ASP app which uses a lot of .Net via interop

Ok, first please don't ask why this application is the way it is. This is a classic ASP application which in several areas uses .Net and COM and some of that .Net also reaches into COM! It's all to do with code reuse really, at some point .Net was introduced [...] read more
.net
memory-leaks
asp-classic
windbg
0votes
2answers

std::wstring causes memory access violation (0xC0000005: Access Violation)

Our application navigates through a list of named pipes and looks for a named pipe created by our application. If our named pipe does not exist, we go ahead and create one. However, lately our clients have reported application crashes at line: fileName = std::wstring(TmpInfo->FileName); You could review the windbg [...] read more
visual-c++
memory
activex
named-pipes

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  3. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0