Koristi Win32::API i Win32::API::Prototype
Win32::API is a perl extension to import and call functions from any 32-bit DLL (Dynamic Link Library); its main use is to perform "quick and dirty" calls to non otherwise implemented Win32 APIs or third-party or even homegrown DLLs.
primer za stampanje HTML fajla:
$c = new Win32::API("shell32","ShellExecuteA", [N, P, P, P, P, N], N);
$r = $c->Call("ShellExecute Me.hwnd", "Open",
C:\\canonical_path\\index.htm", "C:\\canonical_path\\print", 0);
Pogledaj takodje i :
One of the most useful general purpose extensions for Win32 Perl is Aldo Calpini's Win32::API extension. It allows a Perl script to load any arbitrary dynamic link library (DLL) and call into the library's functions. However the extension is difficult to use and can be complicated for anyone lacking C programming experience. This is why we wrote Win32::API::Prototype. It simplifies using the Win32::API extension by simply specifying a function's prototype.