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_c.c File Reference
#include <string.h>
#include "winampinterface.h"

Go to the source code of this file.

Classes

struct  _MIDL_TYPE_FORMAT_STRING
struct  _MIDL_PROC_FORMAT_STRING

Macros

#define TYPE_FORMAT_STRING_SIZE   55
#define PROC_FORMAT_STRING_SIZE   91

Typedefs

typedef struct
_MIDL_TYPE_FORMAT_STRING 
MIDL_TYPE_FORMAT_STRING
typedef struct
_MIDL_PROC_FORMAT_STRING 
MIDL_PROC_FORMAT_STRING

Functions

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

const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString
const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
handle_t winamp_IfHandle
static const RPC_CLIENT_INTERFACE winamp___RpcClientInterface
RPC_IF_HANDLE winamp_v1_0_c_ifspec = (RPC_IF_HANDLE)& winamp___RpcClientInterface
const MIDL_STUB_DESC winamp_StubDesc
static RPC_BINDING_HANDLE winamp__MIDL_AutoBindHandle

Macro Definition Documentation

#define PROC_FORMAT_STRING_SIZE   91

Definition at line 21 of file winampinterface_c.c.

#define TYPE_FORMAT_STRING_SIZE   55

Definition at line 20 of file winampinterface_c.c.


Typedef Documentation


Function Documentation

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

execute winamp command

Parameters:
pszStringthe string
commandthe winamp command

Definition at line 110 of file winampinterface_c.c.

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 160 of file winampinterface_c.c.

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 505 of file winampinterface_c.c.

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 446 of file winampinterface_c.c.

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 219 of file winampinterface_c.c.

void WAMessageProc ( unsigned char __RPC_FAR *  pszString)

simple probing function

Parameters:
pszStringthe string

Definition at line 64 of file winampinterface_c.c.

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 380 of file winampinterface_c.c.

void WAShutdown ( void  )

Shutdown function - do not call.

Definition at line 343 of file winampinterface_c.c.

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 280 of file winampinterface_c.c.


Variable Documentation

static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString

Definition at line 598 of file winampinterface_c.c.

static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString

Definition at line 745 of file winampinterface_c.c.

const RPC_CLIENT_INTERFACE winamp___RpcClientInterface
static
Initial value:
{
sizeof(RPC_CLIENT_INTERFACE),
{{0xDBA14E47,0xF2F4,0x11D3,{0x9C,0xCE,0x90,0xA8,0xEF,0x7A,0xA9,0x61}},{1,0}},
{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
0,
0,
0,
0,
0,
0
}

Definition at line 45 of file winampinterface_c.c.

RPC_BINDING_HANDLE winamp__MIDL_AutoBindHandle
static

Definition at line 61 of file winampinterface_c.c.

RPC_IF_HANDLE winamp_v1_0_c_ifspec = (RPC_IF_HANDLE)& winamp___RpcClientInterface

Definition at line 57 of file winampinterface_c.c.