Git Product home page Git Product logo

Comments (14)

TravisRo avatar TravisRo commented on June 4, 2024

We can do a release but I do not have a valid certificate to sign the driver.

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

@TravisRo Great that you are back in action. I think it is okay to release an unsigned version first.

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

To me libusbk driver is not that important any more , rather the DLL is still good to carry forward. Therefore the unsigned driver is not a big issue.

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

@TravisRo
My idea is like the following.
https://github.com/mcuee/libusbk/milestones.

  1. Release what we have as 3.0.8 soon.
  2. If you got the time to implement WinUSB isoc support, then we can set that as a goal for release 3.0.9.

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

3.0.8 has been released.

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

3.1.0 has been release with major new features.

V3.1.0.0 (07/19/2021)
==============================================
- Added isochronous support for WinUSB

- Added BOS descriptors

- Added MS OS V1.0 Descriptors

- Added MS OS V2.0 Descriptors

- Added 'DeviceInterfaceGUIDs' property to libusb0 .inf template

- Fixed issues causing missing devices in the device list when then
  DeviceInterfaceGUIDs property is missing
  
- Added BOS and MS descriptor reporting to kList

- Added FX3 benchmark test firmware

V3.0.8.0 (06/17/2021)
==============================================
- Add SHA256 self-sign support for dpscat and inf-wizard2

- Update kBench usb ids

- Fix inf-wizard2 re-pack (Now includes 7za.exe)

- Add support for "DeviceInterfaceGUID" (singular)

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

Next release: 3.1.x series for bug fixes if any; 3.2.0.0 if there are major features.

from libusbk.

Ying-Pin-Wu avatar Ying-Pin-Wu commented on June 4, 2024

Could please provide MinGW .a library ?

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

MinGW is not supported as a tool to build the library or the kernel driver.
However you can link to the libusbk DLL directly from MinGW compiler.
Ref: https://github.com/mcuee/libusbk/blob/master/libusbK/examples/examples-project.mkinc

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

Probably gendef can help if you really want to create the import library.
https://sourceforge.net/p/mingw-w64/wiki2/gendef/
https://sourceforge.net/p/mingw-w64/wiki2/Answer%20generation%20of%20DLL%20import%20library/

Here are the MSYS2 mingw64/mingw32 import library for you testing.
mingw_msys2.zip

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

Build log for MSYS 2 MinGW 32bit compiler. There are quite some warnings but it still works fine.

The example Makefiles are more meant for use with TDM multi-lib enabled 32/64bit toolchain.

click for the build log for MSYS2 mingw32 compiler
$ make -f GNUmakefile
[K] Running examples SOLUTION makefile..
make --no-print-directory --directory=./hot-plug-monitor  all
[K] Multi-lib support = No
[K] Running hot-plug-monitor PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 hot-plug-monitor_rc.rc -o bin/x86/hot-plug-monitor_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c hot-plug-monitor.c -o bin/x86/hot-plug-monitor.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/hot-plug-monitor.exe bin/x86/hot-plug-monitor_rc.o bin/x86/hot-plug-monitor.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./load-driver-api  all
[K] Multi-lib support = No
[K] Running load-driver-api PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 load-driver-api_rc.rc -o bin/x86/load-driver-api_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c load-driver-api.c -o bin/x86/load-driver-api.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/load-driver-api.exe bin/x86/load-driver-api_rc.o bin/x86/load-driver-api.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./show-device  all
[K] Multi-lib support = No
[K] Running show-device PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 show-device_rc.rc -o bin/x86/show-device_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c show-device.c -o bin/x86/show-device.o
show-device.c: In function 'main':
show-device.c:64:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
   64 |         LstK_Count(deviceList, &count);
      |                                ^~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from show-device.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/show-device.exe bin/x86/show-device_rc.o bin/x86/show-device.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./open-device  all
[K] Multi-lib support = No
[K] Running open-device PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 open-device_rc.rc -o bin/x86/open-device_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c open-device.c -o bin/x86/open-device.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/open-device.exe bin/x86/open-device_rc.o bin/x86/open-device.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./config-interface  all
[K] Multi-lib support = No
[K] Running config-interface PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 config-interface_rc.rc -o bin/x86/config-interface_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c config-interface.c -o bin/x86/config-interface.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/config-interface.exe bin/x86/config-interface_rc.o bin/x86/config-interface.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./pipe-policy-timeout  all
[K] Multi-lib support = No
[K] Running pipe-policy-timeout PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 pipe-policy-timeout_rc.rc -o bin/x86/pipe-policy-timeout_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c pipe-policy-timeout.c -o bin/x86/pipe-policy-timeout.o
pipe-policy-timeout.c: In function 'main':
pipe-policy-timeout.c:91:91: warning: passing argument 4 of 'Usb.GetPipePolicy' from incompatible pointer type [-Wincompatible-pointer-types]
   91 |                 success = Usb.GetPipePolicy(usbHandle, EP_ADDRESS, PIPE_TRANSFER_TIMEOUT, &policyLength, &pipeTimeout);
      |                                                                                           ^~~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           ULONG * {aka long unsigned int *}
