|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Win32 API
How can i call win32 API from PHP ?
I would like to use windows authentication (NTLM, Kerberos) on PHP, is it possible ? |
|
#2
|
|||
|
|||
|
RE: Win32 API
Look into these functions :
w32api_deftype w32api_init_dtype w32api_invoke_function w32api_register_function w32api_set_call_method As for authentication try something like : header('WWW-Authenticate: NTLM',true); you may also want to look at the LDAP functions for accessing Active Directory... |
|
#3
|
|||
|
|||
|
RE: Win32 API
I saw this question and it gave me an excuse to try out the functions mentioned above... so I found one big problem with those functions: pointers. Most of the useful library calls requires pointers for return values.. LogonUser is no exception. Creating a pointer became a simple hack, but to be able to clean up the memory I had to make a deref function to do HANDLE = *PHANDLE;
So here ya go: http://codewalkers.com/seecode/111.html |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Win32 API |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|