[analog-help] Re: Windows Vista?

John Harman john at infotex.co.uk
Fri Jan 12 01:38:45 PST 2007


Jeroen,

There is a small modification which I made to a copy of analog and posted here back in November which *appears* to detect Vista running on 32bit platform, I don't have a 64bit machine to use logfiles from for testing.

I've included the modified code below showing the before and after. It appears to work for me and you are welcome to check, use and confirm yourself.

Make sure you keep a backup before modifying anything though as this hasn't been tested to the extent of the main analog codebase (I'm not a 'C' programmer by nature).

I believe that Stephen Turner (the primary author of Analog) has suggested that he doesn't foresee himself finding time to make any such updates any time soon which is what led me to this.

Hope this helps.

Regards,

John Harman
- - - - - - - - - - - - - -
The views of the author may not necessarily constitute the views of Infotex UK Limited. Nothing in this email shall bind Infotex UK Limited in any contract or obligation. No warranty or suitability for purpose is given or implied by the content of this email.

Infotex UK Ltd is a company registered in England No. 3589880. Registered office: 3 Richfield Place, Richfield Avenue, Reading, RG1 8EQ.
-----Original Message-----
From: John Harman [mailto:john at infotex.co.uk]
Sent: 21 November 2006 14:12
Subject: RE: [analog-help] Re: Windows Vista?


Hi Paul,

Line 874 and 876 are the lines which I amended before adding 875 in - below is a comparison of the two files (assuming it works through the mailing system) which shows how it was before and after,   if that helps you. 
It's possible that if you missed a }{ or something then the compilation would fail. I think I'm right in saying that there wouldn't be much point me posting a compiled version of it unless you were using the same platform (i.e. type of linux/windows) as me which is why analog is generally done from source.

      Diffs: 2, Lines: 4 (02/11/2006, 14:46) 
            Modified Version of tree.c 
     Original Version of tree.c 
     
            Line 871 
     Line 871 
     
       871       else   871       else  
       872         *name = "Windows:Unknown Windows";   872         *name = "Windows:Unknown Windows";  
       873     }   873     }  
       874     else if (*c =='6')  {         
       875         *name = "Windows:Windows Vista";         
       876     } else if (*c >= '7' && *c <= '9')         
              874     else if (*c >= '6' && *c <= '9')  
       877       *name = "Windows:Unknown Windows";   875       *name = "Windows:Unknown Windows";  
       878     else   876     else  
       879       *name = "Windows:Windows NT";   877       *name = "Windows:Windows NT";  


Hope this helps.

Regards,
John Harman
- - - - - - - - - - - - - -
No warranty is given or implied and nothing in this email shall bind the author or Infotex UK Ltd in any contract or obligation. 

-----Original Message-----
From: analog-help-bounces at lists.meer.net
[mailto:analog-help-bounces at lists.meer.net]On Behalf Of Paul
Sent: 02 November 2006 13:53
To: analog-help at lists.meer.net
Subject: [analog-help] Re: Windows Vista?


Hey John,

Thanks for your help.  This is all pretty new to me!

I have downloaded the analog source code, although the server seems to be on
its knees. In the tree.c file, it’s just line 874 that needs to be
overwritten, with this bit from your snippet, is that right?

          else if (*c =='6') {
           *name = "Windows:Windows Vista";
         }
         else if (*c >= '7' && *c <= '9')

Also, the compilation.  I have never done this before, so get as far as the
NMAKE/f bit and then rather crash out, with the feeling that I am probably
missing something.  Might you be able to post the compiled file somewhere for
download, or I can post it somewhere too, if everybody wants a go!

Tx again…


+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Scanned by MailDefender - managed email security from intY - www.maildefender.net


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.meer.net/pipermail/analog-help/attachments/20070112/28a602ed/attachment.html


More information about the analog-help mailing list