Windows error 0x80100004, -2146435068

Detailed Error Information

SCARD_E_INVALID_PARAMETER[1]

MessageOne or more of the supplied parameters could not be properly interpreted.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode16 (0x010)
NameFACILITY_SCARD[2][1]
DescriptionThe source of the error code is the Smart-card subsystem.[2][1]
Error Code4 (0x0004)

Questions

2votes
1answer

I have some trouble with golang syscall when calling dll in win7-64

Here my code: package main import ( "fmt" "syscall" "unsafe" ) var ( WinSCard, _ = syscall.LoadLibrary("C:\\windows\\system32\\WinSCard.dll") procSCardListReaders, _ = syscall.GetProcAddress(WinSCard, "SCardListReaders") procSCardEstablishContext, _ = syscall.GetProcAddress(WinSCard, "SCardEstablishContext") ) func abort(funcname string, err error) { panic(fmt.Sprintf("%s failed: %v", funcname, err)) } func SCardEstablishContext(dwScope uint32, pvReserved1 *uint32, pvReserved2 *uint32, phContext uintptr) int32 [...] read more
go
system-calls
1vote
1answer

Trouble Converting Smart Card Program to UWP

I'm working on converting what was originally a web forms .NET application to UWP. The application is for using company-issued badges to record meeting attendance instead of our current paper sign in sheets. The original program uses an Omnikey 5427 CK in keyboard wedge mode and has no problems. For [...] read more
uwp
raspberry-pi
smartcard
windows-10-iot-core
smartcard-reader
1vote
2answers

js-ctypes invalid arguments

Iam trying to run winscard functions using js-ctypes in Firefox. I have working C code and I started to copy code to javascipt. Unfortunetly my first function- SCardEstablishContext returns the following error: > SCARD_E_INVALID_PARAMETER 0x80100004 Whats wrong with the arguments? Components.utils.import("resource://gre/modules/ctypes.jsm"); const NULL = ctypes.voidptr_t(0); var cardLib = ctypes.open("C:\\WINDOWS\\system32\\WinSCard.dll"); var [...] read more
javascript
windows
smartcard
jsctypes

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0