toolkit/components/remote/nsWinRemoteUtils.h
author Dave Townsend <dtownsend@oxymoronical.com>
Wed, 06 Feb 2019 14:18:35 -0800
changeset 520645 fe3cd9f0d12bae82190bd17ea474d1a2f4bb80a2
parent 520631 84e8066625fd72fdb1eb6eab85621ae842fe91b4
child 521903 d55401632cea92b6b2775ba278274b5490275876
permissions -rw-r--r--
Bug 1518639: Implement windows remoting server and client. r=jimm Implements the windows remove client and server based on the current remoting code in nsNativeAppSupportWin.cpp. Makes the hidden window classname encode both program name and profile name. nsNativeAppSupportWin is now just used for setting up the console. Differential Revision: https://phabricator.services.mozilla.com/D19076

/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:expandtab:shiftwidth=4:tabstop=4:
 */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsWinRemoteUtils_h__
#define nsWinRemoteUtils_h__

#include "nsString.h"

static void BuildClassName(const char *aProgram, const char *aProfile,
                           nsString& aClassName) {
  aClassName.AppendPrintf("Mozilla_%s_%s_RemoteWindow", aProgram, aProfile);
}

#endif  // nsWinRemoteUtils_h__