pipe-policy-timeout.c:91:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
pipe-policy-timeout.c:143:56: warning: passing argument 3 of 'OvlK_WaitAndRelease' from incompatible pointer type [-Wincompatible-pointer-types]
  143 |                 if (OvlK_WaitAndRelease(ovlItem, 1000, &transferredLength))
      |                                                        ^~~~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from pipe-policy-timeout.c:25:
../../includes/libusbk.h:4613:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4613 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/pipe-policy-timeout.exe bin/x86/pipe-policy-timeout_rc.o bin/x86/pipe-policy-timeout.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-sync  all
[K] Multi-lib support = No
[K] Running xfer-sync PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-sync_rc.rc -o bin/x86/xfer-sync_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-sync.c -o bin/x86/xfer-sync.o
xfer-sync.c: In function 'main':
xfer-sync.c:84:99: warning: passing argument 5 of 'Usb.ReadPipe' from incompatible pointer type [-Wincompatible-pointer-types]
   84 |                         success = Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                   ^~~~~~~~~~~~~~~~~~
      |                                                                                                   |
      |                                                                                                   ULONG * {aka long unsigned int *}
xfer-sync.c:84:99: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
xfer-sync.c:86:100: warning: passing argument 5 of 'Usb.WritePipe' from incompatible pointer type [-Wincompatible-pointer-types]
   86 |                         success = Usb.WritePipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                    ^~~~~~~~~~~~~~~~~~
      |                                                                                                    |
      |                                                                                                    ULONG * {aka long unsigned int *}
xfer-sync.c:86:100: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-sync.exe bin/x86/xfer-sync_rc.o bin/x86/xfer-sync.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-async  all
[K] Multi-lib support = No
[K] Running xfer-async PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-async_rc.rc -o bin/x86/xfer-async_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-async.c -o bin/x86/xfer-async.o
xfer-async.c: In function 'main':
xfer-async.c:150:87: warning: passing argument 3 of 'OvlK_WaitOrCancel' from incompatible pointer type [-Wincompatible-pointer-types]
  150 |                         success = OvlK_WaitOrCancel(myRequest->Ovl, ASYNC_TIMEOUT_MS, &myRequest->TransferLength);
      |                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-async.c:25:
../../includes/libusbk.h:4586:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 4586 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-async.exe bin/x86/xfer-async_rc.o bin/x86/xfer-async.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-stream  all
[K] Multi-lib support = No
[K] Running xfer-stream PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-stream_rc.rc -o bin/x86/xfer-stream_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-stream.c -o bin/x86/xfer-stream.o
xfer-stream.c: In function 'main':
xfer-stream.c:112:90: warning: passing argument 5 of 'StmK_Read' from incompatible pointer type [-Wincompatible-pointer-types]
  112 |                         success = StmK_Read(streamHandle, myBuffer, 0, sizeof(myBuffer), &length);
      |                                                                                          ^~~~~~~
      |                                                                                          |
      |                                                                                          ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-stream.c:25:
../../includes/libusbk.h:4799:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4799 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
xfer-stream.c:114:91: warning: passing argument 5 of 'StmK_Write' from incompatible pointer type [-Wincompatible-pointer-types]
  114 |                         success = StmK_Write(streamHandle, myBuffer, 0, sizeof(myBuffer), &length);
      |                                                                                           ^~~~~~~
      |                                                                                           |
      |                                                                                           ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-stream.c:25:
../../includes/libusbk.h:4837:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4837 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-stream.exe bin/x86/xfer-stream_rc.o bin/x86/xfer-stream.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-iso  all
[K] Multi-lib support = No
[K] Running xfer-iso PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-iso_rc.rc -o bin/x86/xfer-iso_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-iso.c -o bin/x86/xfer-iso.o
xfer-iso.c: In function 'main':
xfer-iso.c:450:87: warning: passing argument 3 of 'Usb.GetOverlappedResult' from incompatible pointer type [-Wincompatible-pointer-types]
  450 |                 success = Usb.GetOverlappedResult(usbHandle, nextBufferEL->OvlHandle, &transferred, TRUE);
      |                                                                                       ^~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       ULONG * {aka long unsigned int *}
