🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #246189

Re: AAM hSub Interpreter now works on XP

#246189
From: Nomen Nescio
Date: Wed, 02 Mar 2011 01:33
141 lines
6525 bytes
In article <403fd4a3cc06b96d2948ecb5c0d0b3e2@dizum.com>
Nomen Nescio <nobody@dizum.com> wrote:
>
> /I think?/ :/
>
>   There was a hidden problem with XP wherein it was not executing
> an instruction correctly.  Newer OSs executed the instruction OK.
> I /think/ that I have done a successful work around to the problem.
>  It is finding everything OK on my XP machine, with the exception
> of stunnel.  My XP machine will not connect to the internet so I
> cannot test it, but the stunnel connection is straight forward and
> there shouldn't be any problems there.
>
>   If you place AAM hSub in a folder named AAMhSub_XP, it will be
> basically ready to go.  Edit the params.txt file before you start
> the program to see that everything is pointing correctly to the
> necessary files.  I have already set the parameters to 'Use user
> defined GnuPG paths, so it is using the parameters in params.txt.
>
>   It will start with an error message about not having a key name
> yet, so go to params and enter one.  The hsub field has 'dummy'
> therein and will need to be changed to your hsub string.
>
>   Note the download filename is unique: AAMhSub_XP 4.3.zip
> I don't want to take a chance of errors turning up in the good
> Vista/W7 exe.

I see you have implemented a work-around for your problem with 
finding gpg. It occured to me I might be able to help you get this 
going (without a work-around) and I'm sorry I didn't respond sooner.

In case you're still interested:

The GNUPGHOME variable definately works in all versions of windows. 
Possibly you aren't setting it correctly. I'm not sure what compiler 
you are using (delphi?) but it should have documentation for setting 
environment variables.

This is the Windows API function for this:
---------------------------------------------------------
| The SetEnvironmentVariable function sets the value of an
| environment variable for the current process.
|
| BOOL SetEnvironmentVariable(
|    LPCTSTR lpName,	// address of environment variable name
|    LPCTSTR lpValue 	// address of new value for variable
|   );
|
| Parameters
|
| lpName
|
| Points to a null-terminated string that specifies the
| environment variable whose value is being set. The operating
| system creates the environment variable if it does not exist
| and lpValue is not NULL.
|
| lpValue
|
| Points to a null-terminated string containing the new value
| of the specified environment variable. If this parameter is
| NULL, the variable is deleted from the current process's
| environment.
|
| Return Values
|
| If the function succeeds, the return value is nonzero.
| If the function fails, the return value is zero. To get
| extended error information, call GetLastError.
----------------------------------------------------------

GPG requires the path have NO spaces. Even with quotes around it, it 
must have no spaces. Since you can't be sure it gets installed in a 
space free path, you need to get the directory's short name.

Here's the windows API function for that:
----------------------------------------------------------
| The GetShortPathName function obtains the short path form
| of a specified input path.
|
| DWORD GetShortPathName(
|    LPCTSTR lpszLongPath,	// points to a null-terminated path
|       string
|    LPTSTR lpszShortPath,	// points to a buffer to receive the
|       null-terminated short form of the path
|    DWORD cchBuffer 	// specifies the size of the buffer pointed
|       to by lpszShortPath
|   );
|
| Parameters
|
| lpszLongPath
|
| Points to a null-terminated path string. The function
| obtains the short form of this path.
|
| lpszShortPath
|
| Points to a buffer to receive the null-terminated
| short form of the path specified by lpszLongPath.
|
| cchBuffer
|
| Specifies the size, in characters, of the buffer pointed to
| by lpszShortPath.
|
| Return Values
|
| If the function succeeds, the return value is the length,
| in characters, of the string copied to lpszShortPath, not
| including the terminating null character.
| If the function fails due to the lpszShortPath buffer being
| too small to contain the short path string, the return value
| is the size, in characters, of the short path string. You need
| to call the function with a short path buffer that is at least
| as large as the short path string.
| If the function fails for any other reason, the return value is
| zero. To get extended error information, call GetLastError.
|
| Remarks
|
| When an application calls this function and specifies a path
| on a volume that does not support 8.3 aliases, the function
| fails with ERROR_INVALID_PARAMETER if the path is longer than
| 67 bytes.
| The path specified by lpszLongPath does not have to be a fully
| qualified path or a long path. The short form may be longer
| than the specifed path.
| If the specified path is already in its short form, there is
| no need for any conversion, and the function simply copies the
| specified path to the buffer for the short path.
|
| You can set lpszShortPath to the same value as lpszLongPath;
| in other words, you can set the buffer for the short path to
| the address of the input path string.
| You can obtain the long name of a file from the short name by
| calling the FindFirstFile function.
----------------------------------------------------------

If you need some further help with this just say so.
Technical Details
Message-ID: <9a9cb4e02ac319c2ea28dea5998934a1@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20140712.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news-x2!mail2news
References: <403fd4a3cc06b96d2948ecb5c0d0b3e2@dizum.com>

Show Full Headers
Complete Article Headers
Message-ID: <9a9cb4e02ac319c2ea28dea5998934a1@dizum.com>
Subject: Re: AAM hSub Interpreter now works on XP
Date: Wed, 02 Mar 2011 01:33:25 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <403fd4a3cc06b96d2948ecb5c0d0b3e2@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20140712.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news-x2!mail2news
Newsgroups: alt.privacy.anon-server,alt.privacy
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 140