How to get a handle which is used in c dll from  javax.smartcardio.card

good afternoon
i am using javax.smartcardio.card to operate a sim-card reader .
but i have a dll which is call sim-card reader by handle.
how can i get a handle from a javax.smartcardio.card object to pass to the dll
next is the code .
c dll prototype declaration
char DoFormat([in] unsigned long P1�C[in] char * P2�C[in] bool P3,[in][out] char *P4)P1 is a handle
java code:
private boolean checkCardReader(boolean isopen)
boolean r=false;
try {
javax.smartcardio.card card;
TerminalFactory factory = TerminalFactory.getDefault();
List terminalList = factory.terminals().list();
terminal = (CardTerminal) terminalList.get(0);
// establish a connection with the card
card = terminal.connect("T=0");
channel = card.getBasicChannel();
//how can i get a handle which can be used by windows dll .
}catch (Exception ex)
System.out.println("Exception : " + ex);
return r;
*****************************************************************

Presumably you are calling a C library method that returns a handle.
Normally a handle will be a integer type value.
With such a value you can cast it into a java integer type and then cast it back in different JNI code by passing it to those routines.
A java long is as big as you can get and will hold most every normal type handle item. You should however verify sizes.

Similar Messages

  • How to get the Objects which are used in the webi Report.

    Hi Expert,
    I am trying to get the list of  WebI reports and Objects which are present in the report at  BO 4.0.
    I can able to get details  for only the list of reports and universes.
    Could  any one help me to get those details.
    Regards,
    Murali S

    With 4.0, there is no longer a way to do this using just the .NET SDK because the ReportEngine SDK no longer exists for .NET.  Instead, you'll have to look at using the RESTful Web Services SDK for Webi which runs in the Web Application Container Server on your report server (NOT on the web server!)
    RESTful web services are platform-independent and don't require the installation of any SDK files.  Everything is done through standard HTTP Get, Put, and Post commands and the results are returned in either XML or JSON format.  You don't mention which service pack of 4.0 you're on, but the RESTful web services have evolved over the course of the 4.0 service packs, so more recent is definitely better.
    You can find the documentation for this in the "Development Information" section at help.sap.com/bobip40.  There is also a "space" on SCN for this at http://scn.sap.com/community/restful-sdk and there are some links on this page for various resources and sample code.
    -Dell

  • HT201272 how to get previews download which you use a different apple accounts

    how can i get back my apps i purchase with a different account

    Sign out of the current account, sign in with the other one, go to iTunes Store > Purchased.
    tt2

  • How to get the handle of the Validation Failure Message Popups.

    Hi,
    I'm using Jdev 11.1.2.0
    I have added validation rule(less than system date) and failuremessage("date should not after currentdate") on the date field in EO.
    when I enter greated than the sysdate in date field in page, I'm getting validation failure message in a popup with ok button. its working good.
    but when i click on the popup ok button, the focus should go the date field again and it is higlighted.
    So, how to get the handle of the popup's ok buton? and how to highlight the datefield after clicking the popup's ok button?
    Any suggestion would be appreciated.
    thank you.

    if i understood correclty means,
    i hope that, error popup is provided by framework.. how could be possible? to catch the error popup ok button.
    am not well aware of catching the error popup which is provide by framework..
    but i had answer for your part of the question,
    if the condition go off false means you force the cursor into date field. this is can be done using 'javascript'. unless using script you can't do that. ADF doesnt provide any force focusing feature.
    please google how to focus the field.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    http://lspatil25.blogspot.in/2012/04/adf-default-cursorfocus-to-input-field.html
    http://donatas.nicequestion.com/2012/04/component-to-set-initial-focus-in-adf.html

  • How to get the text which was clicked in  a A href tag.

    I am displaying the names from database in a page as hyperlink. When this hyperlink is clicked I want to display the corresponding address from DB. What the problem is when the link is clicked how to get the name which is clicked. I know only to link to a page using href. Now I want the text which has been clicked. Pls help.

    Sorry to interrupt here!
    For the code you suggested:
    David,
    if the target path is "http://localhost/testing.jsp", then
    the code would become:
    David.
    So what would the difference between the code shown above and this code:
    David
    What is the function for these two symbols: "<<" and ">>"?

  • How to get inputtext's inputvalue by using javascript

    how to get inputtext's inputvalue by using javascript?
    and how to judge whether its be filled or empty string

    Why do you want to use javascript..? Why not action listener..? You can check whether its an empty string by checking
    if(str != null && !str.equals("")) {..}
    where str is the variable for inputText value.
    If this is not helpful, do provide more details on which version of JDev you are using and what are you trying (your usecase).
    regards,
    ~Krithika

  • How to get a handle of tcUtilityFactory within Java Task

    Hi
    I am trying to user op interface within a java task and want to avoid the GUI based coding in adapter factory
    I am having doubt about how to get a handle of tcUtilityFactory
    the standalone example of getting the handle works fine within a Java task
    // ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    // final Hashtable env = config.getAllSettings();
    // ioUtilityFactory = new tcUtilityFactory(env, "xelsysadm", "welcome1");
    but I want the handle to be provided by adapter runtime env
    there is a function call within generated adapter code
    APITaskLocal.getUtilityFactory(getDataBase());
    but I get null pointer if I try to use it within custom code
    has anyone played around with APITaskLocal.getUtilityFactory

    Hi,
    Use this code.
    public void init(tcDataProvider dataProvider) {
    try {
         usrOps = (tcUserOperationsIntf)tcUtilityFactory.getUtility(dataProvider, "Thor.API.Operations.tcUserOperationsIntf");
    } catch(Exception e) {
    log.error("Unable to initialize: "+e);
    You can pass dataProvider in adapter mapping . Map it to Adapter reference->Database reference.
    Hope this will help.
    Regards
    Nitesh

  • When I open a pdf file, after a few seconds, it hides the toolbar and I don't know how to get it back.  I use multiple monitors and, without being able to grab the toolbar, I am unable to move the pdf file to a different monitor.  How do I stop this?

    When I open a pdf file, after a few seconds, it hides the toolbar and I don't know how to get it back.  I use multiple monitors and, without being able to grab the toolbar, I am unable to move the pdf file to a different monitor.  How do I stop this?

    Does Firefox switch to full screen if you press F11 ?
    You can also try the F10 key to see if that brings up the menu bar.
    * If the above steps didn't help then see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Note: Do not delete localstore.rdf in the program folder (Windows: "C:\Program Files\Mozilla Firefox\defaults\profile\") (Mac: "/Applications/Firefox.app/defaults/profile/")

  • How to get the records which has a specified x/y coordinates

    Hi,
    How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
    Thanks and Regards
    Aravindan

    Aravinda,
    If you want to find the line segments which intersect the given
    set of points, you can do that with SDO_RELATE.
    siva

  • HT4914 I keep getting error 4002 which i use itunes match. i cant sync my music anyomore.

    I keep getting error 4002 which I use itunes match. I cant sync my music anyomore.

    He taburoza
    @see https://discussions.apple.com/message/20165728
    Regards
    Stefan

  • How to get to know which OS is on my computerr

    hi
    How to get to know which OS is on my computerr

    It says "iMac, Mac OS X (10.6.8)" on your signature

  • How to get sales order data in substitution of fi-docu from GM posting ?

    How to get sales order data in substitution of FI documents from goods movement posting?
    When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
    I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
    Do you have better solution or idea for this? Please help me. Thank you!

    Hello Harish,
    Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
    Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
    Regards
    Kaushal

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • How to get WHAT U HEAR option for PCI Express X-Fi Titanium sound card and Windows 7

    how to get WHAT U HEAR option for PCI Express X-Fi Titanium sound card and Windows 7 ? Is it on the basic driver? or do you have to install some other software?
    jane

    You have to install the rest of the software(s) for the sound card. The software is (if it is with the installation CD, though) called "Creative Smart Recorder" or something like that.

  • [Q] Using a VC++ DLL from LabWindows

    I need to create a DLL that uses shared memory. I can do
    this with Visual C++ but haven't succeeded doing it with
    LabWindows.
    So now I want my LabWindows executable to use the VC++ DLL.
    I'm having trouble because some identifiers are "redefined"
    (defined both in the needed VC++ include files as well as in
    CVI include files).
    Can someone tell me either how to create a DLL that uses
    shared memory in LabWindows (this is my preferred solution)
    or else how to use a VC++ DLL from LabWindows?
    My ultimate aim is to use the shared memory to share
    instrument session handles, since we need to be able to talk
    to the same instrument from more than one process. Has
    anyone already done this?
    TIA for any help ...
    B
    * S
    ent from RemarQ http://www.remarq.com The Internet's Discussion Network *
    The fastest and easiest way to search and participate in Usenet - Free!

    Hello andre,
    today I have read your message of the 20th Sept. 1999 in the NI-Newsgroup.
    And I am also trying to use SHARED MEMORY.
    But I have no experience with it. Could you help me?
    Do you have succeded ?
    With best regards,
    CHRISTIAN ZIPPER
    ande schrieb in im Newsbeitrag:
    [email protected]..
    > I need to create a DLL that uses shared memory. I can do
    > this with Visual C++ but haven't succeeded doing it with
    > LabWindows.
    >
    > So now I want my LabWindows executable to use the VC++ DLL.
    > I'm having trouble because some identifiers are "redefined"
    > (defined both in the needed VC++ include files as well as in
    > CVI include files).
    >
    > Can someone tell me either how to create a DLL
    that uses
    > shared memory in LabWindows (this is my preferred solution)
    > or else how to use a VC++ DLL from LabWindows?
    >
    > My ultimate aim is to use the shared memory to share
    > instrument session handles, since we need to be able to talk
    > to the same instrument from more than one process. Has
    > anyone already done this?
    >
    > TIA for any help ...
    >
    >
    > B
    >
    > * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network
    > The fastest and easiest way to search and participate in Usenet - Free!
    >

Maybe you are looking for

  • Inspiron 9300 cd drive performance

    well, i put arch linux on my laptop last week. its one with ide drives, not sata. dell never officially doc'd a difference between the two and put out very few with sata in them. i worked for them so i had the inside info on that, lol. anyway, basica

  • 8.0.5.0.0 - 8.0.5.1 What fixes / enhancements?

    I'm considering downloading the 8051 but wanted to gauge whether I need to go through the hassle first... ;) Thanks for your replies... null

  • My external hard drive does not recognise password

    Hi, I had formatted an external drive with a password security recently and using it as my portable time machine for backups. For some reason, the drive cannot be mounted as it does not recognise the Password. Can anyone please help me on this matter

  • Which type of documents are used in a project

    which type of documents are used in a project whether it may be implementation or development or upgradation or supporting and pls send the procedure how we can proceed in these cases as abaper thanks in advance

  • Custom.pll library?

    Hi guys, How can I use custom.pll library to checking those newly add records on screen? Here is the example: 1) There are 2 records on screen from interface in Purchase Order Form 2) User manual add 1 record in Purchase Order Form 3) When use save t