Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow access to win32 #3892

Closed
Yu02 opened this issue Feb 5, 2020 · 6 comments
Closed

Allow access to win32 #3892

Yu02 opened this issue Feb 5, 2020 · 6 comments
Labels
cli related to cli/ dir suggestion suggestions for new features (yet to be agreed) windows Related to Windows platform

Comments

@Yu02
Copy link

Yu02 commented Feb 5, 2020

Allow programmers to import Windows core DLLs (win32) like user32 so more features can be used without turning to plugins (like changing the screen brightness for example).

Example:

Deno.win32.Winuser.BringWindowToTop(...)
@bartlomieju bartlomieju added cli related to cli/ dir suggestion suggestions for new features (yet to be agreed) windows Related to Windows platform labels May 21, 2020
@caspervonb
Copy link
Contributor

I don't think there is anything actionable here?

@bartlomieju
Copy link
Member

@caspervonb agreed, it's highly unlikely that we'll ever add Deno.win32. Respectfully closing.

@rivy
Copy link
Contributor

rivy commented Mar 26, 2021

@bartlomieju , @caspervonb , for command line applications, parity between *nix and Windows versions for certain things like command line parsing (especially globs/wildcards) seems to require some lower-level access to OS APIs (eg, GetCommandLine). Is there a path or planned path to access that capability?

@bartlomieju
Copy link
Member

@rivy if you have specific request regarding GetCommandLine I suggest to open a new issue, but as said previously it's unlikely that we'll add win32 specific APIs

@rivy
Copy link
Contributor

rivy commented Mar 27, 2021

I have (see #9871), just no response as of yet.
I was posting here as it specifically referred to Win32 API access which could be useful for various applications (command line applications, GUI, etc). Not being fully versed all corners of the project, I was hoping that someone might point out a direction for such access (something like deno-ffi).

@Kreijstal
Copy link

You can just use dlopen can't you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli related to cli/ dir suggestion suggestions for new features (yet to be agreed) windows Related to Windows platform
Projects
None yet
Development

No branches or pull requests

5 participants