How does one use the SLOpen()
function from slpublic.h
in the Windows API?
Update
usr@DESKTOP-xxxxx /c/users/usr/Desktop
$ cat main.cpp
#include <cstdio>
#include <windows.h>
#include <slpublic.h>
int main()
{
printf("Hello world\n");
HSLC ptr;
SLOpen(&ptr);
return 0;
}
usr@DESKTOP-xxxxx /c/users/usr/Desktop
$ g++ main.cpp -o app
main.cpp: In function 'int main()':
main.cpp:8:9: error: 'HSLC' was not declared in this scope
8 | HSLC ptr;
| ^~~~
main.cpp:9:17: error: 'ptr' was not declared in this scope
9 | SLOpen(&ptr);
| ^~~
main.cpp:9:9: error: 'SLOpen' was not declared in this scope; did you mean '_lopen'?
9 | SLOpen(&ptr);
| ^~~~~~
| _lopen
usr@DESKTOP-xxxxx /c/users/usr/Desktop
Are there any missing linking switches in the compile command?