Quantcast
Channel: VBForums - API
Viewing all articles
Browse latest Browse all 168

What is a NULL in WinAPI?

$
0
0
Often in API functions there are arguments that can be filled with a data type (like RECT, for graphics areas) or can be passed a NULL to use a default (such as the whole screen, for graphics areas). What exactly does this NULL mean? Does this mean that a ByVal ArgumentName As Long should be used when declaring the function, and then pass the value 0& (representing a pointer with the value of &h00000000) to the argument? Or does it mean that ByRef ArgumentName As Long should be used when declaring the function, and then pass the value 0& (representing a pointer to the memory location where the value &h00000000 is stored)?

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>