|
|
|
|
#1 |
|
Junior Member
Join Date: Oct 2015
Posts: 8
|
I am the guy setting these computers up, so the phone in doesn't come into it. Modem
![]() Dotting the GUID (.) was a typo.. I had previously (*g $GUID) but without the quotes the paramater wasn't passed. I think I understand this now. All of these below work now that I quote the variable, but which is best practice for the quote ' ' or " "? Also in the last one I pass n as null for the 3rd parameter, which is the same as i 0 right? I don't care about about a dialogue box as I don't want to display one. MSDN: pAppId [in] A pointer to an SLID structure that specifies the application to check. pGenuineState [out] A pointer to a value of the SL_GENUINE_STATE enumeration that specifies the state of the installation. pUIOptions [in, out, optional] A pointer to an SL_NONGENUINE_UI_OPTIONS structure that specifies a dialog box to display if the installation is not genuine. If the value of this parameter is NULL, no CODE Snippet: # Determin if Windows Genuine Advantage has decided if the computer has been licensed. strcpy $GUID "{55c92734-d682-4d71-983e-d6ec3f16059f}" # System::Call `Slwga::SLIsGenuineLocal(g '{55c92734-d682-4d71-983e-d6ec3f16059f}', *i.r0, i 0) i.r1` System::Call `Slwga::SLIsGenuineLocal(g '$GUID', *i.r0, i 0) i.r1` System::Call `Slwga::SLIsGenuineLocal(g "$GUID", *i.r2, i 0) i.r3` System::Call `Slwga::SLIsGenuineLocal(g '$GUID', *i.r4, n) i.r5` messagebox mb_ok "WGA status: $0 :: $1" messagebox mb_ok "WGA status: $2 :: $3" messagebox mb_ok "WGA status: $4 :: $5" |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|