Results 1 to 27 of 27

Thread: [RESOLVED] [2008] Msn Messenger Display Pictures Editor

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Resolved [RESOLVED] [2008] Msn Messenger Display Pictures Editor

    So I downloaded CE/DP Stealer 6.0 and scanned my pc and found A LOT of old display pictures.
    how can i COMPLETLY delete them from my PC using a program made in VB.Net? I dont want any software to be able to get them back...
    Does anyone know where Msn Messenger stores these pictures?
    thx

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    ok ill ask this question in another way,
    First, if u have a folder full of images, how to put them in a list view box all together? (ofcourse in a small size so they fit)

  3. #3
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Re: [2008] Msn Messenger Display Pictures Editor

    if im understanding you whant to list all images in a folder and then make a listview with the images correct?


    The Future Is Always The Way To Live The Life

  4. #4
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Re: [2008] Msn Messenger Display Pictures Editor

    So here it is.

    1º Add a listview, and a listimage.
    then add code

    vb.net Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim files() As String
    3.         files = System.IO.Directory.GetFiles("C:\folder", "*.jpg", IO.SearchOption.TopDirectoryOnly)
    4.         Dim i = 0
    5.         For Each fname As String In files
    6.             Debug.Print(fname)
    7.             Dim bmp As Bitmap = New Bitmap(fname)
    8.             ImageList1.Images.Add(fname, bmp)
    9.             ListView1.Items.Add(fname, i)
    10.             i = i + 1
    11.         Next
    12.     End Sub


    The Future Is Always The Way To Live The Life

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    ok... this seems like the right thing
    but i searched and i cant figure it out... how to see the images?
    i mean i see the path
    but where are the thumbnails?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    so should i add the images to the listview or can i show the image list?

  7. #7
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    Set the listview's largeimagelist to the name of your imagelist, set the largeimagelist's image size to around 64x64, set the listview to tile mode.. adjust the tile size and you should be good.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    Quote Originally Posted by TokersBall_CDXX
    Set the listview's largeimagelist to the name of your imagelist, set the largeimagelist's image size to around 64x64, set the listview to tile mode.. adjust the tile size and you should be good.
    ListView1.LargeImageList.ImageSize = 64 * 64
    is not working

    how to set the largeimagelist's image size to around 64x64, and how to set the listview to tile mode???

  9. #9
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    set those properties in the properties explorer when you have the listview selected.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    isnt it possible to do it in coding?
    and after puting the images in the list view... how to get the selected image's path/address when a person clicks on button2?

  11. #11
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    yes you can access the properties during runtime...

    I recommend you review some of the documentation at the msdn.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    i cant figure it out
    whats wrong with this code
    Code:
    ListView1.LargeImageList.ImageSize.Width = 64
    ListView1.LargeImageList.ImageSize.Height = 64
    im getting expression is a value and therefore cannot be the target of an assignment...

    and another thing, when the images are placed in the listview, the path to the file is placed too... i dont want it to be shown... is that possible?
    thx

  13. #13
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Re: [2008] Msn Messenger Display Pictures Editor

    Code:
     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim files() As String
            files = System.IO.Directory.GetFiles("C:\outfit", "*.jpg", IO.SearchOption.TopDirectoryOnly)
            Dim i = 0
            ListView1.LargeImageList.ImageSize = New Size(64, 64)
            For Each fname As String In files
                Debug.Print(fname)
                Dim bmp As Bitmap = New Bitmap(fname)
                ImageList1.Images.Add(fname, bmp)
                ListView1.Items.Add(fname, i)
                i = i + 1
            Next
        End Sub
    only add this line at the beggining:
    ListView1.LargeImageList.ImageSize = New Size(64, 64)


    The Future Is Always The Way To Live The Life

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    oh i figured it out
    u must change the size of the imagelist images not the listview. thx

    PS: i didnt see the last reply
    ill check it out
    thx

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    how to find the correct path to the messenger cach
    its C:\Documents and Settings\Username\Local Settings\Temp\MessengerCache

    but whats the code to find this path (find username)?

  16. #16
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Re: [2008] Msn Messenger Display Pictures Editor

    Put this First
    Code:
        Declare Function GetUserName Lib "advapi32.dll" Alias _
              "GetUserNameA" (ByVal lpBuffer As String, _
              ByRef nSize As Integer) As Integer
    
        Public Function GetUserName() As String
            Dim iReturn As Integer
            Dim userName As String
            userName = New String(CChar(" "), 50)
            iReturn = GetUserName(userName, 50)
            GetUserName = userName.Substring(0, userName.IndexOf(Chr(0)))
        End Function
    and the replace the code.
    Code:
    files = System.IO.Directory.GetFiles("C:\Documents and Settings\" & GetUserName() & "\Local Settings\Temp\MessengerCache", "*.jpg", IO.SearchOption.TopDirectoryOnly)


    The Future Is Always The Way To Live The Life

  17. #17

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    Im having a problem, the files in the folder have no extension, they're "3Ccachedsoap id=22-121052153422 2F3E" for example, so i modified the code to be
    Code:
            files = System.IO.Directory.GetFiles("C:\Documents and Settings\" & GetUserName() & "\Local Settings\Temp\MessengerCache", "*.*", IO.SearchOption.TopDirectoryOnly)
    but im getting an error on
    bmp As Bitmap = New Bitmap(fname)

    with the error "Parameter is not valid."

    what should i do?

  18. #18
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    Those don't appear to be standard image types.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  19. #19

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    hmm.. if i right click on the file and open them in acdsee they open normally... dont u have live msn messenger? check them out...

    even if they're not jpg, they are images, what difference does it make... acdsee can see them, why cant VB?

  20. #20
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    Deciphering the methods Microsoft used to store its cache data in messenger will definitely be a fun task on YOUR part. Perhaps they make reference to how they do it on the msdn some where.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  21. #21

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    i think i found a way
    If I copied all the files to a new folder, rename them all to *.jpg
    then open these new files, VB can read them...
    but that will make the program so slow, specially if there are alot of pictures.
    what u think?

  22. #22
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Re: [2008] Msn Messenger Display Pictures Editor

    Quote Originally Posted by perito
    i think i found a way
    If I copied all the files to a new folder, rename them all to *.jpg
    then open these new files, VB can read them...
    but that will make the program so slow, specially if there are alot of pictures.
    what u think?
    that is a realy complicated question..... i dont realy know how can you do that but i think that is the only way :| Unless you found other way


    The Future Is Always The Way To Live The Life

  23. #23
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    here try this...
    vb Code:
    1. Dim files() As String
    2. files = System.IO.Directory.GetFiles("C:\Documents and Settings\" & GetUserName() & "\Local Settings\Temp\MessengerCache", "*.*", IO.SearchOption.TopDirectoryOnly)
    3.  
    4.  Dim i As Integer = 0
    5.  
    6.         For Each fname As String In files
    7.             Dim bmp As Bitmap
    8.             Dim streamreader As New System.IO.StreamReader(fname)
    9.             Try
    10.                 bmp = New Bitmap(Image.FromStream(streamreader.BaseStream))
    11.                 Me.ImageList1.Images.Add("", bmp)
    12.                 ListView1.Items.Add("", i)
    13.  
    14.             Catch ex As Exception
    15.  
    16.             Finally
    17.                 streamreader.Close()
    18.             End Try
    19.             i = i + 1
    20.         Next
    Last edited by TokersBall_CDXX; Jan 24th, 2008 at 12:29 PM.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  24. #24
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    this may be a bit more optimized considering streamreader is designed for text.
    vb Code:
    1. For Each fname As String In files
    2.             Dim bmp As Bitmap
    3.             Dim file_reader As New System.IO.FileStream(fname, IO.FileMode.Open)
    4.             Dim binary_reader As New System.IO.BinaryReader(file_reader)
    5.             Try
    6.  
    7.                 bmp = New Bitmap(Image.FromStream(binary_reader.BaseStream))
    8.                 Me.ImageList1.Images.Add("", bmp)
    9.                 ListView1.Items.Add("", i)
    10.  
    11.             Catch ex As Exception
    12.  
    13.             Finally
    14.                 file_reader.Close()
    15.                 binary_reader.Close()
    16.             End Try
    17.             i = i + 1
    18.         Next
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  25. #25

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Msn Messenger Display Pictures Editor

    worked perfectly
    thx alot

    hmm.. last question
    how to msgbox the selected image's path/address when a person clicks on button2?

  26. #26
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2008] Msn Messenger Display Pictures Editor

    vb Code:
    1. For Each fname As String In files
    2.             Dim bmp As Bitmap
    3.             Dim file_reader As New System.IO.FileStream(fname, IO.FileMode.Open)
    4.             Dim binary_reader As New System.IO.BinaryReader(file_reader)
    5.             Try
    6.  
    7.                 bmp = New Bitmap(Image.FromStream(binary_reader.BaseStream))
    8.                 Me.ImageList1.Images.Add("", bmp)
    9.                 ListView1.Items.Add(fname, "", i)
    10.  
    11.             Catch ex As Exception
    12.  
    13.             Finally
    14.                 file_reader.Close()
    15.                 binary_reader.Close()
    16.             End Try
    17.             i = i + 1
    18.         Next

    vb Code:
    1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    2.         For Each t As ListViewItem In Me.ListView1.Items
    3.             If t.Selected = True Then MessageBox.Show(t.Name)
    4.         Next
    5.     End Sub
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  27. #27

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [RESOLVED] [2008] Msn Messenger Display Pictures Editor

    i marked this thread as resolved.
    thx
    if u can help me in http://www.vbforums.com/showthread.php?t=506044
    i would be greatful
    thx for ur time

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