/// <summary> /// Send a raw command to TellStick. Please read the TellStick protocol definition on how the command should be constructed. /// </summary> /// <param name="command">The command for TellStick in its native format</param> /// <param name="reserved"></param> /// <returns>Success or error code</returns> public static unsafe int tdSendRawCommand(string command, int reserved) { char *commandChar = stringToChar(command); int returnValue = UnmanagedImport.tdSendRawCommand(commandChar, reserved); Marshal.FreeHGlobal((IntPtr)commandChar); return(returnValue); }