Re: enumerating control pannel items from 32 bit executable on XP 64 bit and Vista 64 bit

Discussion in 'Windows 64bit' started by David B., Jan 20, 2009.

  1. David B.

    David B. Guest

    You might want to fix your date

    --

    Crosspost, do not multipost http://www.blakjak.demon.co.uk/mul_crss.htm
    How to ask a question http://support.microsoft.com/kb/555375
    Help Us Help You http://dts-l.net/goodpost.htm



    "sandi_ro" <> wrote in message
    news:...
    > Hi,
    >
    > Is there any way to programatically enumerate 64 bit folder items from
    > control pannel in a 32 bit process in windows XP/vista 64 bit without
    > remoting to secondary 64 bit process?
    >
    > Folowing sample will show only 32 bit control panel items when run from 32
    > bit process on xp64/vista64bit but will show all items in
    > XP32bit/Vista32bit.
    >
    > Is there any MSDN reference that documents this behavior ?
    > (Currently here
    > http://msdn.microsoft.com/en-us/library/bb787872(VS.85).aspx is no detail
    > about differences between 32bit/64 bit behavior)
    >
    > For simplicity I show the sample code in c#:
    >
    > Thanks,
    > sandi_ro.
    > using Shell32; //added as COM refferece to shell32.dll
    >
    > .....
    >
    > Shell shell = new Shell();
    >
    > Folder controllPannel =
    > shell.NameSpace(ShellSpecialFolderConstants.ssfCONTROLS);
    >
    > FolderItems items = controllPannel.Items();
    >
    > Debug.Print("ControlPannel has {0} items\r\n", items.Count);
    >
    > foreach (FolderItem fi in items)
    >
    > {
    >
    > Debug.Print("ControlPannel -> {0}\r\n", fi.Name);
    >
    > }
    >
    >
    >
    >
    >
     
    David B., Jan 20, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SA

    accessibility in control pannel

    SA, Oct 25, 2003, in forum: Computer Support
    Replies:
    0
    Views:
    476
  2. Carlos
    Replies:
    0
    Views:
    437
    Carlos
    Jan 16, 2009
  3. Homer J. Simpson
    Replies:
    5
    Views:
    770
    Jim Barry
    Jan 19, 2009
  4. Lanwench [MVP - Exchange]
    Replies:
    0
    Views:
    438
    Lanwench [MVP - Exchange]
    Jan 21, 2009
  5. sandi_ro
    Replies:
    2
    Views:
    545
    sandi_ro
    Jan 28, 2009
Loading...

Share This Page