O'Reilly logo

.NET and COM: The Complete Interoperability Guide by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required