Results 1 to 3 of 3

Thread: MSN Messenger custom emoticons

  1. #1

    Thread Starter
    Member vm360's Avatar
    Join Date
    Oct 2001
    Location
    Argentina
    Posts
    52

    MSN Messenger custom emoticons

    I was reading at this page http://www.msnfanatic.com/forums/ind...pic=9361&st=0& that it's possible to decrypt MSN Messenger's map.dat (%appdata%\Microsoft\MSN Messenger\<user id>\CustomEmoticons) file which has information about custom emoticons. There's a code sample there, but I don't understand it and can't get it to work. Can someone please explain it? Check it out:

    Dim abytPassword() As Byte
    Dim abytDataIn() As Byte
    Dim abytDataOut() As Byte
    Dim udtDataOut As DATA_BLOB
    Dim udtDataIn As DATA_BLOB
    Dim udtPw As DATA_BLOB

    abytPassword = StrConv(sPassword, vbFromUnicode)
    udtPw.cbData = UBound(abytPassword) + 1
    udtPw.pbData = VarPtr(abytPassword(0))

    abytDataIn = StrConv(sData, vbFromUnicode)
    udtDataIn.cbData = UBound(abytDataIn) + 1
    udtDataIn.pbData = VarPtr(abytDataIn(0))

    Call CryptUnprotectData(udtDataIn, vbNullString, udtPw, ByVal vbNullString, ByVal vbNullString, 0, udtDataOut)

    ReDim abytDataOut(udtDataOut.cbData) As Byte
    Call CopyMemory(abytDataOut(0), ByVal udtDataOut.pbData, udtDataOut.cbData)
    Debug.Print StrConv(Base64_Decode(StrConv(abytDataOut, vbUnicode)), vbFromUnicode)

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Do you have the CryptUnprotectData function...or is it in the MSN API?

  3. #3

    Thread Starter
    Member vm360's Avatar
    Join Date
    Oct 2001
    Location
    Argentina
    Posts
    52
    No, I don't have it. Maybe it's in the MSN API, I don't know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width