PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Converting a C# strunction to WLanguage
Converting a C# strunction to WLanguage
Iniciado por Simon Phillips, 02,ene. 2024 20:16 - No hay respuesta
Publicado el 02,enero 2024 - 20:16
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