You dont need to be doing it using the DllImport in C-C++ but just add the following header file Winuser.h or include Windows.h and link the dll.

In C# you the DllImport the way you have demonstrated.