I know that I can consume COM components but is there a way to directly call into the Win32 API\'s (user32.dll, advapi32.dll etc) from PHP or do I need to wrap in a PHP exte
The win32api support for php is very flaky. Have a look at this
http://php.net/manual/en/book.w32api.php