# p-invoke.net

This website contains most of the P/Invoke definitions from the now offline [pinvoke.net](http://pinvoke.net/), adding the link to the Microsoft documentation for each one.

You can find the Github repository with all these files [here](https://github.com/ricardojoserf/pinvoke.net).

***

### Notes

* I did this to check some definitions in a quick way because I used pinvoke.net a lot, but there are more professional solutions like [CsWin32](https://github.com/microsoft/CsWin32).
* The website contains almost 2500 files, the limit for Gitbook, but pull requests are more than welcome (if a definition is wrong or if you want to add new ones).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ricardojoserf.gitbook.io/pinvoke/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
