9 static char IdentBuf[2 * MAX_COMPUTERNAME_LENGTH + 2];
17 char NameBuf[MAX_COMPUTERNAME_LENGTH + 1];
char ComputerBuf [MAX_COMPUTERNAME_LENGTH + 1];
20 BufLen = MAX_COMPUTERNAME_LENGTH + 1;
21 GetComputerName(ComputerBuf, &BufLen);
22 BufLen = MAX_COMPUTERNAME_LENGTH + 1;
23 GetUserName(NameBuf, &BufLen);
24 sprintf(
IdentBuf,
"%s@%s", NameBuf, ComputerBuf);
28 namespace WinampRemote
81 char buffer[MAX_PATH] =
"";
84 string result = buffer;
107 vector<string> result;
109 std::string playlist;
116 std::stringstream input(playlist);
119 while ( std::getline( input, line ) )
121 result.push_back(line);
133 for (
unsigned int i = 0 ; i < playlist.size() ; i++ )
135 sstr << playlist.at(i).c_str() << endl;
139 string list = sstr.str();
149 vector<string>::iterator it;
151 it = newPlaylist.begin();
153 newPlaylist.insert (it + position , playlist.begin(),playlist.end());
337 std::string result =
"";
345 result = (
char *) returnBuf.
Buffer;