Results 1 to 8 of 8

Thread: Winamp > String from pointer

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    How do I get the filename of the song that is played in winamp? The example at nullsofts homepage returns a pointer but it seems like you can't get it with Stringfrompointer or ReadProcessMemory, GetWindowThreadProcessId and OpenProcess. Anyone have idéas?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    Can't you use copy memory?
    Hope this helps

    Crazy D

  3. #3

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    How?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Yeah me too,

    How?

    I wanna know how to use the CopyMemory command, as when i use bitblt routine in conjunction with a timer....
    i loose the focus and get whevers focued at that position on the screen and guess i need to use CopyMemory instead, but lack the knowledge

    DocZaf
    {;->


  5. #5

    Actually I don't believe copymemory will work.

    It's been my experience that CopyMemory only works like ReadProcessMemory only it works within the same process that it's called from... So unless you're making WinAmp read it's own string ::shrug::

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    when you get the module handle with OpenProcess are you sure you're setting the right access rights, I've completley forgotten the name of the constant you need, but you may be using the wrong one.

  7. #7
    Guest
    Got this from http://www.planet-source-code.com and I can't see if it works because I don't have VB 6.0 and it errors in VB 5.0. But the author says it can get the current playing song. Here is the link: Every winamp function you could ever want (v.1.2). Hope it works.

  8. #8

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    HEhee, now look what happens if you don't lock your thread, this is 4 months old! My app got ready 2 months ago
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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