-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build after modifing winscard.cpp on windows 10 #33
Comments
just build it with the devel branch. I built the project in vs2019 with win32 and nothing of the files modified. MSTSC_winscard_rules_log.txt_Fri-Feb-26-12_27_55-2021.txt When i have both present i get this weird output: winscard_rules_log.txt_Mon-Mar--8-13_42_55-2021.txt Do i have to do something special when i build? Because the premade 32bit winscard.dll (v2.1.2) is working properly with the program. If i can get the devel build working properly, i can do my modifications |
Are you sure it does not find it? The problem might be just the log not showing anything (because of string_format on the outside) as the _CONV method says if the string should be read as char/widechar based on UNICODE define. In devel there were some changes to this unicode/ascii encoding and the log is mostlikely just showing more than the master build is (warnings and some additional logs were added with 63233a1) |
The log of the self built version even shows that there isn't any reader present and continues to fail everything afterwards. So i imagine that the pre made winscard.dll is built in someway that mine isn't? |
and no the test program doesn't find it. Only when i use the pre compiled dll or don't use the tool at all. |
I can try it out during the weekend (don't have card reader anymore and need to create virtual one) but I'm not aware that there would be some special way to build it. Might be that devel is not entirely working so you could try to build master while taking only winscard32/64.def from devel to see if it will help you |
And would that help to get rid of the errors that i first encountered when i tried to build the master? |
If you'll keep the .def files then yes as there are defined methods that have been removed in 2019 by MS in their dll |
just build again:
After that:
Checked again with the pre compiled 2.1.2 dll, logs properly I don't know whats going wrong |
i tried to build on windows 2019 server with vs2019 (with the devel def files) |
any update? |
Since you mentioned that you were able to build and use the winscard.dll, can you build one for us? I'll give you our modifications right here and also a screenshot so you know where it is exactly:
|
never mind, we've built the dll with the 2.1.2 source code, that works, even with the changes that we've made :) |
After using the modified Winscard.dll the program doesn't see the smartcard reader, how can that be?
We only modified this part:
Modified:
Original:
Here are the generated logs with both the vanilla and the modded version.
We didn't modify any functionality so it seems weird that it can't find a reader.
Is there perhaps another difference between our own build and the
Winscard_32b_v2.1.2
Winscard.dll?MSTSC_VANILLA_winscard_rules_log.txt_Mon-Mar--8-08_58_24-2021.txt
MSTSC_VANILLA_winscard_log.txt_Mon-Mar--8-08_58_24-2021.txt
MSTSC_MODDED_winscard_rules_log.txt_Mon-Mar--8-08_59_59-2021.txt
MSTSC_MODDED_winscard_log.txt_Mon-Mar--8-08_59_59-2021.txt
The text was updated successfully, but these errors were encountered: