C#调用WIN API的问题,急!!!
现在的项目中需要将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.
试了很多办法都无法解决,因项目时间非常紧,急求高手相助,不胜感激!!