Appendix E. PInvoke Definitions for Win32 Functions

In This Appendix

GDI32.DLL

KERNEL32.DLL

OLE32.DLL

SHELL32.DLL

USER32.DLL

The biggest hassle of using Platform Invocation Services (PInvoke) is correctly defining the signatures of functions you wish to call. This appendix provides a PInvoke signature for just about every function exposed by five Windows DLLs so you don’t have to come up with these definitions yourself. The function definitions are listed alphabetically with respect to other functions in the same DLL. The five DLLs covered are:

GDI32.DLL

KERNEL32.DLL

OLE32.DLL

SHELL32.DLL

USER32.DLL

To get a better understanding of how to use these signatures, tweak them, or translate them to other .NET languages, consult ...

Get .NET and COM: The Complete Interoperability Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.