Access to Windows API

Hi,
Is there any way to access windows APIs through flex code for performing certain operating system activities and control desktop? We have an AIR application that we need to dock on top of desktop area. The docking can be on top or bottom or left or right side of the desktop window. Thanks.

Hi,
Please check out the URL below.
http://livedocs.adobe.com/flex/3/langref/flash/display/Screen.html
Hope this helps.

Similar Messages

  • Accessing the Windows API

    All,
    We're trying to wrap the windows API PostMessageA method using a Forte
    C Project library.
    I would like to have some detailed discussions with anybody who has done
    this or wrapped other
    windows API calls.
    We've worked around this by creating a C DLL which provides an
    interface to PostMessageA,
    but the better solution is to call the API directly.
    Thank you for your help,
    Keith Kroeger

    Yes, we tried this, $top=10&$skip=0 works for the following url
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$top=10&$skip=0
    It is only when we add $expand=VirtualNetworkAdapters,
    the server returns the mentioned error response - 
    URL for which the server returns the 500 error -
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10&$skip=0
    Can
    you point to the error logs for Windows Azure Pack and SPF ?

  • Accessing the photoshop api from flash.. within a photoshop window?

    I should maybe ask this in scripting.. but it's some ways related to the SDK. I dont want to crosspost.. if the feature exist, it's very likely that SDK developpers are aware of this (ps: i havent downloaded the sdk since the beta)
    I had the opportunity to show a bit our project to Mike Downey from Adobe at FITC/Toronto as it's related in some way to Apollo. We use realbasic for this application (flash/html/css/javascript) and we also use Realbasic, even with all the imperfections the software has, to create visual tools to call some Applescript.
    That's how i implemented the fake palette i mentionned here or in scripting forum. To me, there was a huge benefit compared to implementing a dialog with the SDK (wich doesnt support developping a palette anyway).
    What i would be really happy to see is an integration like it has been done with jsfl in flash (extensibility). Kind of a way for us to really have a common language for intranet, production tools and final release (web or cd). (leverage the skills like Adobe say to sell Apollo)
    So in extensibility in case some of you are not aware of the feature, you can create a window that has a flash content in it and there is a mecanism to call the javascript api of flash (authoring environnement). By exemple, you can have a window in flash authoring environnement that behave like other windows (ie. dockable and all)... that has a flash interface and communicated with a database.. so you can have a script that connect to a database and then create shapes in the authoring environnement... It's a very great tool for integrated production environnement..
    So, Mike Downey mentionned to me that i was present in CS3!? (when i told him that i would have been great to have Apollo/Flash being able to access the Photoshop Api) Is it true? Where is it documented? I remember seing it mentioned in the SDK survey... Or maybe it's just possible to do it via external command..so it's not integrated in a window of photoshop)?
    Sorry if it's not clear... but i would be really happy to hear more about that... It would be great to have this even if it's not Applescript compatible (i could use xml tools in the api of flash)...

    Well.. i finally have found the feature in the sample folder of javascript scripting of cs3. You really can have a flash interface to call you scripts.
    That will be a HUGE improvement for javascript scripter and i would not be surprised that it will encourage people to develop more tools.
    The big minus for me, unless it's something i havent found yet, it looks like the dialog is only available from calling the script.. so the dialog is modal... really not as cool as Flash extensibility integration, but that's a start. :(
    I repost this on Scripting forum as i now know it's related to scripting...
    I still have hope for something more advanced... the "KnowHow" thing (wich i havent tried yet) http://labs.adobe.com/technologies/knowhow/) is really a good exemple of palette/feature integration that i wish was possible in photoshop...

  • Ssd access freeze windows 7/8

    i had corsair force 128GB on my macbook pro. i installed mac os and windows 7 as bootcamp. i had no problem except disk space. i bought neutron 256gb. i have problems on windows 7. it is like it freeze on disk access. so windows 7 is so slow. i wait for seconds to open a windows. mac os works well like on corsair force. i have also parallels. i can run the same windows 7 in parallels well. it is fast. i installed the latest bootcamp drivers. now i upgraded window 7 to window 8: i have the same problem. what can i do?

    i have  an activex dll.
    Allow me to explain the whole picture here, I have an API developed for Windows environment that integrates with a third-party camera drivers, of which I have a 32 bit version and a 64 bit version... both work well on desktop environments without any problem.
    Recently, I was asked to export my API for web access so that people can integrate my API with their web pages just like they do on desktop applications to call my camera, basically a Web API
    I'm no expert in web so I did my research, and with the limited information I have, I found a way to expose my API by registering the assembly of an exposed dll that I created using the .Net regasm tool. This worked fine on 32 bit machines with one setback:
    I had to Enable the "Initialize and script ActiveX controls not marked as safe for scripting" from IE options, but now when I tried to do the same thing on a 64 bit machine, it didn't work. I used the 64 bit regasm tool this time just like I'm suppose
    to do, and I was able to register successfully using the same command "regasm mydll.dll /register /codebase /tlb" 
    Now when I try to initiate the call to my API through JavaScript such as
    var myAx = new ActiveXObject("MyAPI.WebInterface");
    I keep getting the error message "Automation server can't create object" even though my settings are the same as the 32 bit machine and I used the 64 bit IE here. I tried using my 32 bit version of the API on the 64 bit machine after registering it
    correctly of course, and I managed to get passed that point, but my 32 bit API cannot call the 64 bit camera driver, so it wont do for this case.
    Is there any specific command I need to add in order to register correctly on 64 bit machines? Is this the right way to expose my API for web use?? and is there a way I can support all browsers at the same time, noting that this only works on IE?? please advice

  • How to get IPv6 site prefix via Windows API?

    Hello,
    we need urgent help. We have to automatically configure a postgres sql server. For this reason we need to determine the IPv6 site prefix. Using windows command line this is pretty easy:
    netsh interface ipv6 show siteprefix
    We are only interested in the site prefixes themselves, e.g. no lease time is needed. We want to get this information via Windows API.
    For this purpose we use GetAdaptersAddresses function. Within the result of
    FirstPrefix the needed information is included. But it's much to much information and it's not clear for us how to filter the result. We need always
    exact the same result like the command above produces.
    Any help or hint would be very very appreciated.
    Greg

    Hi Valery,
    I mean a Portal Resource..
    Inside portal, when a go to properties  of a specific document, in tab "Access Link" it shows a "Short Id".
    I'd like to know via API how to get this Id, or any other Code that it's unique for every resource or document in portal.
    Thank you!

  • Linking two programs via Windows API

    I am writing a program to enhance the usability of an already written program. Someone suggested that I interface the two via the windows API: The program I would like to add functionality to was not written in java and I do not have access to the source code. What was suggested to me was that I track down the handles for the buttons on the program (the buttons being the only important features I need access to) and connect that way.
    This seemed like a good idea....except I have no idea what this guy was talking about! Can someone explain this to me or at least point me in the right direction?
    Thank you very much,
    Plastech

    So how would I find out how to access the buttons
    found in the other application? What is all this
    talk of handles? I am really not very familiar with
    the windows api.Neither am I. After all, this is a Java board.
    And how is it possible that I could access those
    handles from a different program?The "different program" needs to allow you to access them, of course, by offering the appropriate interface.

  • I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Liv

    I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure. " when I sign in again there is no change. in English
    == URL of affected sites ==
    http://http://sn135w.snt135.mail.live.com/default.aspx?n=2087215863
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

  • How to refresh the text which is display by windows API function 'findwindow' 'getdc' 'textout'!

    i use the windows api function to dynamelly display text on the frontpanel ,it successed ,but when you move the scrollbar to the left ,right ,top ,bottom,the text will be disappear!! i think it is a very difficulteed problem .in my around ,no one can do! who can help me!
    Attachments:
    textrefresh.vi ‏21 KB
    auto_appear_scroll.vi ‏126 KB

    Very cool!
    It looks like you are using the same functions that LV uses to refresh the screen. Thos functions only let you update within the window you specify. This is why your updates stop at teh edge of the window.
    Normally LV will watch the scroll bar position and re-paint the screen to reflect an scroll bar postion changes. Since you are by-passing LV, you can not rely on LV to refresh your screen when the scroll bars move.
    At this point I can offer two suggestions.
    1) Continue with the approach you started and start adding all of the code required to watch the scroll bars and re-paint as indicated.
    or
    2) Look into the LV Picture control. Based on what you have done using dll calls I would guess that you could probably figure how to do the
    same thing using a picture control. The Picture (being a LV native object) is fully supported by LV so the scrolling work is already done and working. The picture control will let you draw lines, insert text, etc. Take a look at the "Robot Arm" example. It should get you started.
    Finally, the Picture control is pure "G" so it should be platform independent.
    Otherwise let me commend you on your example. You say no one else where you are can do what you have done. After looking at your example, I am not suprised. There are few people in the world that can do what you have done.
    Great work!
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I disable remote access connection window ?

    When I try to connect (via TCP/IP) with a VI in another PC (in my local network) it appears the remote access connection window.
    How can I disable this (programmatically if possible) ?
    A big thanks for your answers.
    Linus

    Randy,
    attached the image of the Remote Access Connection Window that appears when I connect to the VI.
    It is the Operating System (Windows) classical panel for Remote Access connections using a modem.
    Many thanks.
    Linus
    Attachments:
    Remote_Access.jpg ‏22 KB

  • How can I disable the access to windows 2000(O.S.) from LabView?

    I need to disable the access to windows when an application (exe), created by LabView, is running. When the application is running, the user can not acces to windows (for example, execute another application) until he stops the application.
    I am using LabView 6.1 and windows 2000
    Many Thanks

    Hi Francesc,
    There are a couple of options for this. One of them could be calling Windows OS activex components and making the Desktop invisible through labVIEW and then bringing it back on after the LabVIEW execution is stopped.
    The other option is to modify user settings on the target machine. I have tried this on windows 2000 and it works.
    Run "gpedit.msc" from your start menu. In the Group Policy template choose the user configuration that you wish to make the settings for. Expand User Configuration , expand Administrative Templates , and then expand System. Choose 'Custom user interface'
    In this panel select 'Enabled' and enter the interface file name, in this case C:\Program Files\National Instruments\Labview 6.1.exe. (or your own filepath\App
    lication.exe). Reboot the machine.
    This replaces the default windows shell (explorer.exe) with your LabVIEW executable. When the operator logs on, the only thing on his screen is the Labview application. No desktop, no taskbar, no start button.
    This can also be done through LabVIEW using register-level programming. But it would be a more complex approach.
    Hope this helps.
    Regards,
    Pravin Borade
    Applications Engineer, National Instruments

  • How can I access the window so I can download to adobe and run the file rather than save it

    By mistake I put a check mark in the window box to save my downloads to documents. I want to send them directly to adobe so they can be seen. How do I access this window?

    hello, you can change that setting in firefox/tools > options > applications - there you can define the default action for the file-type in question (that will probably be '''portable document format (pdf)''' in your case).
    [[View PDF files in Firefox without downloading them]]
    [[Set how Firefox handles different types of files]]

  • LV memory leak - How to use windows API SetProcessWorkingSetSize (from Kernel32.dll)

    Hi fellow LV'ers
    Okay - this is a bit tricky, but i'll try and explain the problem, then ask for the solution, because it may be that someone knows a better way to deal with this.. might get a bit long, sorry - if a solution comes up this will enable all of us to make more memory efficient LV code so please read on..
    Here is the deal:
    When building even a very simple LV executable, looking at the windows task manager will yield a rather large amount of memory allocated for such a small program - and the only way to free this up is by physically clicking the windows minimize button, then suddenly the amount drops to only a few MB and upon maximizing the window again the memory consumption will increase somewhat again, but for a simple VI build to an exe this move may change the consumption from +70MB to less than 15 MB.. This is irregardless of the code you put in the VI, so no coding example in this post as it is how LV works - you can even test it with the development environment - look at the task mgr and check LabVIEW's memory consumption, minimze ALL open NI windows incl project explorer etc, and you will see a significant decrease in memory usage even after maximizing again.. This has annoyed me since day one, but since RAM is a near zero cost these days it is not something I stay awake at night to think about.. However - I have moved into the "publish to web" tools now, wanting to do a remote monitoring part for my application for my customers to experience increased usability from the software i sell them..
    All is well, publishing is really easy (i use the monitor function, NOT the embeded, as customers need not have Labview RunTimeEngine installed, because they might look at it from a non RTE supported platform such as a mobilephone web browser)
    Everything is working fine also for the build application. However - I have noticed that once users start to remote monitor the running application - memory consumption of the running LV application starts to increase - and it keeps doing so - to such an extend that you can drain the computer complete and run off the cliff with a windows error... This is off course not very productive for me, being specialized in measurement applications that usually runs for a long period of time - I initially thought that I had done some poor programming in the VI used to display on the webpage - but it turns out that I can reproduce this behaviour with a simple boolean on an empty front panel..
    NI support has been informed, and they admit there is a problem, but so far solutions from them has been a bit too exotic for my taste, and thus I'm seeking the help of fellow LV programmers...
    You see - The method to solve the increasing memory consumption, is the exact same as mentioned above..minimize the application running with the "minimize" button and all memory will be freed, as soon as you maximize the application and users are viewing it remotely, the memory usage raises again, and history repeats... As previously mentioned, minimizing the window via normal LV calls to property nodes does not yield the same result, nor does a request deallocation of a VI(When you profile a project, there are no VI's increasing in memory, it is the LV process it self doing it) 
    After many many hours googling I stumbled upon this:
    http://support.microsoft.com/?kbid=293215
    I believe trimming the process with SetProcessWorkingSetSize would solve this problem, and now I would really like to be able to do this in my program, so that users are not forced to minimize the program every X hour depending on their system size...
    However - I have absolutely NO experience in calling windows API from LV, i need someone with that knowledge to provide an example of how to call this.. I've looked at examples on how to do calls to windows API - there is an example in this forum with some llb's in it, and I have gained a fair understanding of how parameters are passed between the calls, but none of those include the "hProcess" handle that is apparently needed for this specific winAPI call to work - Anyone in this forum with the knowledge on how to obtain this handle from a VI, if at all possible, and could provide an example VI for me to use - or even better , someone with the knowledge of how to do this within LV it self??
    Your help is much appreciated
    Best Regards
    Jacob
    LV8.6.1 patch something
    Win XP 
    Solved!
    Go to Solution.

    Hi Enrico
    Finally I can give something to the community that has given me so much  :-)
    The "official" statement is that "yes we know it is a problem".. Not sure what that will do to the future.. 
    I have the problem on 8.6.1 as well  - and in fact it is a general LV problem, that I first time reported to NI with LV8.2 as I was pissed by the fact that even the smallest exe file would consume + 50MB of memory until you manually minimized the window. Well - thanks to the feedback from Cosmin I seem to have solved the problem.
    I most warn that having started to "empty process" once in a while has led to occasional program crashes in the lethal "app.exe performed an illegal action and is closed" windows dialog - however what I did was to move the webserver to a seperate exe file and then communicate the data that I want to use via datasocket in a cluster.. It works like a charm and I simply stall the single thread that the webserver is running when ever the empty process is called and I have not seen a crash since then.. (the initial implementation was done in the main app with 4 parallel loops running, and I guess that was a disaster waiting to happen)
    Either way - what I have done is made a VI that at a user defined interval calls the empty process, simply by getting the .exe name from the task manager of the calling program - it is simple and very effective. I call it every 5 minutes - needless to say that flushing too often will most likely kill performance of the system. I have not noticed problems with VM - are you sure you are not storing large arrays or moving around copies of data not used frequently?
    For future reference to this forum, it is attached here including the .dll required to call - it is a LV8.6.1 file as I have not had the time to yet again test every single function of my program for new problems that could occur with upgrading to LV2009 
    I hope this solves your problem..
    best regards
    Jacob
    www.10EaZy.com 
    Attachments:
    EmptyProcess.zip ‏32 KB

  • Operations Manager Failed to Access the Windows Event Log and management server is showing warning state

    Hi,
    I am monitoring AD server from SCOM 2012 R2. My management server goes into waning state. When i run Health explorer then it come back in the healthy state but after some time it again goes into warning state. After seeing alert i found that a alert is coming
    again and again i.e.  Operations Manager Failed to Access the Windows Event Log.The description of alert is mention below
    The Windows Event Log Provider is still unable to open the DhcpAdminEvents event log on computer 'nc2vws12ad5.corp.nathcorp.com'.
    The Provider has been unable to open the DhcpAdminEvents event log for 64080 seconds.
    Most recent error details: The RPC server is unavailable.
    Please suggest me how to resolve this so that my management server will again come back in healthy state.
    Thanks
    Abhishek

    Hi Abhishek,
    As i mentioned earlier the Alert resolution says the same points.
    Can you give details on the below ?
    Is there really a log named "Dhcpadminevents" in the MS's Event viewer ?
    Did you recently configure any new alert where you mentioned "Dhcpadminevents"
    as a event log location ?
    If yes then what is the target you selected for the rule / monitor there ?
    Can you post the results for analysis ?
    Gautam.75801

  • Connecting to MS Access In Windows 7 64-Bit

    Hi.
    As usual, Microsoft has done its best to make this as difficult as possible. The essence of a solution to this problem that I found at http://sushantnayak.wordpress.com/2010/10/25/connect-ms-access-using-jdbc-odbc-in-windows-7-64-bit/ is as follows:
    1. Download and run AccessDatabaseEngine_x64.exe
    (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c06b8369-60dd-4b64-a44b-84b371ede16d&displaylang=en)
    2. Change the connection string in your code to:
    Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ= <-db name and path here
    Though the author of the tip had used VB to make the connection, it looked as though the same technique should work with Java. However, I found that the attempted connection kept generating an SQLException. The code that I tried to run is shown below.
    import java.sql.*;
    public class JDBCTest2
    public static void main(String[] args)
    Connection connection = null;
    Statement statement = null;
    ResultSet results = null;
    String fileName = "F:\\Temp\\Finances.mdb";
    I also tried the following (with different fields below):
    String fileName = "F:\\Temp\\ExamResults.accdb";
    String dbString =
    "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="
    + fileName + ";DriverID=22;READONLY=false}";
    //I also tried the above without ';DriverID=22;READONLY=false', but the
    //result was exactly the same.
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connection = DriverManager.getConnection(dbString, "", "");
    catch (ClassNotFoundException cnfEx)
    System.out.println("* Unable to load driver! *");
    System.exit(1);
    catch (SQLException sqlEx)
    System.out.println("* Cannot connect to database! *");
    //The above message was displayed.
    System.exit(1);
    try
    statement = connection.createStatement();
    results = statement.executeQuery("SELECT * FROM Accounts");
    catch (SQLException sqlEx)
    System.out.println("* Cannot execute query! *");
    System.exit(1);
    try
    while(results.next())
    System.out.println("Account no. " + results.getInt(1));
    System.out.println("Account holder: " + results.getString(3)
    + " " + results.getString(2));
    System.out.printf("Balance: %.2f %n%n",results.getFloat(4));
    catch (SQLException sqlEx)
    System.out.println("* Error retrieving data! *");
    System.exit(1);
    Any help in solving this problem would be most appreciated.
    Thanks.
    Jan ('Yan')

    I believe that my problem may be due to using a 32-bit Access database, rather than a 64-bit one. I am fully aware of how to use c:\windows\syswow64\odbcad32.exe to get round the problem of setting up the required ODBC data source, and that is what I shall be making use of for at least the next year, as I have just been informed that it will be the 32-bit version of MS Access (with Windows 7) that will be used at my institution for the coming academic session. (I lecture at a university.)
    As a consequence of the above, it turns out that I don't really have a problem for the foreseeable future. However, I would like to know (for personal satisfaction, if nothing else) whether the test program would work if it were used with a 64-bit Access database. Unfortunately, it looks as though I won't have the use of a 64-bit version of Access. Consequently, I would be most grateful if anybody out there could try out my test program with 64-bit Access. Obviously, the appropriate database would need to be set up (or an existing one used and the name/path changed accordingly), but the fields wouldn't even have to be set up to match mine. As long as the program gets past the 'Cannot connect to database error message', I'll be happy.
    Thanks.
    Jan

  • I have a mac mini server which I want to set up for remote access from windows and mac pcs.  How do I do this.  I can access it form my home network OK

    I have a mac mini server which I want to set up for remote access from windows and mac pcs.  How do I do this.  I can access it form my home network OK

    Posted in error.

Maybe you are looking for

  • Find a character in a string

    How will you locate a specific character inside a string? Thanks in advance!!!

  • Assigning of authorization object to authorization group

    I have created an authorization object and I have assigned this to already exsiting authorization group.I would like to assign the authorization object to a new  authorization group.Please confirm how to create an authorizaton group and assigning a a

  • HT4972 i have upgraded my iPhone 3GS from 4.1 to 06.1.2 , but it is not upgrading. how to solve this ?

    i have upgraded my iPhone 3GS from 4.1 to 06.1.2 , but it is not upgrading. how to solve this ? it was a jailbreak phone , but recently my applications stopped working therefore i tried to upgrade but in the end my fon is saying can not activate, bec

  • Non writable temporary folder OSXserver

    I have full admin access to a mini server OSX10.7 yet unable to unzip a file due to the temp folder being unavailable. Ideas anyone how why this folder behaviour occurs? File sharing with other users is ON for this machine, FileMakerServer is running

  • No sound from logic pro x

    Hi, I am not getting any sound on my macbook pro either from a live instrument or a midi keyboard on logic, despite: getting sound on other applications, the channel strip showing it's receiving sound but not the master channel strip on the editing p