xfer-iso.c:450:87: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-iso.exe bin/x86/xfer-iso_rc.o bin/x86/xfer-iso.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-async-loop  all
[K] Multi-lib support = No
[K] Running xfer-async-loop PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-async-loop_rc.rc -o bin/x86/xfer-async-loop_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-async-loop.c -o bin/x86/xfer-async-loop.o
xfer-async-loop.c: In function 'Xfer_Wait':
xfer-async-loop.c:176:61: warning: passing argument 3 of 'OvlK_WaitAndRelease' from incompatible pointer type [-Wincompatible-pointer-types]
  176 |         if (!OvlK_WaitAndRelease(PendingList->Ovl, Timeout, &PendingList->Length))
      |                                                             ^~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-async-loop.c:25:
../../includes/libusbk.h:4613:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 4613 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-async-loop.exe bin/x86/xfer-async-loop_rc.o bin/x86/xfer-async-loop.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./power-policy-suspend  all
[K] Multi-lib support = No
[K] Running power-policy-suspend PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 power-policy-suspend_rc.rc -o bin/x86/power-policy-suspend_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c power-policy-suspend.c -o bin/x86/power-policy-suspend.o
power-policy-suspend.c: In function 'main':
power-policy-suspend.c:95:63: warning: passing argument 3 of 'Usb.GetPowerPolicy' from incompatible pointer type [-Wincompatible-pointer-types]
   95 |         success = Usb.GetPowerPolicy(usbHandle, AUTO_SUSPEND, &polLength, &polAutoSuspend);
      |                                                               ^~~~~~~~~~
      |                                                               |
      |                                                               ULONG * {aka long unsigned int *}
power-policy-suspend.c:95:63: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
power-policy-suspend.c:108:64: warning: passing argument 3 of 'Usb.GetPowerPolicy' from incompatible pointer type [-Wincompatible-pointer-types]
  108 |         success = Usb.GetPowerPolicy(usbHandle, SUSPEND_DELAY, &polLength, &polSuspendDelay);
      |                                                                ^~~~~~~~~~
      |                                                                |
      |                                                                ULONG * {aka long unsigned int *}
power-policy-suspend.c:108:64: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/power-policy-suspend.exe bin/x86/power-policy-suspend_rc.o bin/x86/power-policy-suspend.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./pipe-policy-other  all
[K] Multi-lib support = No
[K] Running pipe-policy-other PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 pipe-policy-other_rc.rc -o bin/x86/pipe-policy-other_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c pipe-policy-other.c -o bin/x86/pipe-policy-other.o
pipe-policy-other.c: In function 'main':
pipe-policy-other.c:90:83: warning: passing argument 4 of 'Usb.GetPipePolicy' from incompatible pointer type [-Wincompatible-pointer-types]
   90 |         success = Usb.GetPipePolicy(usbHandle, EP_ADDRESS, MAXIMUM_TRANSFER_SIZE, &polLength, &polValue);
      |                                                                                   ^~~~~~~~~~
      |                                                                                   |
      |                                                                                   ULONG * {aka long unsigned int *}
pipe-policy-other.c:90:83: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
pipe-policy-other.c:146:99: warning: passing argument 5 of 'Usb.ReadPipe' from incompatible pointer type [-Wincompatible-pointer-types]
  146 |                         success = Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                   ^~~~~~~~~~~~~~~~~~
      |                                                                                                   |
      |                                                                                                   ULONG * {aka long unsigned int *}
pipe-policy-other.c:146:99: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
pipe-policy-other.c:148:100: warning: passing argument 5 of 'Usb.WritePipe' from incompatible pointer type [-Wincompatible-pointer-types]
  148 |                         success = Usb.WritePipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                    ^~~~~~~~~~~~~~~~~~
      |                                                                                                    |
      |                                                                                                    ULONG * {aka long unsigned int *}
pipe-policy-other.c:148:100: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/pipe-policy-other.exe bin/x86/pipe-policy-other_rc.o bin/x86/pipe-policy-other.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-iso-read  all
[K] Multi-lib support = No
[K] Running xfer-iso-read PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-iso-read_rc.rc -o bin/x86/xfer-iso-read_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-iso-read.c -o bin/x86/xfer-iso-read.o
xfer-iso-read.c: In function 'main':
xfer-iso-read.c:262:47: warning: passing argument 2 of 'UsbK_GetCurrentFrameNumber' from incompatible pointer type [-Wincompatible-pointer-types]
  262 |         UsbK_GetCurrentFrameNumber(usbHandle, &gXfers.FrameNumber);
      |                                               ^~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-iso-read.c:25:
