Hi guys,
Why does "[DllImport("user32.dll")] " have to be used every time an external method is added?
For example, the code looks like this:
[DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk); [DllImport("user32.dll")] private static extern bool UnregisterHotKey(IntPtr hWnd, int id);
instead of this:
[DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk); private static extern bool UnregisterHotKey(IntPtr hWnd, int id);
Thanks
Richard