Smart card reader not dedected - PCSC Error - 0x8010002e - pcsc

My system was working fine but now my any application is not detecting the smart card reader ( SCM Microsystem) attached in the system while it is displaying in device manager.
Here I tried to get the exact error with trying C++ code (winscard.h) to connect the reader,
reader_status = SCardListReadersA(hContext, NULL,(LPSTR) &szReaders, &dwReadersSz);
and here it is giving error - 0x8010002e
Is there any advice here

It seems it was happening because of wrong registry values.I thought to share my work for other one. What I tried is :-
Right-click on the key HKLM\SOFTWARE\Microsoft\Cryptography\Calais and select Permissions...
Click Add.
Click Advanced.
Click Locations.
Click on the computername and click OK.
In the window 'Select user or groups', click on Find now.
Select LOCAL SERVICE.
Click OK.
In the window 'Select user or groups', click on OK.
In the window 'Permissions for Calais', click on LOCAL SERVICE and make sure 'Full control' , 'Read' and 'special permissions' is allowed.
restart the system and it worked.
found solution here

Related

I want to perform a right click on the system tray icon but right click does not work in pywinauto when executed on RDP

I'm running the script in rdp session where i have installed pywinauto
click_input gives me an error like win32api.SetCursorPos((200,95)) error: (5, 'SetCursorPos', 'Access is denied.')
thereby i replaced it with click method,
but i wanted to do a right click on system tray icon, where click_input(button='right') doesn't work. Please help me with any alternate method of right click which works on rdp session.
thanks in advance

Custom login procedure on Windows(10)

Is there a way to create a custom login screen like Hello Windows, is there an api for such a thing?
Yes you can :
Search for “regedit” in your Start menu and launch it.
In the left-side panel, navigate to HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > Current Version > Policies > System.
In the right-hand panel, double-click “legalnoticecaption”.
In the “Value data” box, enter a title for your notice (for example, “ATTENTION” or “IF LOST, PLEASE CONTACT). Click OK.
Double-click “legalnoticetext”.
Enter a message containing your contact info, like your name, email address or phone number. If you’re willing to provide a reward, mention that too. Click OK.

SSMS SQL SERVER Management Studio 2012 startup freeze

I have a strange situation. IT installed SSMS on my laptop and it runs well the first time, connected to my SQL servers remotely etc. But then it's frozen. I forced quit and then started SSMS again. Now it's totally frozen, no popup window at all to enter the server-connection text string. Then I did a force quit and got a pop up window (see it here ).
Microsoft SQL Server Management Studio has detected that an operation is blocking user input. This can be caused by an active modal dialog or a task that needs to block user interaction. Would you like to shut down anyway?
Has anyone seen this before? My IT department has no clue.
Often this is due to the new connection dialog being off screen (usually due to changing monitor setup e.g. 1 to 2 monitors or resolution change etc).
If so the really easy fix (if your connection dialog just needed approval without changing fields) is :
Focus on SSMS and Hit Enter/Return
..or the easy fix (if above does not work - as your last connection is not ready to go) is:
Alt Tab to SSMS
Alt + Space - context menu
M - select Move (in offscreen context menu)
Arrow Key(s) - to move it back onto screen
As per answers here from #Eirik Toft and here from #Lee Chetwynd
Fixed an issue which presented the same on my machine today by renaming a entry in my registry:
After some digging there seems to be multiple issues that can produce the same error (Application, settings, registry). This blog entry covers it pretty well:
http://www.armedia.com/blog/2012/08/sql-server-management-studio-freeze/
In my case deleteing the SQL server management studio folder under AppData ( c:\users\%userName%Appdata\raoming\microsoft\ ) didn't work.
However I was successfully after deleting / renaming the regisitry entry:
[HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server]
(update)
Worked out the underlying issue on my laptop - was using additional 2 screens with much higher resolutions which caused windows / SSMS to open up the connect to new data source dialog off all of them. If your using multiple screens try returning to just use the native laptop screen to see if you can find the dialog that SSMS is waiting on your input for.
I just had this same situation, with two additional screens connected to my laptop. SQL Server Management Studio was opened on the third screen, with the modal dialog nowhere to be seen.
Two options:
Press tab three times and enter. This cancels the dialog. Now you can move the window to another screen.
Set Windows to only use one or two screens. SSMS opens on the first and should still open there when you move back to using three screens.
When SSMS is on your primary or secondary screen, the modal dialog opens on the first and should be usable.
It was because multi screen display. Turning off multiscreen to single one resolved it. Reenabled multi screen display after ssms started working
In my case, "Run as Administrator" option worked like charm. I was accessing my server screen with the windows RDP. And when I open SQL Server Management Studio and Visual Studio 2010 user hangs at the moment and wont operate unless sign off r disconnected by administrator.
But when I set compatibility mode of both the application to the "run as Administrator", it starts working fine.
the problem also occurs if you have a touch screen. I fixed this by disabling the local thouch screen when I switch to RDP.