../../includes/libusbk.h:3939:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 3939 |             _out PUINT FrameNumber);
      |                  ~~~~~~^~~~~~~~~~~
xfer-iso-read.c:311:85: warning: passing argument 4 of 'OvlK_Wait' from incompatible pointer type [-Wincompatible-pointer-types]
  311 |                 success = OvlK_Wait(nextXfer->OvlHandle, 1000, KOVL_WAIT_FLAG_NONE, &transferred);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-iso-read.c:25:
../../includes/libusbk.h:4531:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4531 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
xfer-iso-read.c:336:63: warning: passing argument 3 of 'OvlK_WaitOrCancel' from incompatible pointer type [-Wincompatible-pointer-types]
  336 |                 OvlK_WaitOrCancel(nextBufferEL->OvlHandle, 0, &transferred);
      |                                                               ^~~~~~~~~~~~
      |                                                               |
      |                                                               ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-iso-read.c:25:
../../includes/libusbk.h:4586:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4586 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-iso-read.exe bin/x86/xfer-iso-read_rc.o bin/x86/xfer-iso-read.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-control  all
[K] Multi-lib support = No
[K] Running xfer-control PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-control_rc.rc -o bin/x86/xfer-control_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-control.c -o bin/x86/xfer-control.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-control.exe bin/x86/xfer-control_rc.o bin/x86/xfer-control.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./enum_descriptors  all
[K] Multi-lib support = No
[K] Running enum_descriptors PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 enum_descriptors_rc.rc -o bin/x86/enum_descriptors_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c enum_descriptors.c -o bin/x86/enum_descriptors.o
enum_descriptors.c: In function 'main':
enum_descriptors.c:154:140: warning: passing argument 7 of 'Usb.GetDescriptor' from incompatible pointer type [-Wincompatible-pointer-types]
  154 |         if (!Usb.GetDescriptor(usbHandle, USB_DESCRIPTOR_TYPE_CONFIGURATION, 0, 0, configDescriptorBuffer, sizeof(configDescriptorBuffer), &lengthTransferred))
      |                                                                                                                                            ^~~~~~~~~~~~~~~~~~
      |                                                                                                                                            |
      |                                                                                                                                            DWORD * {aka long unsigned int *}
enum_descriptors.c:154:140: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/enum_descriptors.exe bin/x86/enum_descriptors_rc.o bin/x86/enum_descriptors.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-stream-loop  all
[K] Multi-lib support = No
[K] Running xfer-stream-loop PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-stream-loop_rc.rc -o bin/x86/xfer-stream-loop_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-stream-loop.c -o bin/x86/xfer-stream-loop.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-stream-loop.exe bin/x86/xfer-stream-loop_rc.o bin/x86/xfer-stream-loop.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-control-loop  all
[K] Multi-lib support = No
[K] Running xfer-control-loop PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-i386 xfer-control-loop_rc.rc -o bin/x86/xfer-control-loop_rc.o
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-control-loop.c -o bin/x86/xfer-control-loop.o
xfer-control-loop.c: In function 'Xfer_Wait':
xfer-control-loop.c:208:61: warning: passing argument 3 of 'OvlK_WaitAndRelease' from incompatible pointer type [-Wincompatible-pointer-types]
  208 |         if (!OvlK_WaitAndRelease(PendingList->Ovl, Timeout, &PendingList->Length))
      |                                                             ^~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-control-loop.c:25:
../../includes/libusbk.h:4613:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 4613 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/x86/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m32 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/x86/xfer-control-loop.exe bin/x86/xfer-control-loop_rc.o bin/x86/xfer-control-loop.o bin/x86/examples.o -L../../bin/dll/x86/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

For MSYS 2 mingw64, the detection of the 64bit architecture does not work. So I have to use the following dirty patch.

$ diff examples-project.mkinc examples-project_org.mkinc
53c53
< #ifeq ("$(ARCH)","amd64")
---
> ifeq ("$(ARCH)","amd64")
58,64c58,64
< #endif
< #ifneq ("$(ARCH)","amd64")
< #override ARCH:=x86
< #ARCH_MSVC:=Win32
< #MACHINE:=-m32
< #RC_PE_TARGET:=--target=pe-i386
< #endif
---
> endif
> ifneq ("$(ARCH)","amd64")
> override ARCH:=x86
> ARCH_MSVC:=Win32
> MACHINE:=-m32
> RC_PE_TARGET:=--target=pe-i386
> endif

