Hi,
I have the following PInvoke problem:
I want to call the Win32 API SystemParametersInfo()
which has the following signature:
BOOL SystemParametersInfo(
UINT uiAction,
UINT uiParam,
PVOID pvParam,
UINT fWinIni
);
the pinvoke.net site suggests the following declaration:
[DllImport("user32.dll", SetLastError = true)]
static extern bool SystemParametersInfo(uint uiAction, uint uiParam, IntPtr
pvParam, uint fWinIni);
I'm interested in the case when uiAction is set to SPI_GETSCREENSAVEACTIVE
where pvParam "must point to a BOOL variable that receives..." (BOOL=32bit
signed int)
How to pass an 32-bit integer by reference to the above signature?
Any ideas appreciated.
Nicolas