Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cosimo/perl5-win32-api
The Perl Win32 API Import Facility
https://github.com/cosimo/perl5-win32-api
Last synced: 10 days ago
JSON representation
The Perl Win32 API Import Facility
- Host: GitHub
- URL: https://github.com/cosimo/perl5-win32-api
- Owner: cosimo
- Created: 2010-03-17T21:57:32.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-09-19T11:30:03.000Z (about 11 years ago)
- Last Synced: 2023-04-21T10:38:30.981Z (over 1 year ago)
- Language: C
- Homepage: http://search.cpan.org/dist/Win32-API/
- Size: 1.87 MB
- Stars: 9
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
Win32::API - Perl Win32 API Import Facility
===========================================Current maintainer: Cosimo Streppone
Original author: Aldo CalpiniWith this module you can import and call arbitrary functions
from Win32's Dynamic Link Libraries (DLL), without having
to write an XS extension.Note, however, that this module can't really do everything:
parameters input and output is limited to simpler cases.
In particular, when you play hard with pointers and arrays
and memory locations, there are some things that you just
can't do.The current version of Win32::API is available at:
http://search.cpan.org/dist/Win32-API/
Here it is a short example of how you can use this module.
It just gets the PID of the current process, eg. same as Perl's
internal $$:use Win32::API;
Win32::API->Import("kernel32", "int GetCurrentProcessId()");
$PID = GetCurrentProcessId();Full documentation is available in POD format inside API.pm.
The possibilities are nearly infinite (but not all are good :-).
Enjoy it.