Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The Perl Win32 API Import Facility
C Perl C++ Assembly

Merge pull request #9 from sschuberth/master

Add support for building on MSYS in addition to Cygwin
latest commit c5f9fcc6df
@cosimo authored
Failed to load latest commit information.
Callback add stdcal vs cdecl chk, api obj now is RV 2 blessed PV w/ MG HV atta…
api-test regen API_test, Impt doesn't leak now, rtrns obj, M::I creates ::M, c…
patches Added patch to detect fork capabilities and DoTheRightThing
samples General perltidy applied to everything
t version v0.76_03
.gitignore regen API_test, Impt doesn't leak now, rtrns obj, M::I creates ::M, c…
API.h bug fixes, optimizing, WIN32_API_DEBUG GCC, alloca/memcpy replced MSV…
API.pm Merge branch 'patch-1' of github.com:dsteinbrunner/perl5-win32-api
API.xs bug fixes, optimizing, WIN32_API_DEBUG GCC, alloca/memcpy replced MSV…
API_test.dll regen API_test, Impt doesn't leak now, rtrns obj, M::I creates ::M, c…
API_test64.dll version v0.76_03
Call.c bug fixes, optimizing, WIN32_API_DEBUG GCC, alloca/memcpy replced MSV…
Callback.pm Merge branch 'patch-1' of github.com:dsteinbrunner/perl5-win32-api
Changes correct a lie in the POD for Type.pm
IATPatch.pod typo fixes
MANIFEST version 0.76_02
MANIFEST.SKIP do not add MYMETA into dist
META.yml version 0.69, includes updated dlls (I hope)
Makefile.PL Merge pull request #9 from sschuberth/master
README Documented latest changes for 0.66
Struct.pm typo fixes
TODO version 0.76_01
TYPEMAP version 0.71
Test.pm version 0.75
Type.pm Merge branch 'patch-1' of github.com:dsteinbrunner/perl5-win32-api
call_asm_x64_gnu.s version 0.76_01
call_asm_x64_msvc.asm version 0.76_01
call_asm_x86_msvc.asm further optimizations in incoming arg loop, TARG usage, no memcpy
call_i686.c bug fixes, optimizing, WIN32_API_DEBUG GCC, alloca/memcpy replced MSV…
call_i686.h bug fixes, optimizing, WIN32_API_DEBUG GCC, alloca/memcpy replced MSV…
call_x86_64.h remove holes in switch for jumptables, assorted optimization cleanups
ppport.h version 0.71
typemap56 version 0.75

README

Win32::API - Perl Win32 API Import Facility
===========================================

Current maintainer: Cosimo Streppone <cosimo@cpan.org>
Original author:    Aldo Calpini <dada@perl.it>

With 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.
Something went wrong with that request. Please try again.