發表文章

目前顯示的是 3月, 2013的文章

Windows RPC Register in Windows 8

If your application runs in Windows App store, you will meet RPC the old   RpcServerRegisterIf is not work.  When you send from Windows App container, you will get error code: 5 when you are create RPC context. Problem Describe: A : Application in windows App Container. B:  Application in windows A - RPC -> B (not allow) Mainly in Windows App Container is the lowest Integrity, even the low integrity application B can not receive RPC message. The original RPC register in B: {{{ RPC_STATUS status = RpcServerRegisterIf(interfaceHandle, NULL, NULL); if (status!=RPC_S_OK)   {         return FALSE; } status = RpcServerUseProtseqEpW(         (RPC_WSTR)L"ncalrpc", RPC_C_PROTSEQ_MAX_REQS_DEFAULT,           L"BApplicationRPCEndPointName", NULL); if (status)    {       return FALSE; } status = RpcServerListen(1, RPC_C_LISTEN_MAX_CALLS_DEFAULT, 1); if (status)    {       return FALSE; } }}} to solve the problem, you need to use: R