I need to call one function using maximum privileges (NT AUTHORY\System) from other process (IIS7 module work process) running in same local computer in much less privileged mode (NT AUTHORY\Network service).
IIS module will call that function passing some text (user name) and that function need to return HADNLE type witch will be closed after process using CloseHandle function.
( function: LogonUser http://msdn.microsoft.com/en-us/library/aa378184(VS.85).aspx )
What is the best way to do this? COM+, shared memory, named pipes? I don't have any experience in this programming, so i need some help. I don't know how to pass handle type with named pipes? (i saw only examples that are passing only text based messages, not pointers or other data types).