C#调用WIN API的问题,急!!!

webdiyer 2004-02-07 12:46:44
现在的项目中需要将RSA Security公司的SecurID认证集成的我们的Asp.Net项目中,但因为不熟悉Win API编程,不知道该如何在C#中调用下面的API函数:

函数说明文档如下:

Description

int WINAPI AceGetPinParams(
SDI_HANDLE Sdi_handle,
SD_PIN *val)

typedef struct{
SD_CHAR Min;
SD_CHAR Max;
SD_CHAR Selectable;
SD_CHAR Alphanumeric;
SD_CHAR System[LENPRNST+2];
}SD_PIN


The AceGetPinParams function obtains all of the PIN-related parameters at once. It is
helpful to retrieve this value when the result code from AceCheck is
ACM_NEW_PIN_REQUIRED and the Agent is designed to validate that the new PIN
entered by the user conforms to the required PIN characteristics set by the RSA ACE/Server
administrator. Any such checking done by the Agent is simply as a convenience to the user.
The PIN will be fully checked for correctness by the RSA ACE/Server.
Architecture
The caller of this synchronous function must supply, as the second argument, a pointer to a
structure of type SD_PIN, into which the function will copy the PIN parameters.
AceGetPinParams does not allocate storage for the data on its own.
Input Arguments
SdiHandle The value of a handle originally assigned by a call to AceInit.
Val A pointer to a structure of type SD_PIN that will contain
copies of the PIN parameters.
Outputs and Post Conditions
The function returns ACE_SUCCESS if the handle to the authentication data was found and
the PIN value was provided by the function.
Error Handling
A value of ACE_ERR_INVALID_HANDLE is returned if the handle to the authentication
data cannot be found.

试了很多办法都无法解决,因项目时间非常紧,急求高手相助,不胜感激!!
...全文
126 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
rgwfeng2 2004-09-03
  • 打赏
  • 举报
回复

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