Help - C++ to C# code conversion

  • Thread starter Thread starter chris-s
  • Start date Start date
C

chris-s

Hi,

Could somebody possibly provide the equivilent c# translation of the
following c++ code snippet?

::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);



Chris.
 
private const int HWND_BROADCAST = 0xFFFF;
private const int WM_WININICHANGE = 0x001A;

[System.Runtime.InteropServices.DllImport("coredll.dll")]
private static extern int SendMessage(int hWnd, int iMsg, int wParam, int
lParam);

SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
 
Back
Top