From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08650C433B4 for ; Wed, 28 Apr 2021 00:43:11 +0000 (UTC) Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ACB85610A5 for ; Wed, 28 Apr 2021 00:43:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ACB85610A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=clodo.it Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 81bfeab1; Wed, 28 Apr 2021 00:43:07 +0000 (UTC) Received: from clodo.it (ec2-52-29-208-32.eu-central-1.compute.amazonaws.com [52.29.208.32]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 2edf898b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Tue, 27 Apr 2021 16:36:16 +0000 (UTC) Received: from [10.123.0.130] (ip-85-42.sn2.clouditalia.com [83.211.85.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by clodo.it (Postfix) with ESMTPSA id 911B560203 for ; Tue, 27 Apr 2021 16:36:16 +0000 (UTC) To: wireguard@lists.zx2c4.com From: Fabrizio Carimati Subject: embeddable-dll-service - c++ - tunnel_proc_t Message-ID: <7ec76c38-be24-2ad1-04dd-0883d46ec39d@clodo.it> Date: Tue, 27 Apr 2021 18:36:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Language: it Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 28 Apr 2021 00:43:06 +0000 X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" I'm trying to embed tunnel.dll in a C++ Windows project, LoadLibrary and GetProcAddress ok, but when i call the proc, simply return 0 and i don't understand why. The docs here: https://git.zx2c4.com/wireguard-windows/about/embeddable-dll-service/README.md what is the exact c++ definition of tunnel_proc_t ? why the docs talk about a go_string (ascii?) when the C# example use a LPWStr? Thanks for any feedback. Fabrizio Carimati