In rc.conf, how to specify a parameter with a white space in it?

I'm setting up the wireless network. In rc.conf:
wlan_wlan0="wlan0 essid myessid key mykey"
myessid in my case is something like "ABC DE", I've tried many ways, but it seems all archlinux is doing is to simply split that string with white space characters as deliminaters.
Can any one tell me how to write the correct script in my case? Thank you.

I think this is not possible.
/etc/rc.d/network
wi_up()
eval iwcfg="\$wlan_${1}"
[ "$iwcfg" = "" ] && return 0
/usr/sbin/iwconfig $iwcfg
iwcfg is used unquoted and thus subject to field splitting. The standard doesn't seem to provide any way to switch it off from inside the string being splitted.
Last edited by diegonc (2010-07-09 21:25:16)

Similar Messages

  • How to integrate Note Service with the webservice space?

    Hi
    Can anyone please guide me how to integrate *"Note Service"* with the webcenter spaces. I need to implement "Personal Note" in my webcenter space application. Please can anyone give me article showing step by step procedure to implemennt note service with webcenter spaces or some sample examples.
    Regards
    Raj

    Hi
    Already i have seen this document, here they did not mention how to get the "Note TaskFlow" in resource catalog. In Resource catalog I didn't find any component named "Note TaskFlow".
    To make it visible in resource catalog. What should I do?
    To integrate Webcenter Services(link, mail, notes, etc..) with webcenter spaces, what do i need to do? Itseems all services are in the form of taskflows. How can i make it enable and to bring it in resource catelog?
    Regards
    Raj

  • RMAN9I HOW TO RESTORE ARCHIVE LOGS WITH LIMITED DISK SPACE

    제품 : RMAN
    작성날짜 : 2002-12-09
    RMAN9I HOW TO RESTORE ARCHIVE LOGS WITH LIMITED DISK SPACE
    ==========================================================
    PURPOSE
    이 자료는 Oracle 9.2 이상의 RMAN에서 사용 가능한 MAXSIZE 기능에 대하여
    설명할 것이다.
    How to restore archive logs with limited disk space
    Old Backup을 사용하여 RMAN으로 database를 recvoery할때, 모든 archived
    redo logfile들을 Restore할 destination의 disk space가 모자란 경우를 종종 만난다.
    이러한 경우 여러 개의 restore and recovery job으로 나누어 수행한다.
    즉, 첫 번째 restore and recovery job이 끝나면 archived redo logfile들을 지우고
    다음 적용될 것들을 restore한다. 그리고 다시 Recovery를 수행한다. 이러한 작업을
    원하는 시점까지 recovery를 하기위해 반복적으로 수행한다.
    Oracle 9iR2(9.2.0.x)부터 RMAN은 MAXSIZE option을 제공하는데 이것은 archive log
    file이 restore될 disk의 space를 control할 수 있게 해 준다.
    만약 disk space가 매우 제한적이라면, 즉 예를 들어 모든 archive log의 size 합보다
    disk free space가 적다면 MAXSIZE option을 사용하는 것은 매우 유용하다.
    이 OPTION이 기술되면 RMAN은 Media Manager에게 disk space 크기에 부합하는 만큼만
    archive log들을 restore하도록 한다. 부가적인 restore operation들은 restore된
    마지막 archive log가 적용될 때마다 발생한다.
    MAXSIZE option은 이러한 작업들을 하나의 rman job으로 처리하게 해 주고
    실수를 하지 않게 해 준다.
    아래는 MAXSIZE를 설명하기 위한 예제이며 총 6 단계로 구성되어 있다.
    STEP 1: Add data to the database to enforce log switches
    STEP 2: Backup the database and archive logs and delete the logs
    STEP 3: Add additional data to enforce new log switches
    STEP 4: Remove the data file and simulate a database crash
    STEP 5: Restore the data file from the backup
    STEP 6: Recover the database using MAXSIZE
    위 예제는 Unix와 Windows 모두에 적용될 수 있다.
    STEP 6 는 다음과 같은 조건으로 두 번 수행될 것이다.
    1) MAXSIZE가 archive log size보다 작은 경우:
    이 경우 RMAN-6558 Error message를 만나게 된다.
    그러므로 MAXSIZE를 archive log보다는 크게 설정해야한다.
    2) MAXSIZE가 archive log size보다 큰 경우:
    예를 들어 여러 개의 archive log를 포함할 수 있을 정도로 크게 설정하면
    restore/recovery는 user에게 transparent하게 수행되어진다.
    즉 archive log들은 restore된 후 applied되고 deleted되어 진다. 다시 새로운
    archive log들이 restore되어지고 applied된 후 deleted 되어 진다. 이러한 작업은
    recovery가 끝날 때까지 반복되어진다. 이러한 작업들이 진행되는 동안 RMAN은
    아무런 Message도 발생시키지 않는다.
    # Step 1: INSERT enough new data to generate log switches
    create table rman_tst (col1 varchar2 (10));
    begin
    for i in 1..30000 loop
    insert into rman_tst values(i,'test');
    commit;
    end loop;
    end;
    # Step 2: BACKUP the database and the archive logs automatically
    # and then delete the input
    run {
    backup database format='/web01/usupport/krosenme/admin/backups/db_%d%s%t'
    plus archivelog format='/web01/usupport/krosenme/admin/backups/arch_%d%s%t'
    delete input;
    # Step 3: INSERT enough new data to generate new log switches
    begin
    for i in 1..30000 loop
    insert into rman_tst values(i,'test');
    commit;
    end loop;
    end;
    # Step 4: REMOVE users01.dbf file and crash the database
    mv users01.dbf users01.org
    shutdown abort
    # Restore is now needed as the data file is deleted. The backup was
    # taken before the new data was added to it, thus archive logs are
    # needed to bring the database up to date
    # Step 5: RESTORE the data file from the full backup
    run {
    restore datafile '/web01/usupport/krosenme/oradata/kro_920/users01.dbf';
    # Step 6: RECOVER
    run {
    recover database delete archivelog maxsize 10 K;
    # This will fail with RMAN-6558 as the archived log has a size of 16 KB,
    # which is bigger than MAXSIZE limit of 10 KB. So the error is expected
    # and MAXSIZE works as designed.
    # Now rerunning STEP 6: but with MAXSIZE 50 K
    run {
    recover database delete archivelog maxsize 50 K;
    RELATED DOCUMENTS
    Recovery Manager Reference, Release 2 (9.2)

    cold backup means offline backup, you shut database normally and copy datafiles to another location.
    i think operating system does not matter that much but it is RedHat Linux Enterprise Server.
    backing up archivelogs whith rman script which is:
    run {
    allocate channel c1 type disk format '$BKUPLOC/arch_%d_%u_%s_%p.bkp';
    change archivelog all validate;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    backup archivelog time between 'SYSDATE - (30*60/(60*60*24))' and 'sysdate';
    release channel c1;
    so here is the details.
    1. because everything is lost, we restored all files(datafiles, controlfiles, redologs etc) from offline backup meaning copied all files from another location to corresponding location.
    2. want to apply archive logs which were created after cold backup till disk failure and we have these archive logs with backups which were taken by rman.
    So
    first of all, we want to register these archive log rman backups(because these backup information does not exist in restored controlfile)
    and then restore them and then apply them.
    we need rman commands to register these backups and restore them.
    Regards,
    Kamil

  • How to create a Parameter with LOV

    Hello All,
    I am having the follwoing custom query.
    SELECT concatenated_segments, (SUM(PERIOD_NET_DR)-SUM(PERIOD_NET_CR)) MOVEMENT
    FROM gl_balances a, gl_code_combinations_kfv b
    where period_name='Apr-08'
    and a.code_combination_id = b.code_combination_id
    and set_of_books_id=1010
    and currency_code='USD'
    gROUP BY concatenated_Segments
    HAVING (SUM(PERIOD_NET_DR)-SUM(PERIOD_NET_CR))<>0.
    Instead of hard coding the values I have created the custom folder
    with the follwoing query.
    SELECT concatenated_segments, (SUM(PERIOD_NET_DR)-SUM(PERIOD_NET_CR)) MOVEMENT
    FROM gl_balances a, gl_code_combinations_kfv b
    where a.code_combination_id = b.code_combination_id
    gROUP BY concatenated_Segments
    HAVING (SUM(PERIOD_NET_DR)-SUM(PERIOD_NET_CR))<>0.
    Now I have to create three input parameters period_name,set_of_books_id,currency_code.
    The parameter set_of_books_id should have list of values so that the user will select one from it at run time. But when I tried to create the parameter
    I am unable to create list of values for this parameter. (i.e in Parameter dialog box the For Item filed doest not have any field like set_of_books_id as it is custom query)
    So how Can I add LOV for this parameter.
    Kind Regards,
    PRaveen.

    Hi,
    You custom folder needs to contain a statement like :
    SELECT concatenated_segments, period_name,set_of_books_id,currency_code, (SUM(PERIOD_NET_DR)-SUM(PERIOD_NET_CR)) MOVEMENT
    FROM gl_balances a, gl_code_combinations_kfv b
    where a.code_combination_id = b.code_combination_id
    gROUP BY concatenated_Segments, period_name,set_of_books_id,currency_code
    HAVING (SUM(PERIOD_NET_DR)-SUM(PERIOD_NET_CR))<>0.
    The you will have the period_name,set_of_books_id,currency_code items in the folder and can create parameters using these columns.
    To define the LOV you will need to create separate folders that return the list of values required e.g.
    SELECT set_of_books_id, name
    FROM GL_SETS_OF_BOOKS
    Use this folder to define an item class and then include the set_of_books_id from the first folder into the item class.
    Rod West

  • How to pass a parameter with more than one value to a report? (urgent)

    Hi, all
    I try to pass a parameter from a search form to a report in
    which I would like to print out my search result. My problem is
    I can pass the parameter to report but only one value which my
    cursor points to. could anyone tell me how to pass a list of
    value to the report? my trigger in form like this:
    declare
    PL_ID PARAMLIST;
    sc_no books.c_no%type;
    begin
    PL_ID := GET_PARAMETER_LIST('parametername');
    IF NOT ID_NULL(PL_ID) THEN
    DESTROY_PARAMETER_LIST(PL_ID);
    END IF;
    PL_ID := CREATE_PARAMETER_LIST('parametername');
    IF ID_NULL(PL_ID) THEN
    MESSAGE('PL/SQL held against Button failed to execute');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    ADD_PARAMETER(PL_ID, 'PARAMFORM', TEXT_PARAMETER,'NO');
    sc_no := :searchlist.c_no; --(c_no is the value I want to pass
    but not only one.)
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    RUN_PRODUCT(REPORTS, 'reportpathname.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, PL_ID, NULL);
    end;
    Thank you in advance
    Diana

    Is it your values in parameter NO separated by coma? And is it
    parameter in where clause?
    Do you want something like :
    from table
    where s_no in (NO) ?
    If is answer "yes" you can create lexical parameter in report.
    You can write in report sowething like:
    select a.field1, a.field2,.....
    from table a
    &COND /* this is if is condition only one line after "from".
    if you have more lien after where then you will put this &COND
    in line where you want to have your multivalue.
    Then in your trigger in form you should write:
    sc_no := 'where a.sc_no in ('||:searchlist.c_no||')';
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    /* again this is if you have only one line with WHERE ili
    conditions */
    or you will write:
    sc_no := 'and a.sc_no in ('||:searchlist.c_no||')';
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    It will substitute line in which is your conditions with
    multivalue.

  • How to change a parameter with script

    Hi to All,
    Is it possible change to TRUE the Parameter "07_DICTIONARY_ACCESSIBILITY" with a script ?
    If Yes, how can perform this ?
    Thank You and Best Regards.
    Gaetano

    About 07_DICTIONARY_ACCESSIBILITY

  • How to specify a user with EJBs

    Hello.
    I'm designing an integration system where I have to use EJBs. The problem I have is I need to specify a user when the client invokes an stateless session bean on the application server. I need it because the application the client calls, uses the ejb user id.
    This is how the application (JBOSS jBPM) gets the actor Id.
    Principal p = ejbSessionContext.getCallerPrincipal();
    actorId = ( p!=null ? p.getName() : "unauthenticated-ejb-client" );
    I get the unauthenticated-ejb-client because I have not especified any actor.
    Could anyone explain me how to set the ejb user or actor.
    Thank you in advance.
    Regards

    Here is the code I use to invoque the EJB:
                Properties properties = new Properties();
                properties.put( Context.INITIAL_CONTEXT_FACTORY       ,"org.jnp.interfaces.NamingContextFactory");
                properties.put( Context.PROVIDER_URL,"localhost:1099");
                properties.put( Context.URL_PKG_PREFIXES,"jboss.naming:org.jnp.interfaces");
                JbpmEjbServiceLocator jbpmEjbServiceLocator = new JbpmEjbServiceLocator( properties );
                ExecutionServiceRemote executionServiceRemote = null;
                executionServiceRemote = jbpmEjbServiceLocator.getExecutionServiceRemote();            then I get an ExecutionServiceRemote that is the door to the application API.
    There is no way to especify in the invocation the actor Id. It must be set with the authentication of the EJB.
    Thank your your help.

  • How to use a parameter with Order By?

    I am trying to pass in a parameter to a procedure (like 'ColumnName ASC, ColumnName DESC') to use with ORDER BY, but I can't get it to order on the passed in parameter? I have read a few posts but non of my attempts have worked.
    Procedure getEquipmentList(io_cursor OUT ref_cursor_Equipment), orderString IN VARCHAR2, RecordStart IN NUMBER, RecordEnd IN NUMBER) IS
    Equipment_Cursor refCursor_Equipment;
    Use_Order NUMBER := 1;
    BEGIN
    OPEN Equipment_Cursor
    FOR SELECT *
    FROM TABLE(
    PACKAGE_EQUIPMENT.getRecordSetOfEquipment(
    CURSOR(
    SELECT * FROM (SELECT idEquipment, strEquipmentName, deletedFlag, Row_Number() OVER (ORDER BY DECODE(Use_Order, 1, orderString)) AS r FROM tblEquipment) WHERE r >= RecordStart AND r <= RecordEnd)));
    io_cursor := Equipment_Cursor;
    END;
    If I replace orderString in the DECODE with say strEquipmentName it orders correctly. If I try 'strEquipmentName' then it does not work. Any ideas would be helpful.

    SQL>
    SQL> create or replace procedure test2(ord in varchar2)
    2 is
    3 TYPE TCUR IS REF CURSOR;
    4 CUR TCUR;
    5 v_name varchar2(30);
    6 begin
    7 open cur for 'select first_name from employees where rownum<=10 order by '||ord;
    8 loop
    9 fetch cur into v_name;
    10 exit when cur%notfound;
    11 dbms_output.put_line(v_name);
    12 end loop;
    13 end;
    14 /
    Procedure created
    SQL> exec test2('employee_id');
    Steven
    Neena
    Lex
    Alexander
    Bruce
    David
    Valli
    Diana
    Nancy
    Daniel
    PL/SQL procedure successfully completed
    SQL> exec test2('salary');
    Diana
    Valli
    David
    Bruce
    Daniel
    Alexander
    Nancy
    Lex
    Neena
    Steven
    PL/SQL procedure successfully completed
    SQL>

  • How to make input parameter with multiple values in function module?

    Dear Experts,
    I want to add BUKRS as import field to a FM, what is the best way of of making it accept multiple enteries.
    Regards,
    Kiran

    hI kiran,
    The simple way is to create a data element & domain with value range where u provide set of fixed values or provide a check table to it.
    Use that data element in a table <ztable>.
    Code:
    Parameters:
          p_burks like <ztable>-dataelement.
    Call Function <function_name>
    exporting
    p_burks = p_burks,

  • How to print a PDF with equal white borders

    Hello,
    When I print my flyer the white borders on the top and bottom are unequal. How do I make it so all 4 sides have the same width for the white border? The print preview is unequal too.
    Thanks

    Thank you Michael
    My problem is, I need to print the document with the mm items.  I work 
    in a print & copy shop, we must deal with whatever the customers send 
    us.
    I actually stumbled around and found I could do it with the MultiMedia 
    Flash Tool, editing the poster options. It's a tedious process though, 
    and I'd like to find a way to set this for the whole PDF file at once.
    If you know how to do this I'd appreciate the info.
    Thanks again,
    Mark

  • How do i get rid of this white space on the bottom of my homepage?

    Right above my footer and right below my main content on the page is a large white gap that takes over..how do i get rid of it?

    Your main content bg is white so its hard to tell what space is extra space.
    If you check your site in ie7 it stretches to about 3 times its normal length

  • How do I get rid of the white space between my header and my spry navigation bar?

    I have been grappling with a problem for the past 2 days and cannot seem to work my way around it. I have been working on a page in dreamweaver cs4 that seems to have whitespace between the header and my spry menu bar ONLY in Firefox. Google Chrome and Safari show it correctly. Could you steer me in the right direction for getting rid of that space. Here is the page: http://www.margaritascafe.com/margaritas_layout.html
    Here is my code and thanks in advance for your help:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="margaritastyles.css" rel="stylesheet" type="text/css" />
    <script src="Margaritas_temp_spry/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <link href="Margaritas_temp_spry/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
      <div id="header">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="250" id="FlashID" tabindex="10" title="Margarita's Cafe header 2">
          <param name="movie" value="flash_movies/Margaritas Header 3.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="9.0.45.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="flash_movies/Margaritas Header 3.swf" width="1000" height="250">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="9.0.45.0" />
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>
      </div>
      <div id="navigation">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">Menus</a>
            <ul>
              <li><a href="#">Lunch</a></li>
              <li><a href="#">Dinner</a></li>
              <li><a href="#">Cocktail</a></li>
              <li><a href="#">Take Out</a></li>
            </ul>
          </li>
          <li><a href="#">Photos</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">Catering</a>
            <ul>
              <li><a href="#">Private Parties</a></li>
            </ul>
          </li>
          <li><a href="#">Reservations</a></li>
          <li><a href="#">Contact</a></li>
          <li><a href="#">Reviews</a></li>
          <li><a href="#">Directions</a></li>
        </ul>
      </div>
      <div id="maincontentlayout3">Content for  id "maincontentlayout3" Goes Here</div>
      <div id="specials"><img src="png-gif-jpg/Tuesday Night Banner.jpg" width="200" height="70" alt="Margarita's Tuesday Night Special" /><img src="png-gif-jpg/Wednesday Banner.jpg" width="200" height="70" alt="Wednesday 2 for 1 dinner special at Margarita's" /><img src="png-gif-jpg/Thursday Banner.jpg" width="200" height="70" alt="Ladie's Night Thursdays at Margarita's Cafe" /><img src="png-gif-jpg/Friday Banner.jpg" width="200" height="70" alt="TGIF Happy Hour on Friday's at Margarita's Cafe" /><img src="png-gif-jpg/Sunday Banner.jpg" width="200" height="70" alt="Sunday Kids Eat Free at Margarita's Cafe!" /></div>
      <div id="footer"><img src="png-gif-jpg/Margaritas Facebook logo.png" alt="Facebook" width="40" height="25" align="absmiddle" /> <img src="png-gif-jpg/Margaritas Twitter logo.png" alt="Twitter Logo" width="40" height="25" align="absmiddle" /><img src="png-gif-jpg/merchantcircle_mini.png" alt="Merchant Circle Logo" width="63" height="25" align="absmiddle" /></div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"Margaritas_temp_spry/SpryMenuBarDownHover.gif", imgRight:"Margaritas_temp_spry/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    CSS:
    #navigation {margin-top: -3px;}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How do I get rid of the white space in the navigation toolbar after installing LastPass?

    I've uninstalled and reinstalled the 64-bit Firefox on my Windows 7 laptop. After installing LastPass I get this white space in the left search. I didn't know if anybody has had a similar issue. Thanks for your time guys.
    Here's a link to what it looks like on my page. http://i.imgur.com/kpRh0tv.png

    This issue has been solved.<br>
    Please view the support ticket for more details.
    [https://lastpass.com/my.php?token=TRHJ2AUK8VSV LastPass Support Ticket]

  • Pass parameter with apostrophe

    Hi,
    How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
    Thanks in advance.
    Pramod

    If you are using bind variables, the string should be escaped automatically. If you are not using bind variables, you should be using bind variables.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to use structure pointer with « Call Library Function node » in LabVIEW

    I use GetTimeZoneInformation from kernel32.dll. It definition is :
    DWORD GetTimeZoneInformation( LPTIME_ZONE_INFORMATION lpTimeZoneInformation );
    Where
    lpTimeZoneInformation
    [out] Pointer to a TIME_ZONE_INFORMATION structure to receive the current time-zone parameters.
    http://msdn.microsoft.com/library/default.asp?url=​/library/en-us/sysinfo/base/gettimezoneinformation​...
    I don't know how to set this parameter with my cluster based on the TIME_ZONE_INFORMATION structure.
    Your help will be appreciate
    Thanks
    INKSPEC

    INKSPEC wrote:
    I use GetTimeZoneInformation from kernel32.dll. It definition is :
    DWORD GetTimeZoneInformation( LPTIME_ZONE_INFORMATION lpTimeZoneInformation );
    Where
    lpTimeZoneInformation
    [out] Pointer to a TIME_ZONE_INFORMATION structure to receive the current time-zone parameters.
    http://msdn.microsoft.com/library/default.asp?url=​/library/en-us/sysinfo/base/gettimezoneinformation​...
    I don't know how to set this parameter with my cluster based on the TIME_ZONE_INFORMATION structure.
    Your help will be appreciate
    Thanks
    INKSPEC
    If creating a wrapper DLL which does the conversion for you is not an option (I think it won't since that would require C programming and if you knew C programming you wouldn't ask this here) then you will have to create a byte array of appropriate length and just configure the Call Library Node to pass this array as an Array of unsigned bytes and as C pointer.
    On return you will have to copy out the interesting data at the right position.
    First the length of this structure would be:
    typedef struct _TIME_ZONE_INFORMATION {
    LONG Bias; 4
    WCHAR StandardName[32]; 32 * 2
    SYSTEMTIME StandardDate; 8 * 2
    LONG StandardBias; 4
    WCHAR DaylightName[32]; 32 * 2
    SYSTEMTIME DaylightDate; 8 * 2
    LONG DaylightBias; 4
    } TIME_ZONE_INFORMATION
    Total 172 bytes
    Now the fun part will be to actually get out the information. There are a number of difficulties.
    First the strings are 16 bit Unicode so if you are interested in them you will have to call a different Windows API function WideCharToMultiByte function to convert the 16bit Unicode string into an ASCII string. For this part there has been a post here:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=123821&requireLogin=False
    For the LONG values you would pick 4 bytes at the appropriate offset from the array through the Array Subset function and then typecast it into an int32 and pass that through the Swap Bytes and Swap Words functions to reverse the LabVIEW Big Endian byte swapping in the Typecast function.
    The SYSTEMTIME is a structure with eight 2 byte integers so it would be best to use Array Subset again to extract 16 bytes at the correct offset, typecast this into a cluster with eight int16 numerics and pass it through Swap Bytes too.
    You see accessing such API functions in LabVIEW directly can get easily quite a mess and that is the reason why creating a wrapper DLL to convert properly between LabVIEW datatypes and C datatypes gets soon the easier solution if you need to interface with more than one or two functions taking such complicated data structures.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Buffer Overrun in Quicktime 7.1.3

    I'll start with the basics: System Config: -Windows XP Pro SP2 (all updates performed) -Intel p4 1.7GHz -1GB RAM -2x120GB 7200RMP UltraQuiet HDDs -Nvidia GeForce 6200 128MB AGP (latest Forceware Release) -SoundBlaster Audigy 2 (latest driver/firmware

  • Resolution and aspect ratio.

    Could somebody please help me with my problem? I am creating a slideshow, using iMovie '08, for a party I will be attending. I am going to make copies for several guests but I am lost on the details. The master copy of my project is 1920x1080 HD. So,

  • Movie in iTunes?

    is there a way to associate the movie folder of my home directory to the movie section of itunes? i want itunes to look for movie in my movie folder. thx

  • Oracle.jdbc2.BatchUpdateException: ORA-00001:

    I am posting news with news post form      when i create db tables and insert records then its working well      but when I am droping the all table and importing db then it throws the      subject error thanks & best regards

  • MS Publisher pdf to spot color press

    I have clients that keep bringing in supposed press-ready documents created by MS publisher and want them printed on a two color press! The Publisher document is converted to pdf on a PC and then sent to me on a Mac using CS3 to prepare for press.  W