'DeclarationPublic Shared Function CryptSignMessage( _ ByRef pSignPara As Crypto.CRYPT_SIGN_MESSAGE_PARA, _ ByVal fDetachedSignature As Boolean, _ ByVal cToBeSigned As Integer, _ ByVal rgpbToBeSigned() As IntPtr, _ ByVal rgcbToBeSigned() As Integer, _ ByVal pbSignedBlob() As Byte, _ ByRef pcbSignedBlob As Integer _ ) As Boolean
'UsageDim pSignPara As Crypto.CRYPT_SIGN_MESSAGE_PARA Dim fDetachedSignature As Boolean Dim cToBeSigned As Integer Dim rgpbToBeSigned() As IntPtr Dim rgcbToBeSigned() As Integer Dim pbSignedBlob() As Byte Dim pcbSignedBlob As Integer Dim value As Boolean value = Crypto.NativeMethods.CryptSignMessage(pSignPara, fDetachedSignature, cToBeSigned, rgpbToBeSigned, rgcbToBeSigned, pbSignedBlob, pcbSignedBlob)
public static bool CryptSignMessage( ref Crypto.CRYPT_SIGN_MESSAGE_PARA pSignPara, bool fDetachedSignature, int cToBeSigned, IntPtr[] rgpbToBeSigned, int[] rgcbToBeSigned, byte[] pbSignedBlob, ref int pcbSignedBlob )
public: static bool CryptSignMessage( Crypto.CRYPT_SIGN_MESSAGE_PARA% pSignPara, bool fDetachedSignature, int cToBeSigned, array<IntPtr>^ rgpbToBeSigned, array<int>^ rgcbToBeSigned, array<byte>^ pbSignedBlob, int% pcbSignedBlob )
Parameters
- pSignPara
- fDetachedSignature
- cToBeSigned
- rgpbToBeSigned
The value of this parameter cannot be
null(Nothingin Visual Basic).- rgcbToBeSigned
The value of this parameter cannot be
null(Nothingin Visual Basic).- pbSignedBlob
The value of this parameter can be
null(Nothingin Visual Basic).- pcbSignedBlob