Koristi Win32::API i Win32::API::Prototype
http://dada.perl.it/Win32-API-0.41.tar.gz
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:
Code:
use Win32::API;
$c = new Win32::API("shell32","ShellExecuteA", [N, P, P, P, P, N], N);
$r = $c->Call("ShellExecute Me.hwnd", "Open",
"C:\\Windows\\rundll32.exe", "C:\\windows\\system\\mshtml.dll,PrintHTML
C:\\canonical_path\\index.htm", "C:\\canonical_path\\print", 0);
Pogledaj takodje i :
http://www.roth.net/perl/packages/win32-api-prototype.ppd.
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.