Title: Enable native interop with static extern class methods · Issue #2876 · PowerShell/PowerShell · GitHub
Open Graph Title: Enable native interop with static extern class methods · Issue #2876 · PowerShell/PowerShell
X Title: Enable native interop with static extern class methods · Issue #2876 · PowerShell/PowerShell
Description: It would be really neat if we could to native interop with classes. class NativeMethods{ [DllImport("kernel32", SetLastError=$true)] hidden static extern [bool] SetConsoleMode([IntPtr] $handle, [int] $mode) } How much work would it be to...
Open Graph Description: It would be really neat if we could to native interop with classes. class NativeMethods{ [DllImport("kernel32", SetLastError=$true)] hidden static extern [bool] SetConsoleMode([IntPtr] $handle, [in...
X Description: It would be really neat if we could to native interop with classes. class NativeMethods{ [DllImport("kernel32", SetLastError=$true)] hidden static extern [bool] SetConsoleMode([IntPtr] $h...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2876
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enable native interop with static extern class methods","articleBody":"It would be really neat if we could to native interop with classes.\r\n\r\n```PowerShell\r\nclass NativeMethods{\r\n [DllImport(\"kernel32\", SetLastError=$true)]\r\n hidden static extern [bool] SetConsoleMode([IntPtr] $handle, [int] $mode)\r\n}\r\n```\r\n\r\nHow much work would it be to get this working?","author":{"url":"https://github.com/powercode","@type":"Person","name":"powercode"},"datePublished":"2016-12-13T09:01:18Z","url":"https://github.com/PowerShell/PowerShell/issues/2876"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:619e9882-9705-c262-02e5-b40983650325 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3B0:1D473B:13B2C7:1C7864:6AFDC084 |
| html-safe-nonce | 4be3208b42935b6fd2ec10e8e0c5ae23bc6c932e6c22859f549c7eaba9c747c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0IwOjFENDczQjoxM0IyQzc6MUM3ODY0OjZBRkRDMDg0IiwidmlzaXRvcl9pZCI6IjM0OTU3NjU3NzQ4MzQ3MTI3MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9b900d411b90a97a25d6e21e0e4f12b76a261a701c71c9008d8b31c73091eb8b |
| hovercard-subject-tag | issue:195196127 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2876/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e675ab4b121b47c6b5916e69d029225d63e3ad6c5339660e139c317eba3ab552/PowerShell/PowerShell/issues/2876 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e675ab4b121b47c6b5916e69d029225d63e3ad6c5339660e139c317eba3ab552/PowerShell/PowerShell/issues/2876 |
| og:image:alt | It would be really neat if we could to native interop with classes. class NativeMethods{ [DllImport("kernel32", SetLastError=$true)] hidden static extern [bool] SetConsoleMode([IntPtr] $handle, [in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | powercode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35c6bf57da1370dc64866160540c0ee9f825f291935b3bf6ec5492b00e35f3a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab48c73a2978548773f5f24717ed9e58508befdb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width