• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >vc/mfc > 快疯了,有哪位大大对RPCAPI比较熟的,指点一下~

快疯了,有哪位大大对RPCAPI比较熟的,指点一下~

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-04

佚名通过本文主要向大家介绍了谢娜再疯也有张杰宠,疯组词有哪些,极疯界有什么mod,来疯守护有什么用,暴疯语有粤语版吗等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 快疯了,有哪位大大对 RPC API 比较熟的,指点一下~
描述:

这里的大大,有谁对类似这样的 RPC  API 比较熟悉的
NdrConformantArrayMarshall
NdrProxySendReceive
NdrXXXXXXXXXX....
.......
.......
我想了解,在什么样的情况下,会用到这样的 RPC  API ,
最好有个简单的例子模板,不知道大大们对这些有没有研究了。。。
实在是没办法了。。
活生生找了两天的资料,没看到一篇是讲这些的,都快疯了。。。。


解决方案1:

msdn的rpc主題 帶了sample的
  
Platform SDK: Remote Procedure Call 
Examples
The Platform SDK includes examples that demonstrate a variety of Remote Procedure Call (RPC) concepts, as follows: 
ASYNCRPC illustrates the structure of an RPC application that uses asynchronous remote procedure calls. It also demonstrates various methods of notification of the call's completion. 
CALLBACK demonstrates use of the [callback] attribute. 
CLUUID demonstrates use of the client-object UUID to enable a client to select from multiple implementations of a remote procedure. 
DATA directory contains four programs: DUNION illustrates discriminated (nonencapsulated) unions; INOUT demonstrates [in, out] parameters; REPAS demonstrates the [represent_as] attribute; XMIT demonstrates the [transmit_as] attribute. 
DICT is a remote splay tree-based dictionary program that uses the [implicit_handle], [context_handle], [in] attribute, and [out] attribute. 
DOCTOR is an RPC psychotherapy application that demonstrates arrays, strings, and the [size_is] attribute. 
DYNEPT demonstrates a client application managing its connection to the server through dynamic endpoints. 
DYNOUT demonstrates how to allocate memory at a server for an n-byte object and pass it back to the client as an [out]-only parameter. The client then frees the memory. This technique allows the stub to call the server without knowing in advance how much data will be returned. 
HANDLES directory contains three programs, AUTO, CXHNDL, USRDEF, which demonstrate [auto_handle], [context_handle], and generic (user-defined) handles, respectively. 
HELLO is a client/server implementation of "Hello, world." 
INTEROP demonstrates portability between Open Software Foundation–Distributed Computing Environment (OSF-DCE) and Microsoft? RPC. 
MANDEL is a distributed fractal drawing program. It uses [ref] pointers, the [implicit_handle] attribute, and handle_t primitive types. 
NS directory contains the NHELLO program, which demonstrates name service usage. The CDS directory contains the files that describe the gateway protocol to the DCE Cell Directory Service (CDS). 
OBJECT directory contains two programs that demonstrate OLE custom interfaces. CALLAS uses the [call_as] attribute to transmit a nonremotable interface. OHELLO demonstrates correct reference counting and shutdown behavior for a multiple-use local server. OHELLO also demonstrates how to use the Windows registry functions to install a local server and a proxy DLL in the registry. 
PICKLE directory contains two programs: PICKLP demonstrates data procedure serialization; PICKLT demonstrates data type serialization; both programs use the [encode] and [decode] attributes. 
PIPES demonstrates the use of the pipe type constructor. 
RPCSSM demonstrates the RPCSS memory management model. 
RPCSVC demonstrates the implementation of a Windows NT?/Windows? 2000? service with RPC. 
STROUT demonstrates how to allocate memory at a server for a two-dimensional object (an array of pointers) and pass it back to the client as an [out]-only parameter. The client then frees the memory. This technique allows the stub to call the server without knowing in advance how much data will be returned. 
This program also allows the user to compile either for UNICODE or ANSI. 
You can browse through most of these files in Reference/Code Samples/NETDS/RPC in the Platform SDK. All of the source files and makefiles for these programs are located in the SDK at mstools\samples\rpc.
Platform SDK Release: August 2001  What did you think of this topic?
Let us know.  Order a Platform SDK CD Online
(U.S/Canada)   (International) 
 


分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 快疯了,有哪位大大对RPCAPI比较熟的,指点一下~

相关文章

  • 2017-06-04 自己开发的ActiveX控件,在程序中不用DDX_Control绑定,如何使用它?
  • 2017-06-05 请高手看一下程序,关于线程
  • 2017-06-05 IShockwaveFlashRICHEDITOLE
  • 2017-06-05 请问打开进程访问信令意味着什么?OpenProcessToken
  • 2017-06-04 MSCHAR问题!谢谢!
  • 2017-06-05 我想创建一个可以规定线程数量的线程池,请问我该怎么做???
  • 2017-06-05 Thethread0x1BCChasexitedwithcode00x0是什么意思,怎么那么多?
  • 2017-06-05 关于windows服务程序的问题
  • 2017-06-04 ActiveX控件子类话
  • 2017-06-04 不调CoUninitialize会否有问题?

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • DLL使用的问题:
    • !!关于DLL函数导入导出的问题!!
    • 请教用VC控制excel
    • 测试问题,请教高手
    • 如何用C写ACTIVEX控件的程序?
    • IClassFactory2接口的几个疑问
    • 如何在dll中调用属性对话框?
    • ATL开发出的COM组件封装了ADO功能,在本机执行可以连接数据库,而远程调用COM则连接失败,请大家指点。
    • 急急急VsFlexGrid自带的例子BigDemo打印预览出现乱码
    • 关于服务中使用wordapplication

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有