I'm trying to check if a remote RCP-server is listening via
'RpcMgmtIsServerListening'. For the parameter I pass a binding-handle to
the remote server (binding-string is "ncacn_ip_tcp:localhost[4747]").
If I then start the remote RPC-server on the same machine
'RpcMgmtIsServerListening' returns 'RPC_S_ACCESS_DENIED'.
Calling functions on the remote-server works fine.
Does anybody know why this error is happening?
Thanks a lot
Gero
When you call RpcMgmt* APIs, you are making a call on the managment
interface (provided by the rpc runtime)To allow calls to the management
interface, you
have to relax the RestrictRemoteClients policy.
You find it under
HKEY_LOCAL_MACHINE\ SOFTWARE\Policies\ Microsoft\Windows NT\RPC
setting 0 : none 1 default 2 high
guess you'll have to set it to 0 to allow the Mgmt functions to work properly
btw do you know of a good in debt guide to rpc programming? Can' seem to
find one.
Regards
Frank
I do not have such a registry-entry. Do I have to create a new one to make
this functions work?
Well, I'd also like to get a whole book about RPC-programming. The only ones
I found at amazon were about 8 years old :-(
Gero
"Fra...@home.com" <Franky...@discussions.microsoft.com> schrieb im
Newsbeitrag news:C4CCAE68-7569-4C4B...@microsoft.com...
http://technet.microsoft.com/en-us/library/209d02c4-877c-4128-8e22-30bcd4aae6d3.aspx
they wrote that a missing key means default behavior
(RPC_RESTRICT_REMOTE_CLIENT_NONE). This seems definitely wrong.
Thanks a lot
Gero
"Fra...@home.com" <Franky...@discussions.microsoft.com> schrieb im
Newsbeitrag news:C4CCAE68-7569-4C4B...@microsoft.com...
Gero
"Fra...@home.com" <Franky...@discussions.microsoft.com> schrieb im
Newsbeitrag news:ADB0F45F-4776-46EC...@microsoft.com...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnic...@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Gero Gerber" <gerog...@gmx.de> wrote in message
news:f1d4pu$41c$1...@tamarack.fernuni-hagen.de...
Gero
"Alexander Nickolov" <agnic...@mvps.org> schrieb im Newsbeitrag
news:Oa6b7taj...@TK2MSFTNGP04.phx.gbl...
Here's an introductory book on COM:
"Inside COM" by Dale Rogerson, MS Press
If you find it too light a reading, consider going straight to the
COM "bible":
"Essential COM" by Don Box, Addison Wesley
And here's the COM newsgroup:
microsoft.public.win32.programmer.ole
Now you should understand that COM is a not the latest and
greatest technology from Microsoft. It is a mature technology,
well understood and well supported in the Microsoft community.
It has its quirks too of course... :) Finally, since it is a higher level
technology than RPC, be prepared to lose some control over
the communication.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnic...@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Gero Gerber" <gerog...@gmx.de> wrote in message
news:f1dlua$q8b$1...@tamarack.fernuni-hagen.de...
Gero
"Alexander Nickolov" <agnic...@mvps.org> schrieb im Newsbeitrag
news:%23Ov64Dn...@TK2MSFTNGP03.phx.gbl...