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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top