RE: enumerating control pannel items from 32 bit executable on XP 64 b

Discussion in 'Windows 64bit' started by Carlos, Jan 16, 2009.

  1. Carlos

    Carlos Guest

    Hi,
    I am not the techie guy you may be needing but I think this is what you are
    looking for:
    http://msdn.microsoft.com/en-us/library/aa365743.aspx
    Carlos

    "sandi_ro" wrote:

    > 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);
    >
    > }
    >
    >
    >
    >
    >
    >
    Carlos, Jan 16, 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:
    457
  2. Homer J. Simpson
    Replies:
    5
    Views:
    725
    Jim Barry
    Jan 19, 2009
  3. David B.
    Replies:
    0
    Views:
    465
    David B.
    Jan 20, 2009
  4. Lanwench [MVP - Exchange]
    Replies:
    0
    Views:
    410
    Lanwench [MVP - Exchange]
    Jan 21, 2009
  5. sandi_ro
    Replies:
    2
    Views:
    509
    sandi_ro
    Jan 28, 2009
Loading...

Share This Page