Forum
    • Categories
    • Register
    • Login

    How to get CPU serial number using HISE?

    Scheduled Pinned Locked Moved General Questions
    42 Posts 7 Posters 11.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk @Christoph Hart
      last edited by

      @Christoph-Hart said in How to get CPU serial number using HISE?:

      @Dan-Korneff welp it‘s time for a JUCE_EVEN_BETTER_MACHINE_IDS macro…

      Where are we at about this GENERATE_FOOL_PROOF_ID?

      Hise made me an F5 dude, any other app just suffers...

      Dan KorneffD 2 Replies Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff @ustk
        last edited by Dan Korneff

        @ustk I think the method can just be swapped out with the new one.
        I've been tinkering with implementation on this end. Lots of little hurdles backporting from juce 8. Got a huge stack trace to work out, but I've been too swamped to complete

        Dan Korneff - Producer / Mixer / Audio Nerd

        1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff
          last edited by Dan Korneff

          @Christoph-Hart Here's where I'm at:

          https://gitlab.korneff.co/dankorneff/HISE/-/commit/614553958d5a52e212fc6a5f681b0b6e623a6e6b

          I'm currently stuck at

          Severity	Code	Description	Project	File	Line	Suppression State	Details
          Error	LNK2001	unresolved external symbol "public: __cdecl juce::juce::MemoryBlock::~MemoryBlock(void)" (??1MemoryBlock@juce@1@QEAA@XZ)	HISE Standalone_App	Z:\GitHub\HISE\projects\standalone\Builds\VisualStudio2022\include_juce_core.obj	1		
          Error	LNK2001	unresolved external symbol "public: __cdecl juce::juce::MemoryBlock::MemoryBlock(void)" (??0MemoryBlock@juce@1@QEAA@XZ)	HISE Standalone_App	Z:\GitHub\HISE\projects\standalone\Builds\VisualStudio2022\include_juce_core.obj	1		
          Error	LNK2001	unresolved external symbol "public: __cdecl juce::juce::MemoryBlock::MemoryBlock(unsigned __int64,bool)" (??0MemoryBlock@juce@1@QEAA@_K_N@Z)	HISE Standalone_App	Z:\GitHub\HISE\projects\standalone\Builds\VisualStudio2022\include_juce_core.obj	1		
          Error	LNK2001	unresolved external symbol "public: __cdecl juce::juce::MemoryBlock::MemoryBlock(class juce::juce::MemoryBlock &&)" (??0MemoryBlock@juce@1@QEAA@$$QEAV011@@Z)	HISE Standalone_App	Z:\GitHub\HISE\projects\standalone\Builds\VisualStudio2022\include_juce_core.obj	1		
          
          

          Any chance you could take a look? (ignore the image file stuff..)

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • Dan KorneffD
            Dan Korneff
            last edited by

            zolu.gif

            Dan Korneff - Producer / Mixer / Audio Nerd

            1 Reply Last reply Reply Quote 1
            • Dan KorneffD
              Dan Korneff @ustk
              last edited by

              @ustk Got it sorted. Sending to beta for testing now.

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 1
              • Dan KorneffD
                Dan Korneff
                last edited by

                @Christoph-Hart @ustk Confirmed working:

                https://gitlab.korneff.co/dankorneff/HISE/-/commit/70837baec92f3dda87ca88f34c694017978a5c57

                It requires 2 new files:
                juce_Span.h
                juce_EnumHelpers.h

                and edits to:
                juce_core.h
                juce_win32_SystemStats.cpp
                juce_SystemStats.cpp
                juce_OnlineUnlockStatus.cpp

                Dan Korneff - Producer / Mixer / Audio Nerd

                Felix WF 1 Reply Last reply Reply Quote 2
                • Felix WF
                  Felix W @Dan Korneff
                  last edited by

                  @Dan-Korneff Hey buddy, sorry to bother you, I don't know what's going on with GitLab, I can't see your code on GitLab, will you publish it on GitHub? Or is there another way for me to get it? I will be very grateful

                  //I am a new student at HISE._
                  //Windows11 & MacOS Ventura 13.6.7_

                  Dan KorneffD 1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff @Felix W
                    last edited by

                    @CatABC I set the repo back to private.
                    Here's a link to the files:
                    https://hub.korneffaudio.com/index.php/s/M6kgXeaZ9BstR7Q
                    This will replace the existing method with the new one. No need to keep the old one since it's flawed.

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    Felix WF 2 Replies Last reply Reply Quote 0
                    • Felix WF
                      Felix W @Dan Korneff
                      last edited by

                      @Dan-Korneff Thank you so much! I don't know how to thank you, you are my big brother, hahahaha🍻 🍻 🍻

                      //I am a new student at HISE._
                      //Windows11 & MacOS Ventura 13.6.7_

                      1 Reply Last reply Reply Quote 0
                      • Felix WF
                        Felix W @Dan Korneff
                        last edited by

                        @Dan-Korneff I used your file, but the generated machine code is the same as the original one. I'm not sure if this is normal. Could you give me an answer?

                        //I am a new student at HISE._
                        //Windows11 & MacOS Ventura 13.6.7_

                        Dan KorneffD 1 Reply Last reply Reply Quote 0
                        • Dan KorneffD
                          Dan Korneff @Felix W
                          last edited by Dan Korneff

                          @CatABC You have to enable this setting in projucer and rebuild HISE:
                          proID.png

                          Now HISE will use the new code to gather system IDs.

                          Then you need to set JUCE_USE_BETTER_MACHINE_IDS=1 in your project so the exported plugin references the correct system ID.

                          Screenshot 2025-06-11 080150.png

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          Felix WF 2 Replies Last reply Reply Quote 0
                          • Felix WF
                            Felix W @Dan Korneff
                            last edited by

                            @Dan-Korneff well,I understand!thanks bro!

                            //I am a new student at HISE._
                            //Windows11 & MacOS Ventura 13.6.7_

                            1 Reply Last reply Reply Quote 0
                            • Felix WF
                              Felix W @Dan Korneff
                              last edited by

                              @Dan-Korneff Hello Dan, after compiling your C++ code, I found a problem. When a new display device is connected, the machine code will change. I wonder if you have this problem?

                              //I am a new student at HISE._
                              //Windows11 & MacOS Ventura 13.6.7_

                              Dan KorneffD 1 Reply Last reply Reply Quote 0
                              • Dan KorneffD
                                Dan Korneff @Felix W
                                last edited by

                                @CatABC said in How to get CPU serial number using HISE?:

                                Hello Dan, after compiling your C++ code, I found a problem. When a new display device is connected, the machine code will change. I wonder if you have this problem?

                                I haven't seen this yet.

                                Dan Korneff - Producer / Mixer / Audio Nerd

                                1 Reply Last reply Reply Quote 0
                                • ustkU
                                  ustk
                                  last edited by

                                  It seems this issue is still here.

                                  I have a situation where a customer apparently needs to re-activate the license each time he wants to use the plugins.

                                  I have very sparse information, but this is probably due to a changing MachineID after a restart. I have told the customer to verify if the current ID matches the one in the currently activated license to confirm the theory. Hopefully I'll get this crucial information.

                                  In the waiting, is there anything I could do aside of just using JUCE_USE_BETTER_MACHINE_IDS?

                                  Hise made me an F5 dude, any other app just suffers...

                                  dannytaurusD 1 Reply Last reply Reply Quote 0
                                  • dannytaurusD
                                    dannytaurus @ustk
                                    last edited by

                                    @ustk Seems like user account verification is the way to go - à la Moonbase.

                                    Very, very not helpful to this thread, I know, but the machine ID issue is only going to get worse, it seems.

                                    Meat Beats: https://meatbeats.com
                                    Klippr Video: https://klippr.video

                                    ustkU 1 Reply Last reply Reply Quote 0
                                    • ustkU
                                      ustk @dannytaurus
                                      last edited by

                                      @dannytaurus Thanks, yes it might be... But what makes you think it's going to be worse?

                                      Hise made me an F5 dude, any other app just suffers...

                                      dannytaurusD 1 Reply Last reply Reply Quote 0
                                      • dannytaurusD
                                        dannytaurus @ustk
                                        last edited by dannytaurus

                                        @ustk Just the ever-tightening security of OS vendors. Privacy is a selling point now, as is anti-machine-fingerprinting.

                                        A user account authentication system, via the browser, feels much more lightweight, predictable and more transparent to the user.

                                        Meat Beats: https://meatbeats.com
                                        Klippr Video: https://klippr.video

                                        1 Reply Last reply Reply Quote 2
                                        • First post
                                          Last post

                                        28

                                        Online

                                        2.5k

                                        Users

                                        13.9k

                                        Topics

                                        120.9k

                                        Posts