Article View: alt.privacy.anon-server
Article #246192Re: AAM hSub Interpreter now works on XP
From: Nomen Nescio
Date: Wed, 02 Mar 2011 02:53
Date: Wed, 02 Mar 2011 02:53
139 lines
6159 bytes
6159 bytes
> 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: Thanks for your offer. > The GNUPGHOME variable definately works in all versions of windows. Yes, I had never heard of the GNUPGHOME variable until someone mentioned that I should try it in a post in this thread. It didn't seem to do anything for the program after doing a SET GNUPGHOME=... Possibly it was overridden by the --homedir directive. I still have the GNUPGHOME option in there, however. > 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. I used dos to set it but nice SetEnvironmentVariable instructions. > 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. This is not correct. I use double quotes around the gpg.exe file path and it executes perfectly. You can try it by placing the program in a folder with a space therein. > Here's the windows API function for that: I am not going to use this but nice instructions. > ---------------------------------------------------------- > 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. Thanks. The program has already been working correctly for a couple of days now. Don't think I'll try to further fix what isn't broken.
Technical Details
Message-ID:
<efb7c91182b8e721c9a0e16b6c1a36c6@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.anon-server.20141023.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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!mail2news.mixmin.net!not-for-mailReferences:
<9a9cb4e02ac319c2ea28dea5998934a1@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <efb7c91182b8e721c9a0e16b6c1a36c6@dizum.com> Subject: Re: AAM hSub Interpreter now works on XP Date: Wed, 02 Mar 2011 02:53:45 +0000 From: Nomen Nescio <nobody@dizum.com> References: <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.anon-server.20141023.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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!mail2news.mixmin.net!not-for-mail Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@dizum.com>. Newsgroups: alt.privacy.anon-server Lines: 140 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net