Forum Post
Index > Scripting > Calling external libraries

Author/Date Calling external libraries
fret
13/03/2007 6:22am
This is an example on how to call external libraries from within Lgi script:
extern int MessageBoxA(HWND, LPCTSTR, LPCTSTR, UINT) in "User32.dll";
extern DWORD GetTempPathA(DWORD, LPTSTR) in "Kernel32.dll";

s.length = 256;
GetTempPathA(s.length, s);
MessageBoxA(Parent, s, "Title", 0);
Reply