https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
p

Panayotis Katsaloulis

10/03/2023, 9:46 AM
Hello people. I found something strange on the embedded Windows library. I am in a need to use a specific function (
GetModuleFileNameEx
) which is declared inside
psapi.h
file. This file exists in msys2-mingw environment as installed under
~/.konan/dependencies
. The strange thing is that this function, as well as most (all?) funtions from this file are not provided. What is the correct way to approach this issue? If I create a cinterop with only this file, it is missing declarations. Should I explicitly define it? But then there are problems with the arguments. Is it missing on purpose?