How to pass null as out value in interop.

Coordinator
Feb 26, 2010 at 11:24 AM

Is there is possible to pass null as out value in interop code?

HRESULT CheckInterfaceSupport(
  REFGUID InterfaceName,
  LARGE_INTEGER *pUMDVersion
);
int CheckInterfaceSupport([In, MarshalAs(UnmanagedType.LpStruct)] Guid InterfaceName, ? out long UMDVersion);
It must be possible to use IntPtr, but it not a proper way.