I am dire need for a solution to update XP targetted legacy code being ported to Windows 7. The legacy code uses Remote Procedure Call (RPC) name service series of functions (e.g. RpcNsBindImport(), RpcNsBinding Export()) which are noted in documentation as "function is not supported on Windows Vista and later operating systems."
With me being new with RPC, what in the heck do I use in their replacements instead? I have not found a solution yet.
***ANY HELP OR DIRECTION WOULD BE GREATLY APPRECIATED.***
XP targetted Code sample of incompatiable code for Windows 7 (Bold text denotes problem functions):
RPC_STATUS iStatus = (-1);
(remoteDomain != NULL)
// Make sure the remote domain name is upper case
iStatus = RpcNsBindingImportBegin(RPC_C_NS_SYNTAX_DEFAULT,
iStatus = RpcExceptionCode();
/* The loop is present because the name service may contain "stale" */
/* and unusable binding handlers. This is part of the DCE design. */
(iStatus == RPC_S_OK)
iStatus = RpcNsBindingImportNext(nsHandle, &dHandle);
if (iStatus == RPC_S_NO_MORE_BINDINGS) break
if (iStatus != RPC_S_OK) continue
RpcBindingSetAuthInfo(dHandle, 0, RPC_C_AUTHN_LEVEL_NONE,
RPC_C_AUTHN_WINNT, 0, 0);
(iStatus == RPC_S_OK) iStatus = 0;
useBinding = TRUE;
}Wednesday, November 30, 2011 12:06 AM
The RPC services components are'nt never integrated in Windows Vista and earlier version.
So there is no more compliant function in the future...
Tuesday, March 06, 2012 1:02 PM
- Proposed as answer by GARRO Delphine Tuesday, March 06, 2012 1:02 PM