GithubHelp home page GithubHelp logo

Comments (3)

m417z avatar m417z commented on June 22, 2024

Hi Claudio,

Here's a simple example:

winapiexec64.exe shell32.dll@SHObjectProperties 0 2 C:\Windows Sharing , u@MessageBoxW 0 "Showing properties..." $$:0 0

This example opens the properties of C:\Windows with the Sharing tab. Not that the message box is necessary to keep the process running. There might be better solutions, but it requires some extra thought.

Edit: Here's the proper way to do it, and it makes more sense to create a small command line tool for the task:
https://devblogs.microsoft.com/oldnewthing/20080528-00/?p=22163

from winapiexec.

claudio-salvio avatar claudio-salvio commented on June 22, 2024

Hi @m417z

Thank you for your prompt reply.
The command line worked correctly for me in cmd.exe.
In PowerShell it did not work, although I suppose I could launch from there a cmd.exe and get a similar result as previously mentioned.

Unfortunately the requirement to open an extra window (u@MessageBoxW 0 "Showing properties...") makes the procedure a bit "ugly".

Thanks for the link to the proper way:
Reading a contract from the other side: SHSetInstanceExplorer and SHGetInstanceExplorer - The Old New Thing

Unfortunately my current knowledge of C programming does not justify me trying to approach the task from that side.

I put a feature request on the GDProp GitHub Repo GeekDrop-Props at GitHub to add a parameter to indicate the tab:
[FR] Add support for additional parameter with the name of the property sheet to display - Issue #4.

At this point, it would seem that that is the most reasonable way to get this functionality, at least for me.

🙏 Thanks for all the helpful programs you share with the community.

Regards,
Claudio Salvio

I 💙 Textify Textify at GitHub
I 💙 7+ Taskbar Numberer 7+ Taskbar Numberer at GitHub

from winapiexec.

XP1 avatar XP1 commented on June 22, 2024

There's a "show-properties.exe <path to file or directory>" here using the proper way:

https://github.com/JosephusPaye/show-properties/blob/master/src/show-properties.cpp

from winapiexec.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.