From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: gnutls on mingw64 Date: Fri, 29 Nov 2019 09:17:42 +0200 Message-ID: <83eexrp2w9.fsf@gnu.org> References: <86h82qq0jh.fsf@stephe-leake.org> <83k17mskr1.fsf@gnu.org> <86zhghod06.fsf@stephe-leake.org> <83blsxqprv.fsf@gnu.org> <86v9r3op8n.fsf@stephe-leake.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="116539"; mail-complaints-to="usenet@blaine.gmane.org" Cc: stephen_leake@stephe-leake.org, emacs-devel@gnu.org To: Richard Copley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 29 08:30:09 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaajA-000UC9-G1 for ged-emacs-devel@m.gmane.org; Fri, 29 Nov 2019 08:30:08 +0100 Original-Received: from localhost ([::1]:55532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaaj8-00057a-PQ for ged-emacs-devel@m.gmane.org; Fri, 29 Nov 2019 02:30:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54445) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaaX8-0000C3-4D for emacs-devel@gnu.org; Fri, 29 Nov 2019 02:17:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iaaWz-00018w-1k; Fri, 29 Nov 2019 02:17:34 -0500 Original-Received: from [176.228.60.248] (port=2345 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iaaWw-0007Vf-JT; Fri, 29 Nov 2019 02:17:30 -0500 In-reply-to: (message from Richard Copley on Thu, 28 Nov 2019 22:22:16 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242861 Archived-At: > From: Richard Copley > Date: Thu, 28 Nov 2019 22:22:16 +0000 > Cc: emacs-devel > > GetLastError() is just an integer, like errno. You must have to do a little more work to get descriptive errors > from other systems? There's probably an equivalent. The Application error log in Event Viewer springs to > mind. I usually do from the shell prompt: net helpmsg NNN where NNN is the code returned by GetLastError. (Programmatically, there's the FormatMessage function to return the error string.) Example: D:\usr\eli>net helpmsg 2 The system cannot find the file specified. > ("Dependencies" gets detailed information somehow. But for all I know (I haven't looked) it emulates the > loader to see what happens.) You can do the same with objdump, btw.