Win32 api interface

Does anyone have any information on the win32 api i would like to write a java application that woudl allow me to list all of the task names in the taskmanger
Something like Win32::Setupsup for perl

Hello,
Please,
is there any body who knows how I can search for the availability of Windows resources through Java. I am trying to write an application that can simulate a situation like this:
"Imagine that I am using Skype with a video on my webcam. On the other hand I am writing to another friend using MSN. Then my friend wants to add video. My application should notify that the video resource is already in use. Actually this is already done on windows. "
But I would like to move on the software layer in Java. Any suggestion would be highly appreciated.
MoiseMbaya

Similar Messages

  • Win32 API calling by Code Interface Node

    Hi all,
    I wish to call a Win32 API function by using the code interface node.
    However, I don't know the data types in LabVIEW corresponding to the "HANDLE
    *" in Visual C++.
    Here's the function I wish to call:
    BOOL bOpenDriver (HANDLE * phDeviceHandle, PCHAR devname) {
    *phDeviceHandle = CreateFile(devname,
    GENERIC_WRITE,
    FILE_SHARE_WRITE,
    NULL,
    OPEN_EXISTING,
    0,
    NULL);
    if (*phDeviceHandle == INVALID_HANDLE_VALUE) {
    return (FALSE);
    } else {
    return (TRUE);
    Thank you in advance.
    JJ

    If this is really a Windows API function, then the handle can most likely be treated as an I32.
    Note that you can't actually do anything with the handle other than passing it to other functions.
    If you search this site for "LabVIEW" and "DLL" you should find some resources about working with DLLs and Win32 API DLLs.
    Try to take over the world!

  • LabVIEW call Win32 API DLL function from third party

    Hi everyone,
    I'm trying to build a LabVIEW 2010 interface on 32-bit Window XP system to configurate and communicate to an Anglient laser head through its USB expansion box. I contacted the vendor and they shared a win32 API with some dll files. I started with a function called "A55292Find", but the CLF node always pop up error 1097.I checked the MSDN to get the corresponding LabVIEW data type for CLF.
    My question is: Do I need to initialize those arguments? (How can I know the values of them if initialization is needed?)
    Could anyone help me figure out what's the problem?
    Here is what I have from API documents about this function:
    The A55292Find function returns lists of handles and board types for all the 55292 USB
    Expansion Modules connected to the system.
    A55292RC __cdecl A55292Find(
    HANDLE hBoxes[], // List of handles for the boxes found. (as Unsigned 32-bit integer numeric)
    BOARDTYPE PortABrdType[], // List of board types for slot A boards (as Unsigned 16-bit integer numeric)
    BOARDTYPE PortBBrdType[], // List of board types for slot B boards (as Unsigned 16-bit integer numeric)
    WORD *spMaxBoxes); // dimension for all of the passed arrays. (as Unsigned 16-bit integer array data pointer)
    // (function return type as Unsigned 32-bit integer numeric)
    Parameters
    HBoxes[] Array that will receive the list of HANDLES for all the 55292 boxes connected.
    PortABrdType[] An array that will receive Slot ‘A’ board type information for each 55292 box.
    PortBBrdType[] An array that will receive Slot ‘B’ board type information for each 55292 box.
    spMxBoxes Passes the maximum number of values that can be held in hBoxes, PortABrdType, and PortBBoardType arrays to the A55292Find routine and returns the actual number of boxes found
    The return value will be one of the following A55292RC return codes:
    Value Meaning
    A55292_NO_ERROR No error
    A55292_TIMEOUT Timeout accessing a shared memory
    Remarks
    This routine must be called to obtain handles and board type information used in calling all the other routines. If there are significantly more array elements than boxes, the routine will take longer to complete.
    These are the definitions: 
    typedef DWORD A55292RC; enum{A55292_NO_ERROR, A55292_HANDLE_ERROR,...}
    typeder WORD BOARDTYPE; enum{A55292_PCAL_BOARD, A55292_NO_BOARD, ...}
    Thanks a lot,
    Kang
    Solved!
    Go to Solution.
    Attachments:
    call A55292Find.vi ‏10 KB

    nkang11 wrote:
    Hi Mr. Kalbermatter,
    As you told me, I should try to use the defined enumeration words as control and indicator.
    For the previous CLF node, it successfully returned the hardware configuration (I have only connected a board at slot A):
    But I really want to see a string return as "A55292_PCAL_BOARD" which is defined by "typedef WORD BOARDTYPE; enumeration {...}; Does that mean I need to change the data type or do something like "converter"? Or initialize the array first, then convert it to string type?
    Right now, I'm trying to open the laser card by using "A55292PcalOpen(HANDLE hDev, SLOTSELECT SlotSelector);" function which requires to use the enumeration constants from " typedef WORD SLOTSELECT; enum {A55292_PORT_A, A55292_PORT_B};" but I'm confused to shot an constant control to a new CLF node.
    Since almost all of the arguments in dll function are typedefined as WORD, short and struct et al, I hope you could give me some hints on it.
    Thank you very much sincerely!
    Kang
    Depending on the actual C implementation you can simply create a LabVIEW enum with the according item names or use a ring control instead. Teh enum requires the numeric values of the items to be in consecutive order without any gaps in between. This is a given if the C definition never assigns a specific number to the item. If the C enum is not consecutive you need to go with a ring control instead.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Public API/Interface name to import the payment information against invoice

    Hi,
    I want to get the Oracle supported Public API/Interface name to import the payment information against invoices(because there is a need to importing payment data against closed invoices from 11.5.5 to R12). Since I am not getting any standard oracle supported method, I am using the API AP_PAY_INVOICE_PKG.AP_PAY_INVOICE but while running it I am getting the following error:-
    Payment API Error =ORA-20001: APP-SQLAP-10000: ORA-28115: policy with check option violation
    occurred in
    AP_AIP_TABLE_HANDLER_PKG.Insert_Row <-AP_PAY_INVOICE_PKG.ap_pay_insert_invoice_payments<-AP_PAY_INVOICE_PKG.ap_pay_invoice<-.
    Regards,

    The below query will meet your requirement, but payment amount won't matches with some cases see below .
    1) Check Payment/EFT Payment for more than one invoice we will pay that time invoice amount is
    not equal to payment amount, Payment amount is greater than Invoice Amount.  This will be controlled in Report level.
    if you develop report using this query, there you can control this issue.
    SELECT aia.vendor_id, aps.vendor_name, aia.invoice_id, aia.invoice_num,
           aia.invoice_date, aia.invoice_currency_code, aia.payment_currency_code,
           aia.invoice_amount, aia.amount_paid, aia.payment_method_lookup_code,
           aia.payment_method_code, aia.SOURCE, aia.invoice_type_lookup_code,
           aia.voucher_num, aca.amount payment, aca.bank_account_name,
           aca.check_id, aca.check_number, aca.currency_code,
           aca.payment_method_lookup_code, aipa.accrual_posted_flag,
           aipa.cash_posted_flag, aipa.posted_flag
      FROM ap_invoices_all aia,
           ap_checks_all aca,
           ap_invoice_payments_all aipa,
           ap_suppliers aps
    WHERE aia.invoice_id = aipa.invoice_id
       AND aca.check_id = aipa.check_id
       AND aia.vendor_id = aps.vendor_id
    if it's meet your requirement pls check the Correct/Helpful Answer for your question.
    you can modify this query here and there as per your required fields.
    Thanks
    Hari

  • I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a H

    I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.

    Nevermind I fixed it. Thank you.

  • Win32 API to get cluster List from domain

    Hi ,
      we are using NetServerEnum API to retrive the list of cluster from domain. But it failed with error 2127 on windows 2008 server and the cluster /list command also failed with same error.
    But if we pass domain name to cluster .exe then it works.
    So is there any win32 API other than NetserverEnum which will give the list of clusters in a domain.

    Hi,
    can you also use powershell here?
    Get-Cluster -domain yourdomainFQDN.com
    This will give you all failover cluster in the specified DNS domain.
    Hope that helps.
    Regards
    Ramazan
    Ramazan Can [MVP Cluster] http://ramazancan.wordpress.com/

  • Win32 API & DLL calls

    Is possible to call in java directly the Win32 API or using a DLL?

    I dont believe you can do it directly but I think you can call a VBSCRIPT that can call WIN32 API directly

  • Win32 API

    is there ne way i can use win32 API in JAVA, is there ne compatibility possible ?

    http://java.sun.com/docs/books/tutorial/native1.1/
    Read this link.
    ***Annie***

  • Win32 API error 126

    What to do if message: [Win32 API error 126 ("Dasangegebene Modul wurde nicht gefunden") when calling ::LoadLibrary from getFunction] apears

    What to do if message: [Win32 API error 126 ("Dasangegebene Modul wurde nicht gefunden") when calling ::LoadLibrary from getFunction] apears

  • Win32 API user32.dll SendInput function help

    I'm looking for and example that uses the Win32 API user32.dll SentInput function.

    Hi, you find the required information in the MSDN online:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/windows_api_reference.asp
    and more specific the "SendInput" at:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp
    Regards,
    Mattias Ericsson
    Endevo (www.endevo.se)
    Gothenburg, Sweden

  • Win32 API Version 1.0

    Hi,
    I have just downloaded the "Win32 API Version 1.0 " and I am trying to compile it under the
    Solaris 2.6 and Forte 6.1/C++5.2/. I am facing some strange problems like
    socklen_t in Files.h not defined and so on. I don't know which version of Solaris
    and C++ compiler is supported.
    Thanks you for your help
    Dimitar

    The Solaris(TM) OE Implementation for Win32 API Version 1.0 has been compiled by the WorkShop Compilers 5.0 98/12/15 C 5.0 at SUN.
    All the source files have ".c" extension which mean you can not use the "CC"/C++ compiler to compile it. You must use the C compiler "Sun WorkShop 6 update 1 C 5.2" instead of C++ compiler "Sun WorkShop 6 update 1 C++ 5.2" to compile this package.
    Hope this will help.
    Thanks!
    Amjad

  • Create AP Payments (Check, EFT,ACH, Manual ) through API/Interface

    We create invoices in our oracle EBS R12. But as we are child unit of a larger company, they make all the payments via PeopleSoft and send us a EDI file. So now, we want to develop an inegration application using the API/Inerface to apply all the payments for different payment methods in our EBS system.
    Firstly would it be possible to develop an application using API/Interface to solve the problem.
    Secondly what interface I should be using for payment not only for check payments.
    Thirdly whould using AP_PAY_INOVICE_PKG (which is not a API/Interface) will solve the problem.
    Should I be using this package? What other options are out there which let me automate the payment procedure in EBS.
    Thanks

    Hi Schwartz,
    You say you create invoices in your Oracle EBS R12 and pay in Peoplesoft. If that is the case, then you must send the invoice details to Peoplesoft. In which case, at the time you send them to Peoplesoft, from an EBS perspective you have effectively paid them. Why not just pay them in Oracle EBS and send the payment details to Peoplesoft so you can cross reference the payment numbers? Once they are paid in Peoplesoft, as long as you have paid them in the same way, then you could send the Peoplesoft payment number reference back to EBS and store in DFF on Oracle EBS Payment record or similar... the complication is then voided / unpresented cheques etc...
    Update: when I say "pay them in EBS" I mean process the payments, but don't create Checks / EFT etc.
    Regards,
    Gareth
    Edited by: gareth.roberts on Nov 2, 2009 7:58 PM

  • Create AP Payments (ACH, EFT, Check, Manual, Wire) through API/Interface

    We create invoices in our oracle EBS R12. But as we are child unit of a larger company, they make all the payments via PeopleSoft and send us a EDI file. So now, we want to develop an inegration application using the API/Inerface to apply all the payments for different payment methods in our EBS system.
    Firstly would it be possible to develop an application using API/Interface to solve the problem.
    Secondly what interface I should be using for payment not only for check payments.
    Thirdly whould using AP_PAY_INOVICE_PKG (which is not a API/Interface) will solve the problem.
    Should I be using this package? What other options are out there which let me automate the payment procedure in EBS.
    Thanks

    Hi Schwartz,
    You say you create invoices in your Oracle EBS R12 and pay in Peoplesoft. If that is the case, then you must send the invoice details to Peoplesoft. In which case, at the time you send them to Peoplesoft, from an EBS perspective you have effectively paid them. Why not just pay them in Oracle EBS and send the payment details to Peoplesoft so you can cross reference the payment numbers? Once they are paid in Peoplesoft, as long as you have paid them in the same way, then you could send the Peoplesoft payment number reference back to EBS and store in DFF on Oracle EBS Payment record or similar... the complication is then voided / unpresented cheques etc...
    Update: when I say "pay them in EBS" I mean process the payments, but don't create Checks / EFT etc.
    Regards,
    Gareth
    Edited by: gareth.roberts on Nov 2, 2009 7:58 PM

  • How to use win32 API in flex

    hi,
    Can someone share some sample codes about using win32 API in Flex if possible ?
    Thanks

    Hi
    Here I am placing the syntax and example
    syntax:
    movieclip.gotoAndPlay("framelabel");
    example:
    mc1.gotoAndPlay("intro");
    for further details:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_1.html
    If this post answers your question of helps. Please mark it as such

  • Can I use API Interface in forms6.0.., How???

    Hello friends,
    Here I want to use a simple API interface in my forms6.0.
    Like PageMaker6.5 Interface in forms6.0
    Is there any way of using the application, Like Internet Explorer can show Word Documents or PDF files directly.
    In the same way Can I show PageMaker files in Forms6.0
    A good suggesstion is appreciated.
    regards,
    Praveenkumar Talla (Pune, India)

    You can access devices connected to the USB port, but not in the same way as you would a GPIB or RS232 device. There are no USB drivers like there is VISA for GPIB or serial. Rather devices that plug into the USB appear to the systen as some sort of standard resource like a printer, disk drive or IO board. LabVIEW then interacts with these devices as it would any other device of the same type.Look at it this way, if you have a USB daq device you will access it through MAX the same as if it were a plugin card. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for