Can't update Android Studio - no "Update and Restart" button

My Android Studio (0.4.3 now) often displays a message that is ready to update, but the alert does not have an "Update and Restart" button:
I want to install this update but I don't know how I can do this. After I click the "Remind Me Later" button few times, the fourth button on the left is sometimes visible, allowing me to download and install the update. I haven't discovered any pattern when this button shows up and when it doesn't.
Why isn't it always visible?
This is bug https://code.google.com/p/android/issues/detail?id=56737. If you dismiss the dialog and check for updates again, you usually get the button you're looking for. I don't know why this happens.
I have found a temporary solution for this problem (until they release a fix for it).
When Android Studio opens and the update popup shows up without the button, close it with the X button.
Press Ctrl+Shift+A to open action search dialog, enter Event Log and open it.
There will be a message telling that Android Studio is ready to update and the word update is a link that will open a window with an Update and restart button.
Actually this issue is kind a bug not really a bug :). This is what you need to do
When an update is available, you'll see a balloon notification in the IDE.
Two important known issues:
1. The first time, you'll see a dialog that asks you to accept this channel. You need to press "More info" to accept this channel, otherwise you won't get notified about updates.
2. If you press the "Ignore This Update" button, there is currently no mechanism available to revert that decision and Android Studio will never tell you about that update ever again.
For more info. visit : Android Tools Project Sitebelow is snap from android tools official site
I am not sure why the button is not available, It might be possible that the version you have currently can't be upgraded to the latest version directly.
In such cases follow the steps mentioned below :
Download the latest OS respective Android Studio as zip(sdk excluded) from here :
http://tools.android.com/download/studio/canary
Extract the downloaded Zip file somewhere
Close Android studio if running.
Go to current Android Studio installation directory.
Take a backup(safer side) of that and replace everything except sdk directory
with the content of extracted Zip file .
This also allows you to update studio in an offline system.
Clicking on 'ignore updates' and rerunning Check for updates for a couple of times did the trick for me.

"COM Surrogate stopped working" error

How can I fix the error "COM Surrogate stopped working" in Windows Vista Business?
Right click My Computer, select
Properties - select Advanced System
Settings from the left side pane -
In the Performance box, Click
Settings - Click Data Execution
Prevention tab.
Check the "Turn on DEP for all
programs and services except those I
select" option - Click "Add".
A navigation box opens, navigate to
C:\WINDOWS\system32\dllhost.exe,
Click it to add and hit OK.
This should now add this "Com
Surrogate", with a checked box, into
the list area, OK out, reboot and
you're done. The Com Surrogate errors
should disappear
Taken from here
This process nowadays is often caused by the trojan. Check your PC with anti-malware. These intruders got smart and tend to disguise their malicious activity behind these common exe processes, in this case, Dllhost.exe. check in which folder this file is and maybe update the program or drivers it is linked to. It may be an outdated software issue too.