Build log.

click for the full build log
$ make -f GNUmakefile
[K] Running examples SOLUTION makefile..
make --no-print-directory --directory=./hot-plug-monitor  all
[K] Multi-lib support = No
[K] Running hot-plug-monitor PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 hot-plug-monitor_rc.rc -o bin/amd64/hot-plug-monitor_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c hot-plug-monitor.c -o bin/amd64/hot-plug-monitor.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/hot-plug-monitor.exe bin/amd64/hot-plug-monitor_rc.o bin/amd64/hot-plug-monitor.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./load-driver-api  all
[K] Multi-lib support = No
[K] Running load-driver-api PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 load-driver-api_rc.rc -o bin/amd64/load-driver-api_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c load-driver-api.c -o bin/amd64/load-driver-api.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/load-driver-api.exe bin/amd64/load-driver-api_rc.o bin/amd64/load-driver-api.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./show-device  all
[K] Multi-lib support = No
[K] Running show-device PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 show-device_rc.rc -o bin/amd64/show-device_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c show-device.c -o bin/amd64/show-device.o
show-device.c: In function 'main':
show-device.c:64:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
   64 |         LstK_Count(deviceList, &count);
      |                                ^~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from show-device.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/show-device.exe bin/amd64/show-device_rc.o bin/amd64/show-device.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./open-device  all
[K] Multi-lib support = No
[K] Running open-device PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 open-device_rc.rc -o bin/amd64/open-device_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c open-device.c -o bin/amd64/open-device.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/open-device.exe bin/amd64/open-device_rc.o bin/amd64/open-device.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./config-interface  all
[K] Multi-lib support = No
[K] Running config-interface PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 config-interface_rc.rc -o bin/amd64/config-interface_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c config-interface.c -o bin/amd64/config-interface.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/config-interface.exe bin/amd64/config-interface_rc.o bin/amd64/config-interface.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./pipe-policy-timeout  all
[K] Multi-lib support = No
[K] Running pipe-policy-timeout PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 pipe-policy-timeout_rc.rc -o bin/amd64/pipe-policy-timeout_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c pipe-policy-timeout.c -o bin/amd64/pipe-policy-timeout.o
pipe-policy-timeout.c: In function 'main':
pipe-policy-timeout.c:91:91: warning: passing argument 4 of 'Usb.GetPipePolicy' from incompatible pointer type [-Wincompatible-pointer-types]
   91 |                 success = Usb.GetPipePolicy(usbHandle, EP_ADDRESS, PIPE_TRANSFER_TIMEOUT, &policyLength, &pipeTimeout);
      |                                                                                           ^~~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           ULONG * {aka long unsigned int *}
pipe-policy-timeout.c:91:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
pipe-policy-timeout.c:143:56: warning: passing argument 3 of 'OvlK_WaitAndRelease' from incompatible pointer type [-Wincompatible-pointer-types]
  143 |                 if (OvlK_WaitAndRelease(ovlItem, 1000, &transferredLength))
      |                                                        ^~~~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from pipe-policy-timeout.c:25:
../../includes/libusbk.h:4613:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4613 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/pipe-policy-timeout.exe bin/amd64/pipe-policy-timeout_rc.o bin/amd64/pipe-policy-timeout.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-sync  all
[K] Multi-lib support = No
[K] Running xfer-sync PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-sync_rc.rc -o bin/amd64/xfer-sync_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-sync.c -o bin/amd64/xfer-sync.o
xfer-sync.c: In function 'main':
xfer-sync.c:84:99: warning: passing argument 5 of 'Usb.ReadPipe' from incompatible pointer type [-Wincompatible-pointer-types]
   84 |                         success = Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                   ^~~~~~~~~~~~~~~~~~
      |                                                                                                   |
      |                                                                                                   ULONG * {aka long unsigned int *}
xfer-sync.c:84:99: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
xfer-sync.c:86:100: warning: passing argument 5 of 'Usb.WritePipe' from incompatible pointer type [-Wincompatible-pointer-types]
   86 |                         success = Usb.WritePipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                    ^~~~~~~~~~~~~~~~~~
      |                                                                                                    |
      |                                                                                                    ULONG * {aka long unsigned int *}
