PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Converting a C# strunction to WLanguage
Converting a C# strunction to WLanguage
Started by Simon Phillips, Jan., 02 2024 8:16 PM - No answer
Posted on January, 02 2024 - 8:16 PM
Hi All
I am not a user of C# but want to use the User32.dll "SendInput" to send Win+H to the system.

I am almost there, but the structure sent to the method is returning an error saying that the structure is the wrong format.

The structure in C# is:

typedef struct tagINPUT {
DWORD type;
union {
MOUSEINPUT mi;
KEYBDINPUT ki;
HARDWAREINPUT hi;
} DUMMYUNIONNAME;
} INPUT, *PINPUT, *LPINPUT;

but I need to transfer this to a structure that I can use in WinDev.

The Microsoft page for this is https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-input

Thanks
Simon Phillips