// --proxygen.h-----------------------------------------------------------------
//
// Copyright (c) Microsoft Corp. 1986-1996. All Rights Reserved.
//
// Specification for the required implementation of a proxy generation DLL
// for an installed address-type.
//
// Functions in this DLL will be called in the following order:
//
// RcInitProxies
// |
// |<----------------------------------+
// | |
// +-----------------------+ |
// | | |
// RcGenerateProxy RcValidateProxy |
// | | |
// | | |
// | | |
// FreeProxy | |
// | | |
// +-----------------------+-----------+
// |
// |
// |
// Close
//
//------------------------------------------------------------------------------
#if !defined(_PROXYGEN_H)
#define _PROXYGEN_H
#include <windows.h>
#include <retcode.h> // RC
#include <proxyinf.h> // RECIPIENTINFO structures
//$--RcInitProxies--------------------------------------------------------------
// Requests that the proxy generation DLL do any initializaton required before
// calling the GenerateProxy function with individual recipient objects.
// This function is not permitted to generate any UI as proxy generation
// should all be done silently without user intervention. If the implementor
// desires, this function may do nothing other than make the site specific
// information accessible to the GenerateProxy and ValidateProxy functions.
// Init is primarily included for efficiency purposes so that the implementor
// may do any common processing in this function as it is likely that a large
// number of proxies will be generated at one time during an address-type
// install or update.
//
// Input Parameters
// pszSiteProxy The site proxy for this address-type. Generally used
// as part of the recipient proxy. May be NULL (this is
// address-type dependent) if not used or not set yet.
// pszServer The name of the server that the proxy DLL is being
// used on.
//
// Note: these 2 pointers are guaranteed to be stay valid until after Close is
// called so the DLL need only keep a copy of these pointers rather than copy
// the data. Or, the DLL can copy the data with the same result as the
// information these structures point to will not change until after Close is
// called.
//
// Output Parameters
// hProxySession Handle to a proxy session. Any storage associated
// with this handle which is allocated by Init must be
// freed by Close
//
// Returns:
// RC_SUCCESS Success
// RC_IMPLEMENTATION Proxies are not implemented for this address type.
// No proxies will be stored. The Generate and Close entry
// points to this DLL are undefined. User will not be
// notified as this is a supported configuration.
// RC_MEMORY Memory allocation failure
// RC_ERROR General failure. User will be notified of inability
// to generate proxies for this address type.
//------------------------------------------------------------------------------
RC RcInitProxies(IN LPWSTR pszSiteProxy,
IN LPWSTR pszServer,
OUT HANDLE *phProxySession);
//$--RcGenerateProxy------------------------------------------------------------
// Returns a single proxy address as a unicode string. This function is not
// permitted to generate any UI as proxy generation should all be done silently
// without user intervention.
//
// Input Parameters:
// hProxySession Handle to the proxy session previously returned by
// Init.
// pRecipientInfo The recipient specific details for this recipient.
// Used along with the Site Proxy
// information and nRetries by Generate to algorithmically
// generate a site-unique recipient proxy in the
// addressing format of the foreign address-type.
// nRetries The number of times this function has previously been
// called with this value for pRecipientInfo. When ProxyGen
// is called with the same pRecipientInfo but different
// nRetries values it should endeavour to return a different
// proxy address. However, the maximum value which an
// an implementation supports for nRetries is
// implementation specific (may be 0).
//
// Output Parameters:
// ppszProxyAddr The foreign format (proxy) address which is generated.
// This must be a unicode string. This is allocated by the
// Generate function but must be freed by the calling code
// by calling FreeProxy.
// The proxy should be of the form "TYPE:VALUE"
//
// Returns:
// RC_SUCCESS Success
// RC_MEMORY Memory allocation failure
// RC_ERROR Cannot generate proxy address, Possibile problems are:
// - nRetries is too high, cannot generate any more unique
// proxies.
// - site specific info incomplete
// - per recipient info incomplete
//------------------------------------------------------------------------------
RC RcGenerateProxy(IN HANDLE hProxySession,
IN PRECIPIENTINFO pRecipientInfo,
IN int nRetries,
OUT LPWSTR * ppszProxyAddr);
//$--RcUpdateProxy------------------------------------------------------------
// Compares the site proxy part of a proxy to an "old" site proxy. If
// they match then replace the "old" site proxy in the proxy with the "new
// site proxy. All input parameters have the address type as a prefix.
//
// Input Parameters:
// hProxySession Handle to the proxy session previously returned by
// Init.
// pRecipientInfo The recipient specific details for this recipient.
// pwstrOldSiteProxy "Old" site proxy.
// pwstrNewSiteProxy "New" site proxy.
// pwstrProxy The proxy to be modified.
// pUnused unused
//
// Output Parameters:
// pwstrProxy The modified proxy.
//
// Returns:
// RC_SUCCESS Success
// RC_MEMORY Memory allocation failure
// RC_ERROR Cannot generate new proxy address
//------------------------------------------------------------------------------
RC RcUpdateProxy(IN HANDLE hProxySession,
IN PRECIPIENTINFO pRecipientInfo,
IN LPWSTR pwstrOldSiteProxy,
IN LPWSTR pwstrNewSiteProxy,
IN OUT LPWSTR pwstrProxy,
IN VOID * pUnused);
//$--RcValidateProxy------------------------------------------------------------
// Given a unicode string it validates that this string represents a valid
// address of the appropriate foreign type. This is called to verify manually
// generated proxies are legal.
//
// Input Parameters:
// hProxySession Handle to the proxy session previously returned by
// Init.
// pszProxyAddr The foreign format (proxy) address to be validated
// including the prefixed address type.
// If the proxy dll can make an invalid proxy (because
// of invalid characters, etc.) into a valid proxy then
// return the corrected proxy in this location and
// return TRUE in *pisValid. The caller will have made
// allowances for a possibly longer returned proxy string.
//
// Output Parameters:
// pisValid TRUE if valid, FALSE if not. TRUE if return code
// is RC_IMPLEMENTATION. Undefined if return code is
// RC_ERROR or RC_MEMORY.
//
// Returns:
// RC_SUCCESS Success
// RC_IMPLEMENTATION Proxy validation not implemented. The caller
// should assume the entered proxy is valid and let the
// gateway or foreign system advise otherwise if neccesary.
// RC_MEMORY Memory allocation failure
// RC_ERROR Implementation specific error.
//-----
没有合适的资源?快使用搜索试试~ 我知道了~
C语言头文件 PROXYGEN
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共1个文件
h:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 115 浏览量
2022-06-13
07:02:39
上传
评论
收藏 3KB RAR 举报
温馨提示
C语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文件 PROXYGENC语言头文
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![h](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 1 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
大富大贵7
- 粉丝: 324
- 资源: 8868
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- Docker-Configuration-and-Usage-Guide.md
- MATLAB中colorbar的设置
- A33-Core3核心板硬件手册外围电路设计参考配套开发底板(DSN格式原理图+Protel及PADS PCB图)文件.zip
- javaweb中jsp相关知识 代码及笔记
- Unified Procedural Animation 4.27.zip
- An Introduction to MySQL Database
- 基于MATLAB实现学生成绩查询系统
- 23043721-1.STP
- proteus仿真-基于51单片机的PWM温度控制实例
- 基于MATLAB实现图像去噪 滤波 锐化 边缘检测 源程序代码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)