I'm not exactly a newbie. Have been programming VB with MSSQL for about two year. I go into something I never dealt before which is API programming. Trying to understand the whole concept.
please help me to understand what value should I subtitute these parameters. Most of the examples are for VC ++. Only example of which I'm very confused is at this MSDN refrence here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/scardestablishcontext.asp
it says that for the ScardEstablishContext the first parameter is dwscope. In the VC example, one can straigh away send either SCARD_SCOPE_USER or SCARD_SCOPE_SYSTEM. This will not work in VB. I found a online reference for ScardEstsblishContext for VB and the code is like this
ngresult = SCardEstablishContext(2, 0, 0, mlngContext)
my question is how do you translate the first param (either SCARD_SCOPE_USER or SCARD_SCOPE_SYSTEM) to be "2" (on the above example)
there lotsa more API call which resemble the problem above like parameter dwsharemode and dvPreferredProtocols for ScardConnect (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/scardconnect.asp
)..how are does translated into long/integer fields. Here are the VB translated code Result = SCardConnectA(mlngContext, szReader, 2, 1, cardHandle, cardProto). I appreciate any pointers. Thanks in advance
0 · ·