Select the track and then simulate the user keystrokes that lead to the desired action. (I think that will work but I'm not sure.) So, for deleteing, you would SendMessage(HwndPe, WM_KEYDOWN, 0x00ff, somejunkhere), and a corresponding Keyup message. This should simulate the user pressing the delete key--to find out what should go in the place of "somejunkhere", spy on the messages of some app while you press delete, I'm too lazy to do it right now.
For moving send a message to simulate the up or down arrow keys with the alt key pressed- (holding the alt key is part of bits in "somejunkhere") Pressing up and down with alt held moves the song. Just calculate the number of times to move the song, then repeat the message that many times.