xfer-sync.c:86:100: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-sync.exe bin/amd64/xfer-sync_rc.o bin/amd64/xfer-sync.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-async  all
[K] Multi-lib support = No
[K] Running xfer-async PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-async_rc.rc -o bin/amd64/xfer-async_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-async.c -o bin/amd64/xfer-async.o
xfer-async.c: In function 'main':
xfer-async.c:150:87: warning: passing argument 3 of 'OvlK_WaitOrCancel' from incompatible pointer type [-Wincompatible-pointer-types]
  150 |                         success = OvlK_WaitOrCancel(myRequest->Ovl, ASYNC_TIMEOUT_MS, &myRequest->TransferLength);
      |                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-async.c:25:
../../includes/libusbk.h:4586:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 4586 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-async.exe bin/amd64/xfer-async_rc.o bin/amd64/xfer-async.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-stream  all
[K] Multi-lib support = No
[K] Running xfer-stream PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-stream_rc.rc -o bin/amd64/xfer-stream_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-stream.c -o bin/amd64/xfer-stream.o
xfer-stream.c: In function 'main':
xfer-stream.c:112:90: warning: passing argument 5 of 'StmK_Read' from incompatible pointer type [-Wincompatible-pointer-types]
  112 |                         success = StmK_Read(streamHandle, myBuffer, 0, sizeof(myBuffer), &length);
      |                                                                                          ^~~~~~~
      |                                                                                          |
      |                                                                                          ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-stream.c:25:
../../includes/libusbk.h:4799:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4799 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
xfer-stream.c:114:91: warning: passing argument 5 of 'StmK_Write' from incompatible pointer type [-Wincompatible-pointer-types]
  114 |                         success = StmK_Write(streamHandle, myBuffer, 0, sizeof(myBuffer), &length);
      |                                                                                           ^~~~~~~
      |                                                                                           |
      |                                                                                           ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-stream.c:25:
../../includes/libusbk.h:4837:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4837 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-stream.exe bin/amd64/xfer-stream_rc.o bin/amd64/xfer-stream.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-iso  all
[K] Multi-lib support = No
[K] Running xfer-iso PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-iso_rc.rc -o bin/amd64/xfer-iso_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-iso.c -o bin/amd64/xfer-iso.o
xfer-iso.c: In function 'main':
xfer-iso.c:450:87: warning: passing argument 3 of 'Usb.GetOverlappedResult' from incompatible pointer type [-Wincompatible-pointer-types]
  450 |                 success = Usb.GetOverlappedResult(usbHandle, nextBufferEL->OvlHandle, &transferred, TRUE);
      |                                                                                       ^~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       ULONG * {aka long unsigned int *}
xfer-iso.c:450:87: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-iso.exe bin/amd64/xfer-iso_rc.o bin/amd64/xfer-iso.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-async-loop  all
[K] Multi-lib support = No
[K] Running xfer-async-loop PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-async-loop_rc.rc -o bin/amd64/xfer-async-loop_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-async-loop.c -o bin/amd64/xfer-async-loop.o
xfer-async-loop.c: In function 'Xfer_Wait':
xfer-async-loop.c:176:61: warning: passing argument 3 of 'OvlK_WaitAndRelease' from incompatible pointer type [-Wincompatible-pointer-types]
  176 |         if (!OvlK_WaitAndRelease(PendingList->Ovl, Timeout, &PendingList->Length))
      |                                                             ^~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-async-loop.c:25:
../../includes/libusbk.h:4613:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 4613 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-async-loop.exe bin/amd64/xfer-async-loop_rc.o bin/amd64/xfer-async-loop.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./power-policy-suspend  all
[K] Multi-lib support = No
[K] Running power-policy-suspend PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 power-policy-suspend_rc.rc -o bin/amd64/power-policy-suspend_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c power-policy-suspend.c -o bin/amd64/power-policy-suspend.o
power-policy-suspend.c: In function 'main':
power-policy-suspend.c:95:63: warning: passing argument 3 of 'Usb.GetPowerPolicy' from incompatible pointer type [-Wincompatible-pointer-types]
   95 |         success = Usb.GetPowerPolicy(usbHandle, AUTO_SUSPEND, &polLength, &polAutoSuspend);
      |                                                               ^~~~~~~~~~
      |                                                               |
      |                                                               ULONG * {aka long unsigned int *}
power-policy-suspend.c:95:63: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
power-policy-suspend.c:108:64: warning: passing argument 3 of 'Usb.GetPowerPolicy' from incompatible pointer type [-Wincompatible-pointer-types]
  108 |         success = Usb.GetPowerPolicy(usbHandle, SUSPEND_DELAY, &polLength, &polSuspendDelay);
      |                                                                ^~~~~~~~~~
      |                                                                |
      |                                                                ULONG * {aka long unsigned int *}
