Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



MCMessageCredentials


Contains credentials that the recipient can use to determine that the message was sent by authorized sender.

Declaration

[C++]
struct MCMessageCredentials {
    char UserName[16],
    char Password[16]
};

[Pascal]
  TMCMessageCredentials = record
    UserName : array[0..15] of byte;
    Password : array[0..15] of byte
  end;

[VB6]
Class MCXMessageCredentials
    Property UserName As Variant
    Property Password As Variant
End Class

[ActiveX]
     interface IMCXMessageCredentials: IDispatch
    {
    HRESULT _stdcall UserName([out, retval] SAFEARRAY(byte) * Value );
    HRESULT _stdcall UserName([in] SAFEARRAY(byte) Value );
    HRESULT _stdcall Password([out, retval] SAFEARRAY(byte) * Value );
    HRESULT _stdcall Password([in] SAFEARRAY(byte) Value );
    };

[C#]
public struct MCMessageCredentials {
    public byte[16] UserName,
    public byte[16] Password
};

[VB.NET]
Public Struct MCMessageCredentials
    Public UserName As Byte()
    Public Password As Byte()
Ens Struct

[Java]
    class MCMessage() {
    String getUserName(),
    void setUserName(String userName),

    String getPassword(),
    void setPassword(String password)
    };

[DLL]
struct MCMessageCredentials {
    char UserName[16],
    long Password[16]
    };

Fields

Description

    MCMessageCredentials structure contains credentials that let message recipient determine whether a message was sent by an authorized sender. It is application's job to keep the list of valid credentials and validate the given credentials. Messenger only fires an event that the application should process if it uses credentials.

Discuss this help topic in MsgConnect Forum