P
philippe.joliet
Hello,
I'm currently try to use the SystemParametersInfo function in a c#
environnement but I have a problem to use it with the action
SPI_SETWORKAREA
I've got this definition
[DllImport("user32.dll")]
private static extern int SystemParametersInfo(int uAction, int
uParam, string pvParam, int fuWinIni);
in the SDK it is shown that I must pass to pvParam a pointer to a RECT
structure and not a string.
How do I do that?
I tried to define a struct equivalent to the RECT structure but it
does not seems to work
If you 've got an idee? it will be helpfull
In advance, thanks
I'm currently try to use the SystemParametersInfo function in a c#
environnement but I have a problem to use it with the action
SPI_SETWORKAREA
I've got this definition
[DllImport("user32.dll")]
private static extern int SystemParametersInfo(int uAction, int
uParam, string pvParam, int fuWinIni);
in the SDK it is shown that I must pass to pvParam a pointer to a RECT
structure and not a string.
How do I do that?
I tried to define a struct equivalent to the RECT structure but it
does not seems to work
If you 've got an idee? it will be helpfull
In advance, thanks