pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.

Results 66 pinvoke issues
Sort by recently updated
recently updated
newest added

I understand the need and meaning of SafeHandles as the ones that we need to Close/Destroy after use in order to avoid memory leaks and other memory and referencing problems....

Our `Safe*Handle` classes usually expose a `public static readonly Null` field, which is initialized to a null handle. Is this safe? What if someone sets a struct's SafeHandle field to...

needs discussion

https://docs.microsoft.com/en-us/windows/desktop/SecAuthZ/privilege-constants

api request

With PInvoke.Net currently down, I am at a loss for even the documentation for these dlls. Does anyone have it? Smart Device Functions: aygshell.dll coredll.dll ipaqutil.dll rapi.dll

help wanted
api request

Example of a NULL that may be returned on success: [GetWindowTextLength](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633521(v=vs.85).aspx) It seems that the `User32.GetWindowText` can cause an erroneous exception by the following: Steps to reproduce: 1. Call something...

We've established some good patterns and code generation to support writing P/Invoke signatures. These could be applied to P/Invoke signatures for perhaps any native DLL, well beyond Win32. This project...

needs discussion

https://msdn.microsoft.com/en-us/library/windows/desktop/dd433795(v=vs.85).aspx

api request

This project is organized with freaky accuracy to how I've been doing it for years and I was very glad to find this much more complete library. The only stumbling...

needs discussion

I'm particularly interested in `TMT_CONTENTMARGINS` and `TMT_SIZINGMARGINS` for use with `GetThemeMargins`, but it might make sense to add the whole lot, [split by Retrieval Function](https://msdn.microsoft.com/en-us/library/windows/desktop/bb773213.aspx#property_types). Ideally the `iPropId` parameter type...

api request

Hello, when I found this huge library I was looking for a special function in particular: EnumProcesses in psapi. I can see, that this function is not implemented yet. Will...

help wanted
api request