https://bugs.winehq.org/show_bug.cgi?id=47490
--- Comment #4 from Damjan Jovanovic damjan.jov@gmail.com --- (In reply to Damjan Jovanovic from comment #3)
Created attachment 65492 [details] standalone test
I copied your code and changing it to C
Built with mingw-w64, command: gcc lockpic.c -o lockpic.exe -loleaut32 -luuid -lole32 -lshlwapi