power-policy-suspend.c:108:64: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/power-policy-suspend.exe bin/amd64/power-policy-suspend_rc.o bin/amd64/power-policy-suspend.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./pipe-policy-other  all
[K] Multi-lib support = No
[K] Running pipe-policy-other PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 pipe-policy-other_rc.rc -o bin/amd64/pipe-policy-other_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c pipe-policy-other.c -o bin/amd64/pipe-policy-other.o
pipe-policy-other.c: In function 'main':
pipe-policy-other.c:90:83: warning: passing argument 4 of 'Usb.GetPipePolicy' from incompatible pointer type [-Wincompatible-pointer-types]
   90 |         success = Usb.GetPipePolicy(usbHandle, EP_ADDRESS, MAXIMUM_TRANSFER_SIZE, &polLength, &polValue);
      |                                                                                   ^~~~~~~~~~
      |                                                                                   |
      |                                                                                   ULONG * {aka long unsigned int *}
pipe-policy-other.c:90:83: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
pipe-policy-other.c:146:99: warning: passing argument 5 of 'Usb.ReadPipe' from incompatible pointer type [-Wincompatible-pointer-types]
  146 |                         success = Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                   ^~~~~~~~~~~~~~~~~~
      |                                                                                                   |
      |                                                                                                   ULONG * {aka long unsigned int *}
pipe-policy-other.c:146:99: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
pipe-policy-other.c:148:100: warning: passing argument 5 of 'Usb.WritePipe' from incompatible pointer type [-Wincompatible-pointer-types]
  148 |                         success = Usb.WritePipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);
      |                                                                                                    ^~~~~~~~~~~~~~~~~~
      |                                                                                                    |
      |                                                                                                    ULONG * {aka long unsigned int *}
pipe-policy-other.c:148:100: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/pipe-policy-other.exe bin/amd64/pipe-policy-other_rc.o bin/amd64/pipe-policy-other.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-iso-read  all
[K] Multi-lib support = No
[K] Running xfer-iso-read PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-iso-read_rc.rc -o bin/amd64/xfer-iso-read_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-iso-read.c -o bin/amd64/xfer-iso-read.o
xfer-iso-read.c: In function 'main':
xfer-iso-read.c:262:47: warning: passing argument 2 of 'UsbK_GetCurrentFrameNumber' from incompatible pointer type [-Wincompatible-pointer-types]
  262 |         UsbK_GetCurrentFrameNumber(usbHandle, &gXfers.FrameNumber);
      |                                               ^~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-iso-read.c:25:
../../includes/libusbk.h:3939:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 3939 |             _out PUINT FrameNumber);
      |                  ~~~~~~^~~~~~~~~~~
xfer-iso-read.c:311:85: warning: passing argument 4 of 'OvlK_Wait' from incompatible pointer type [-Wincompatible-pointer-types]
  311 |                 success = OvlK_Wait(nextXfer->OvlHandle, 1000, KOVL_WAIT_FLAG_NONE, &transferred);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-iso-read.c:25:
../../includes/libusbk.h:4531:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4531 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
xfer-iso-read.c:336:63: warning: passing argument 3 of 'OvlK_WaitOrCancel' from incompatible pointer type [-Wincompatible-pointer-types]
  336 |                 OvlK_WaitOrCancel(nextBufferEL->OvlHandle, 0, &transferred);
      |                                                               ^~~~~~~~~~~~
      |                                                               |
      |                                                               ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-iso-read.c:25:
../../includes/libusbk.h:4586:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4586 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-iso-read.exe bin/amd64/xfer-iso-read_rc.o bin/amd64/xfer-iso-read.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-control  all
[K] Multi-lib support = No
[K] Running xfer-control PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-control_rc.rc -o bin/amd64/xfer-control_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-control.c -o bin/amd64/xfer-control.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-control.exe bin/amd64/xfer-control_rc.o bin/amd64/xfer-control.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./enum_descriptors  all
[K] Multi-lib support = No
[K] Running enum_descriptors PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 enum_descriptors_rc.rc -o bin/amd64/enum_descriptors_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c enum_descriptors.c -o bin/amd64/enum_descriptors.o
enum_descriptors.c: In function 'main':
enum_descriptors.c:154:140: warning: passing argument 7 of 'Usb.GetDescriptor' from incompatible pointer type [-Wincompatible-pointer-types]
  154 |         if (!Usb.GetDescriptor(usbHandle, USB_DESCRIPTOR_TYPE_CONFIGURATION, 0, 0, configDescriptorBuffer, sizeof(configDescriptorBuffer), &lengthTransferred))
      |                                                                                                                                            ^~~~~~~~~~~~~~~~~~
      |                                                                                                                                            |
      |                                                                                                                                            DWORD * {aka long unsigned int *}
