title: How to pass null pointer to Win32 API in C# .Net?
body: <p>I'm looking at the RegisterHotKey Function:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/ms646309(VS.85).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms646309(VS.85).aspx</a></p>
  
  <pre><code>BOOL RegisterHotKey(
    __in  HWND hWnd,
    __in  int id,
    __in  UINT fsModifiers,
    __in  UINT vk
  );
  </code></pre>
  
  <p>I've been using <code>IntPtr</code> to pass in the first argument, which works fine in most cases. But now I need to deliberately pass a null pointer as the first argument, which <code>IntPtr</code> (deliberately) will not do. I'm new to .Net, and this has me perplexed. How can I do this?</p>