WIN API

The File Open dialog utility provided in WIN_API pll does not work on Win NT platform but it work on Windows 95.
Error I am getting is "User Defined Exception" on Windows NT
Any suggestions to make it work.
Thanx

Your question is rather vague - do you mean a particular API call or Windows APIs in general?
If you need a particular call - check out the D2KWUTIL library that comes with the Forms Demos, this PLL and DLL provides a whole bunch of useful API calls such as reading and writing to the Registry.
For more general integration, you can use the ORA_FFI package to make calls out to external C libraries such as the Windows System Libraries that make up the Windows API.

Similar Messages

  • How to use d2kwutil for calling win-api programs in form 6i

    I WANT TO USE d2kwutil for calling win-api programs in form 6i.
    PLEASE GIVE ME IT'S SOLUTION.

    D2kwutil comes with a Demo Form WAPIDEMO - you can run this to see every function demonstrated. You can even run a function using the demo form and copy the syntax required directly into your own form -------------------------
    yes in have got that WAPIDEMO from web and run successfully but
    i can not do those codes in my owdn form.Because i do not get those apis like
    win_app_session in form 6i.
    Again i could not understand how that form runs without connecting to database.
    Please describe the solution.

  • Remove Child Window from Parent using WIN API

    Hello all,
    I am using User32.dll to make a parent-child relationship between two VIs. I use SetParent function, and pass the handle of parent VI and child VI to this function. Now, after this relationship has been established, I want to remove the child window from the parent and use it as a independent VI using WIN API. Can anyone help me on this?
    Thanks in advance!
    Fragger Fox!
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"
    Solved!
    Go to Solution.

    You should be able to set a NULL handle to undo the parent-child relationship and make the child window again a normal top level window. Setting the desktop as parent is probably not the same as being a top level window.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Low level disk access using win API libraries

    Hello All,
    One of my project requires "low level access to the drives (usually pen Drive)' for analysis. I think this is possible using WIN API functions, i tried to read using kernal32.dll but i am unable to complete the task effectively, since i dont have sufficient exposure to text oriented languages. Basically i need to read the memory as it is stored, just like stream of bytes. Could any one guide me how do i proceed inorder to get rid of this.
    thank you.

    Unfortunately no. You cannot mix both high and low level on the same screen. You'll probably have to draw it out yourself and capture user input, unless you're willing to use textboxes.
    Or.. i suppose you can try using customItems for all your "coloring" instead?

  • Export Error Win API error 2

    Hi, after a reasonably uneventfull couple of years with LR1.1 to LR 2.3,  I am confronted with an error along the lines of " an internal error occurred WIN 32 API error 2, the system cannot find the file specified when calling Shell Execute from AG Workspace"  This has me in a bit of a pickle as I have to get images to client sooner rather than later, all processed to certain criterea/presets from within LR2.3.
    Any idea's?
    Many Thanks
    PS, I also noticed that my anti virus, Bitdefender Total security 2009 picked up a Trojan Generic "Virus"! Could these issues be related?
    Nikon Gear, Win XP2000 , Dual Core Intel Processor, 4 Gb Ram, Nvidea Graphics

    Many thanks for your assistance Ian, really appreciated. My only concern is that LR 2.3 has been working pretty darn well, apart from the odd "speed" concern, but generally I have been more than happy. The export error was something that came out of left field, and caught me off gaurd. Do you feel that upgrading to 2.4 will solve the issue?
    Best wishes
    Nikon Gear, XP Professional, SP2, Intel Dual core, 4gb ram and Nvidea Graphics

  • How to create RAS phonebook entry using cmd or win API

    I could't find forum about Batch/cmd or API so I'll post here. Hope it's ok, it's C# related after all.
    I need to implement simple VPN client functionality in my C# application, and it is highly preferable not to use any third party libraries, like DotRas for example, which I find not efficient and well documented anyway. I can use DotRas, but the connection
    fails 9 of 10 times, because of some keys DotRas don't set correctly. I can connect using:
    rasdail entryname user pass /PHONEBOOK:mypath
    The problem is how to create an entry (the custom phone book here is nod needed and it don't concern my question, I can use the default as well), I even know what keys to use, so I can create it from string, but the problem is in those 4 keys:
    LowDateTime= HighDateTime= DialParamsUID= Guid=
    I vaguely know what're those for, but I can't find good explanation how they are created. Windows documentation says:
    LowDateTime= - This key is optional and if present MUST be ignored by RRAS HighDateTime=30428537 - This key is optional and if present MUST be ignored by RRAS DialParamsUID=2945250 - This key specifies
    a unique identifier (an 8-bit ASCII-encoded string representation of a decimal number) to be used on RRAS for use as a credential key for demand-dial connection. This key is optional. Guid= - This key specifies a unique identifier (GUID) for this RRAS entry.
    This key is optional.
    Those are all optional and even omitted according to Microsoft documentation, but when I change one of those the connection fails with error 800, which I don't have an idea why. I can obviously create the entry with DotRas and change some keys, assuming the
    problem is not in those flags, and I'm not so sure in this, or I can try to automate and hide the vpn creation GUI in windows, but both the ideas look very ugly to me...

    Hi Memeandme,
    Thank you for visiting the MSDN forum.
    I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C# programming language. In .Net Framework, there is no build-in method to help you implement
    this.  Now I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Need to call Win API from Java

    Can anyone direct me where to look for clues/answers?

    See http://jnative.sf.net
    I gived a sample of use of Win32 API in this thread : http://forum.java.sun.com/thread.jspa?threadID=704737
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                           

  • Hitmanpro finds-cookies.sqlite-shm ,marking it as SUSPICIOUS and more correctly it says "The file is hidden from win api. tipical of malware".Safe or not?

    HitmanPro marks the cookie as suspicious. If I set hitman to delete the cookie it says restart to delete and when I click on restart to delete it the pc crushes (BLUE SCREEN) . So yes to me this is quite suspicious!!!
    This happens only with the latest version of firefox (26) and never occurred before with the previous versions. So the question is - is this a tracking cookie id est a spyware? Or maybe it's just a false positive? Kasperky internet security 2014 and malwarebyte anti malware found nothing about this..

    Hi SuperTramp83, the SHM files are not cookies. In normal operation, they are working files used in the process of maintaining various databases.

  • Web services API call to join a user to a cost centre

    I can't find the call for this, does anyone know it please?
    thanks in advance.
    J

    This may be more complicated than you were hoping for, but here is how it can be done. The parts that write the xml attributes to the results log can be used to compare to your database or databank. I did not include code to do that here. You will need to reference the rswWait object in tools/references. Can't use win api for sleep because it will hang the process.
    Option Explicit
    Dim hDoc As MSXML.XMLHTTPRequest
    Private Sub RSWVBAPage_afterPlay()
    Set hDoc = New XMLHTTPRequest
    hDoc.open "get", "http://localhost/public/XMLStuff/blouisSample.xml", True
    hDoc.send
    checkState
    End Sub
    Private sub checkState()
    Dim xDoc As New DOMDocument
    Dim resText As String
    Dim ndList As IXMLDOMNode
    Dim attr As IXMLDOMAttribute
    Dim hangOn As New RSWWait.clsSleep 'cannot use winapi call here
    If hDoc.ReadyState <> 4 Then
      hangOn.wait (500) 'wait a half second
       checkState
    End If
    resText = hDoc.responseText
    xDoc.loadXML resText
    For Each ndList In xDoc.getElementsByTagName("product")
      For Each attr In ndList.Attributes
        RSWApp.WriteToLog attr.Text
      Next
    Next
    End Function
    I attached the script which will work against the xml you posted with some minor changes to the directory path in the vba.

  • Use WinInet API to Write FTP program

    I use call library function to call wininet.dll write a ftp program,but i got some problem about "ftpfindfirtfile" function,
    FtpFindFirstFile
    HINTERNET FtpFindFirstFile(
    IN HINTERNET hFtpSession,
    IN LPCSTR lpszSearchFile,
    OUT LPWIN32_FIND_DATA lpFindFileData,
    IN DWORD dwFlags,
    IN DWORD dwContext
    lpFindFileData
    Address of a WIN32_FIND_DATA structure that receives information about the found file or directory.
    typedef struct _WIN32_FIND_DATA { // wfd
    DWORD dwFileAttributes;
    FILETIME ftCreationTime;
    FILETIME ftLastAccessTime;
    FILETIME ftLastWriteTime;
    DWORD nFileSizeHigh;
    DWORD nFileSizeLow;
    DWORD dwReserved0;
    DWORD dwReserved1;
    TCHAR cFileName[ MAX_PATH ];
    TCHAR cAlternateFileName[ 14 ];
    } WIN32_FIND_DATA;
    i use cluster to describe WIN32_FIND_DATA structure,
    but the program crashed. my program attached below.
    Please give me a suggust.
    Thank you.
    Attachments:
    FTP_API.llb ‏209 KB

    Working on an FTP client in LV6 I ran in the exact same issue as Peter Pan. I came across this answer while looking for an answer to my problem.
    I agree that there must be a data mismatch, but I do not agree to all what Aaron is saying.
    1/ First of all, the function is expecting a pointer to the struct, what I think we're giving it. How can you else explain that functions like GetCursorPos work correctly? They also expect a pointer to the struct and what you're giving it is a "handle by value"!
    2/ If the strings are passed as a "handle to Labview strings" instead of C String Pointers then we're dealing not only with a shortcoming, but also something confusing: if you send in a normal string, outside of a cluster, it defaults to C Pointer String. Ok, I gues
    s because the list is alphabetically sorted?!
    3/ Indeed, one has to init a "buffer string" to accept the char data. I did this, with no luck.
    4/ What about the 3 embedded clusters? I could imagine LV has problems with that too...
    Well, up to now I did not find a "LV only" solution. And since I don't know C or C++ I'm not able to write a wrapper. I'm trying to keep the number of external DLL's down anyway. )
    I'm open for a discussion, so let me know.
    And to the NI gurus: the Win API is far too important to "neglect" its implementation. With plain old VB it's a snap, using very, very simple types ('clusters'), so I hope this functionally will be spoken about in new LV updates.
    Thanks for your time.
    Keep on smiling !
    David.

  • Wine with wglShareLists?

    Could someone make a PKGBUILD for wine with the patch provided on this page: http://opensimulator.org/wiki/RealXtend_Viewer_Linux

    punkrockguy318 wrote:Which works more effeciantly:  Wine with windows, or wine without windows?
    I have the latest wine installed.  I do not use the "Wine with Windows Installation".  I believe that part of the install script branch will just use some of your ".dll" and ".exe" files from the Windows partition.
    In my case, I just download the ".dll" files from http://www.dll-files.com/dllindex/index.shtml as I need them.  I set the debug environment variable when fine tuning apps, and it will spit out the ".dll" files it's looking for.  Then, I just download that ".dll" from that website and throw it in the "c:/windows/system" path.  It removes those warnings from the debug output next time I run that app.
    As far as efficiency, that question is a "catch 22".  When you use the actual ".dll" files and such from Windows itself, naturally, they should work more efficiently than a reverse engineered emulation lib.  However, you run the risk of breaking the Wine API by using the native Window ".dll" files.  So, breaking the Wine emulator for "efficiency" is hardly efficient.   But, even then, you can specify for each individual app whether or not to use native or built-in ".dll" files and such in your config file.
    The moral of that story is...keep a fresh Wine only installation, and tinker with adding native ".dll" files and such as you see fit.  Then, when it breaks, you can pinpoint the problem to using one specific file.  That's what I do and it gives me the flexibility/performance I need, and it's much simpler IMHO.

  • How to get string value from database table using Visual Studio 2005?

    Hi,
    Im developing plugin in illustrator cs3 using visual studio 2005. I need to get the values eneterd in database. Im able to get the integer values. But while getting string values it is returning empty value.
    Im using the below code to get the values from database table
    bool Table::Get(char* FieldName,int& FieldValue)
        try
            _variant_t  vtValue;
            vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
            FieldValue=vtValue.intVal;
        CATCHERRGET
        sprintf(m_ErrStr,"Success");
        return 1;
    Im using the below code to get the values.
    AIErr getProjects()
        char buf[5000];
        int i;   
        std::string  catName;
        ::CoInitialize(NULL);
        Database db;
        Table tbl;
        errno_t err;
        err = fopen(&file,"c:\\DBResult.txt","w");
        fprintf(file, "Before Connection Established\n");
        //MessageBox(NULL,CnnStr,"Connection String",0);
        if(!db.Open(g->username,g->password,CnnStr))
            db.GetErrorErrStr(ErrStr);
            fprintf(file,"Error: %s\n",ErrStr);
        fprintf(file, "After Connection Established\n");
    if(!db.Execute("select ProjectID,ProjectName from projectsample",tbl))
            db.GetErrorErrStr(ErrStr);
            fprintf(file,"Error: %s\n",ErrStr);
        int ProjectID;
        int UserID;
        int ProjectTitle;
        char ProjectName[ProjectNameSize];
        if(!tbl.ISEOF())
            tbl.MoveFirst();
        ProjectArrCnt=0;
        for(i=0;i<128;i++)
            buf[i]='\0';
            int j=0;
        while(!tbl.ISEOF())
            if(tbl.Get("ProjectID",ProjectID))
                fprintf(file,"Project ID: %d ",ProjectID);
                ProjectInfo[ProjectArrCnt].ProjectID = ProjectID;
                sprintf(buf,"%d",ProjectID);
                //MessageBox(NULL, buf,"f ID", 0);
                j++;
            else
                tbl.GetErrorErrStr(ErrStr);
                fprintf(file,"Error: %s\n",ErrStr);
                break;
            //if(tbl.Get("ProjectTitle",ProjectName))
            if(tbl.Get("ProjectName",ProjectName))
                MessageBox(NULL,"Inside","",0);
                fprintf(file,"ProjectTitle: %s\n",ProjectName);
                //catName=CategoryName;
                ProjectInfo[ProjectArrCnt].ProjectName=ProjectName;
                //sprintf(buf,"%s",ProjectName);
                MessageBox(NULL,(LPCSTR)ProjectName,"",0);
            else
                tbl.GetErrorErrStr(ErrStr);
                fprintf(file,"Error: %s\n",ErrStr);
                break;
            ProjectArrCnt++;
            //MessageBox(NULL, "While", "WIN API Test",0);
            tbl.MoveNext();
        //MessageBox(NULL, ProjectInfo[i].ProjectName.c_str(),"f Name", 0);
        ::CoUninitialize();
        //sprintf(buf,"%s",file);
        //MessageBox(NULL,buf,"File",0);
        fprintf(file, "Connection closed\n");
        fclose(file);
        for(i=0;i<ProjectArrCnt;i++)
            sprintf(buf,"%i",ProjectInfo[i].ProjectID);
            //MessageBox(NULL,buf,"Proj ID",0);
            //MessageBox(NULL,ProjectInfo[i].ProjectName.c_str(),"Project Name",0);
        return 0;
    In the above code im geeting project D which is an integer value. But not able to get the project name.
    Please some one guide me.

    As I said in the other thread, this really isn't the place to ask questions about a database API unrelated to the Illustrator SDK. You're far more like to find people familliar with your problem on a forum that is dedicated to answering those kinds of questions instead.

  • Crystal Report (RDC) doesn't print correctly, after Printer change ?

    There are problems with the page format and the color settings for the new printer !
    It should be resolved with ADAPT01104291 FixPack3.8
    Description: Crystal reports may not print properly after users change printers by using the SelectPrinter command from the Report Designer Component (RDC). The cause of the problem is that the incorrect DEVMODE structure size is allocated to the print job.
    We are using CRXI_R2_SP5_Upgrade: ProductID=11.5.11.1470.2.26.Patch
    but we still have the problems !

    Hello Don, thank you for your extensive answer. The PCL printer of HP is not the trouble maker. The problem is obviously replicable with any other Printer Driver (Espon/Sharp/Kycocera a. s. o.)  I only installed this PCL Printer Driver of course you mentioned it in your example before.
    Okay, let's talk about the Devcap-Program and there Information about the paper source of a printer. Even in Visual Basic it's possible to get those Information by Win-API-Call's. Here they are:
    PrinterID: , AusgabeName: , TreiberName: , Port: LPT1:, TrackDefault: , PaperSize:
    Papier-Schächte:
    Automatisch auswählen, Nr: 15
    Automatische Druckeraus, Nr: 262
    Schacht 1, Nr: 261
    Schacht 2, Nr: 260
    Schacht 3, Nr: 259
    Schacht 4 (2000-Blatt), Nr: 258
    Manueller Einzug (Schac, Nr: 257
    Papier-Formate:
    Letter, Nr: 1
    Legal, Nr: 5
    Statement, Nr: 6
    Executive, Nr: 7
    A3, Nr: 8
    A4, Nr: 9
    A5, Nr: 11
    B4 (JIS), Nr: 12
    B5 (JIS), Nr: 13
    11x17, Nr: 17
    Umschlag 10, Nr: 20
    Umschlag DL, Nr: 27
    Umschlag C5, Nr: 28
    Umschlag B5, Nr: 34
    Umschlag Monarch, Nr: 37
    Jap. Doppelpostkarte gedreht, Nr: 82
    12x18, Nr: 131
    9x12, Nr: 132
    C4, Nr: 133
    Maximum 11,7 x 17,7, Nr: 134
    and even set those Information for the RDC-Sturcture, so there is a solution for the setting of the paper size.
    But there is not solution for the setting of the color nor the further page settings (Printing onesided or bothsided a.s.o.)
    I can change the default windows printer settings but that has no effect on the RDC-Print !  So I think, there must be a solution by the Crystal-Report-Design-printing-DLL (craxdrt.dll) !
    Greetings V. Hölscher

  • Windows 8.1 Camera

    I am writing a program that opens up a camera feed to display within an OpenGL window. Using DirectShow this works no problem.
    However, I need to access the Built-In Front&Rear camera on a Microsoft Surface Tablet with this program. I can access these correctly IF the Windows Camera App is running else the feed doesn't connect (because i'm guessing the camera is off), but I
    would like to be able to "Activate" the camera within my own code and simply pull the stream with DirectShow, skipping having to run a separate windows app to simply turn the camera on!
    Is there a Win API call etc that simply turns the Camera On/Off? 
    I have looked EVERYWHERE! But cannot seem to find anything, just falling down an infinite rabbit hole of Windows App SDK and I don't feel this is necessary to achieve a simple on/off switch....
    Thanks!

    Hello.
    There are some webcam enhancements and updates through the Lenovo Settings Dependency package that is required for the ModernUI Lenovo Settings app, which provides additional controls for the webcam, do you have that installed?
    Lenovo Settings @ Windows Store
    Lenovo Settings Dependency Package
    If that doesn't work, you can try opening up Control Panel -> Device Manager -> Right click your Integrated Camera in the Imaging Devices category, select uninstall and check delete drivers in the next dialog window. Then reboot the machine, allowing Windows to install the default Windows drivers for the camera, but this method has worked for many different machines.
    Hope this helps.
    ThinkPad W540 (20BG) - i7-4800MQ/24GB // ThinkPad T440s (20AQ) - i7-4600U/12GB
    ThinkPad T440p (20AW) - i7-4800MQ/16GB // ThinkPad Helix (3698-6EU) - i5-3337U/4GB
    ThinkPad W520 (4282-W4Q) - i7-2720QM/32GB // ThinkPad T400 (2767-W1C) - P9500/8GB
    ThinkPad T61 (7665-CTO) - T7700/4GB // ThinkPad T60p (8741-C2G) - T7400/4GB

  • Opening an application

    I understand that i can open an application (e.g. WINWORD.EXE) using the Runtime class. I was wondering how we could open a particular file that belongs to the application (e.g. test.doc).
    The reason i wish to know is because, i have a labview VI that i want to detect whether it is open or not. I need to detect this because, if the VI ceases to be open, another java application i have written calls a pager. I looked in to this and the options available were to use Win API to keep track of windows event list or to use JNI. Both the options seem a bit complicated for now. Therefore i wish to open the labview file using a java application that will use threading to keep track of its activity.
    Thanks in advance.

    To open the file "test.doc" wou wold run the command "Winword.exe test.doc"
    To tell what command to run for each filetype, so Start->Run... and type "regedit"
    open "HKEY_CLASSES_ROOT" and look for your extension (eg ".doc") and select it.
    Note down what it says after "(Default)", in this case "Word.Document.8"
    Look for "Word.Document.8" under HKEY_CLASSES_ROOT and open it.
    Then open "shell", "open" and select "command"
    Note down what it says after "(Default)", replacing "%1" with your filename.
    This is the command you have to run.
    Doing all this registry stuff from java is most likely impossible as it is windows-specific, and java is platform-inspecific. You can do it in any platform-specific language, like VB and C++.

Maybe you are looking for

  • Writing a file to a remote location (not KM) using WD

    Hello everyone. I've encountred a scenario in which I need to upload an excel file to a km file and also load it into the sap system. I've managed to upload the file to the KM Server, but not I have a new problem: The abap function that loads the exc

  • How to include BW Web Templates in a BSP ?

    Hi guys, I am new to BSP stuff.  Can anybody throw some light on how to include a BW Web Template in a BSP application?  Any documentation available in this direction?  Thanks in advance. Cheers, Ramana.

  • Inter company &Intra company Buss process

    Hi! Can any one tell what are the different transactions that can take place in Inter co mp and Intra comp buss. process. Thanks

  • Subscriptions to shared components

    Suppose I create a "master application" that to house my look and feel (themes and templates) and named LOVs. 1. If I create another application using the "based on existing application" and choose to copy everything (lovs, navbar, auth schemes), I t

  • [SOLVED] My /home and /boot partition show on my desktop; not mounted

    I'm guessing these two fie systems aren't mounted  and the computer is seeing them as separate volumes? So I guess I made a mistake during the install. This kind of explains a few things because when updating my kernel GRUB wasn't being updated as if