enum_descriptors.c:154:140: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/enum_descriptors.exe bin/amd64/enum_descriptors_rc.o bin/amd64/enum_descriptors.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-stream-loop  all
[K] Multi-lib support = No
[K] Running xfer-stream-loop PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-stream-loop_rc.rc -o bin/amd64/xfer-stream-loop_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-stream-loop.c -o bin/amd64/xfer-stream-loop.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-stream-loop.exe bin/amd64/xfer-stream-loop_rc.o bin/amd64/xfer-stream-loop.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK
make --no-print-directory --directory=./xfer-control-loop  all
[K] Multi-lib support = No
[K] Running xfer-control-loop PROJECT makefile..
windres -I. -I.. -I../../includes --target=pe-x86-64 xfer-control-loop_rc.rc -o bin/amd64/xfer-control-loop_rc.o
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c xfer-control-loop.c -o bin/amd64/xfer-control-loop.o
xfer-control-loop.c: In function 'Xfer_Wait':
xfer-control-loop.c:208:61: warning: passing argument 3 of 'OvlK_WaitAndRelease' from incompatible pointer type [-Wincompatible-pointer-types]
  208 |         if (!OvlK_WaitAndRelease(PendingList->Ovl, Timeout, &PendingList->Length))
      |                                                             ^~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from xfer-control-loop.c:25:
../../includes/libusbk.h:4613:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 4613 |             _out PUINT TransferredLength);
      |                  ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -c ../examples.c -o bin/amd64/examples.o
../examples.c: In function 'Examples_GetTestDeviceEx':
../examples.c:171:32: warning: passing argument 2 of 'LstK_Count' from incompatible pointer type [-Wincompatible-pointer-types]
  171 |         LstK_Count(deviceList, &deviceCount);
      |                                ^~~~~~~~~~~~
      |                                |
      |                                ULONG * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:4328:24: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'ULONG *' {aka 'long unsigned int *'}
 4328 |             _ref PUINT Count);
      |                  ~~~~~~^~~~~
../examples.c: In function 'Bench_Configure':
../examples.c:243:91: warning: passing argument 5 of 'DriverAPI->ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  243 |                 success = DriverAPI->ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                           ^~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DWORD * {aka long unsigned int *}
../examples.c:243:91: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
../examples.c:245:85: warning: passing argument 5 of 'UsbK_ControlTransfer' from incompatible pointer type [-Wincompatible-pointer-types]
  245 |                 success = UsbK_ControlTransfer(UsbHandle, Pkt, (PUCHAR)TestType, 1, &transferred, NULL);
      |                                                                                     ^~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     DWORD * {aka long unsigned int *}
In file included from ../examples.h:10,
                 from ../examples.c:25:
../../includes/libusbk.h:3105:27: note: expected 'PUINT' {aka 'unsigned int *'} but argument is of type 'DWORD *' {aka 'long unsigned int *'}
 3105 |             _outopt PUINT LengthTransferred,
      |                     ~~~~~~^~~~~~~~~~~~~~~~~
gcc -m64 -I. -I.. -I../../includes -mconsole -mwin32 -s -O2 -o ./bin/amd64/xfer-control-loop.exe bin/amd64/xfer-control-loop_rc.o bin/amd64/xfer-control-loop.o bin/amd64/examples.o -L../../bin/dll/amd64/ -Wl,--kill-at,--enable-stdcall-fixup -lkernel32 -luser32 -lusbK

from libusbk.

Ying-Pin-Wu avatar Ying-Pin-Wu commented on June 4, 2024

Probably gendef can help if you really want to create the import library. https://sourceforge.net/p/mingw-w64/wiki2/gendef/ https://sourceforge.net/p/mingw-w64/wiki2/Answer%20generation%20of%20DLL%20import%20library/

Here are the MSYS2 mingw64/mingw32 import library for you testing. mingw_msys2.zip

Thank you for your help, I can link library successful

I was trying to generate .def via reimp , but it fail and show "invalid or corrupt import library".
following your step by using gendef, it work for me .

from libusbk.

mcuee avatar mcuee commented on June 4, 2024

Close this one for now. I will create new issues if there are changes and the changes are significant enough to make a new release.

from libusbk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.