The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
winampinterface.h File Reference
#include "rpc.h"
#include "rpcndr.h"

Go to the source code of this file.

Classes

struct  __MIDL_winamp_0001

Macros

#define __REQUIRED_RPCNDR_H_VERSION__   440
#define __winamp_INTERFACE_DEFINED__
#define WA_RETURN_STRING_SIZE   ( 260 )

Typedefs

typedef struct __MIDL_winamp_0001 BUFFER

Functions

void __RPC_FAR *__RPC_USER MIDL_user_allocate (size_t)
void __RPC_USER MIDL_user_free (void __RPC_FAR *)
void WAMessageProc (unsigned char __RPC_FAR *pszString)
 simple probing function
void WAExecuteMessage (unsigned char __RPC_FAR *pszString, long command)
 execute winamp command
void WAExecuteMessageString (unsigned char __RPC_FAR *pszString, unsigned char __RPC_FAR *pszParam, long command)
 execute winamp command with string parameter
long WAIntegerResult (unsigned char __RPC_FAR *pszString, long command, long data)
 execute winamp function and return long integer result
long WAStringResult (unsigned char __RPC_FAR pszString[260], long command, long data)
 execute winamp function and return string result
void WAShutdown (void)
 Shutdown function - do not call.
void WASetStringList (unsigned char __RPC_FAR *pszString, byte __RPC_FAR Buffer[], unsigned long BufferLength, long command)
 sets a list in TStrings format with the command supplied
void WAGetStringList (unsigned char __RPC_FAR *pszString, BUFFER __RPC_FAR *pBuffer, long command)
 sets a list in TStrings format from the result of command supplied
void WAGetStringDataList (unsigned char __RPC_FAR *pszString, BUFFER __RPC_FAR *pBuffer, long stringcommand, long datacommand, long datadata)
 sets a list in TStrings format from the result of commands supplied

Variables

handle_t winamp_IfHandle
RPC_IF_HANDLE winamp_v1_0_c_ifspec
RPC_IF_HANDLE winamp_v1_0_s_ifspec

Macro Definition Documentation

#define __REQUIRED_RPCNDR_H_VERSION__   440

Definition at line 16 of file winampinterface.h.

#define __winamp_INTERFACE_DEFINED__

Definition at line 35 of file winampinterface.h.

#define WA_RETURN_STRING_SIZE   ( 260 )

Definition at line 40 of file winampinterface.h.


Typedef Documentation

typedef struct __MIDL_winamp_0001 BUFFER

Function Documentation

void __RPC_FAR* __RPC_USER MIDL_user_allocate ( size_t  )

Definition at line 30 of file RPCExecutor.cpp.

Referenced by populateBuffer().

void __RPC_USER MIDL_user_free ( void __RPC_FAR *  )
void WAExecuteMessage ( unsigned char __RPC_FAR *  pszString,
long  command 
)

execute winamp command

Parameters:
pszStringthe string
commandthe winamp command

Definition at line 241 of file RPCExecutor.cpp.

Referenced by ExecuteMessage(), SafeExecuteMessage(), and winamp_WAExecuteMessage().

void WAExecuteMessageString ( unsigned char __RPC_FAR *  pszString,
unsigned char __RPC_FAR *  pszParam,
long  command 
)

execute winamp command with string parameter

Parameters:
pszStringthe string
pszParamthe string parameter
commandthe winamp command

Definition at line 259 of file RPCExecutor.cpp.

Referenced by ExecuteStringMessage(), SafeExecuteStringMessage(), and winamp_WAExecuteMessageString().

void WAGetStringDataList ( unsigned char __RPC_FAR *  pszString,
BUFFER __RPC_FAR *  pBuffer,
long  stringcommand,
long  datacommand,
long  datadata 
)

sets a list in TStrings format from the result of commands supplied

Parameters:
pszStringthe string
pBufferthe text buffer
stringcommandthe string query query
datacommandthe data query
datadatathe data parameter

Definition at line 412 of file RPCExecutor.cpp.

Referenced by GetStringDataList(), and winamp_WAGetStringDataList().

void WAGetStringList ( unsigned char __RPC_FAR *  pszString,
BUFFER __RPC_FAR *  pBuffer,
long  command 
)

sets a list in TStrings format from the result of command supplied

Parameters:
pszStringthe string
pBufferthe text buffer
commandthe winamp command

Definition at line 379 of file RPCExecutor.cpp.

Referenced by GetStringList(), WinampRemote::Client::WinampClientBase::getStringList(), SafeGetStringList(), and winamp_WAGetStringList().

long WAIntegerResult ( unsigned char __RPC_FAR *  pszString,
long  command,
long  data 
)

execute winamp function and return long integer result

Parameters:
pszStringthe string
commandthe winamp command
dataa data parameter

Definition at line 277 of file RPCExecutor.cpp.

Referenced by IntegerResult(), SafeIntegerResult(), and winamp_WAIntegerResult().

void WAMessageProc ( unsigned char __RPC_FAR *  pszString)

simple probing function

Parameters:
pszStringthe string

Definition at line 225 of file RPCExecutor.cpp.

Referenced by SafeSendString(), SendString(), and winamp_WAMessageProc().

void WASetStringList ( unsigned char __RPC_FAR *  pszString,
byte __RPC_FAR  Buffer[],
unsigned long  BufferLength,
long  command 
)

sets a list in TStrings format with the command supplied

Parameters:
pszStringthe string
Bufferthe text buffer
BufferLengththe buffer length
commandthe winamp command

Definition at line 335 of file RPCExecutor.cpp.

Referenced by SafeSetStringList(), SetStringList(), WinampRemote::Client::WinampClientBase::setStringList(), and winamp_WASetStringList().

void WAShutdown ( void  )

Shutdown function - do not call.

Definition at line 318 of file RPCExecutor.cpp.

Referenced by Shutdown(), TfrmPluginMain::StopThread(), and winamp_WAShutdown().

long WAStringResult ( unsigned char __RPC_FAR  pszString[260],
long  command,
long  data 
)

execute winamp function and return string result

Parameters:
pszStringthe string
commandthe winamp command
dataa data parameter

Definition at line 297 of file RPCExecutor.cpp.

Referenced by SafeStringResult(), StringResult(), and winamp_WAStringResult().


Variable Documentation

RPC_IF_HANDLE winamp_v1_0_c_ifspec

Definition at line 57 of file winampinterface_c.c.

RPC_IF_HANDLE winamp_v1_0_s_ifspec

Definition at line 52 of file winampinterface_s.c.

Referenced by WinampRemote::Server::RPCExecutor::Execute().