Merge pull request #10 from UMSKT/master

merge master changes into change-icon
This commit is contained in:
TheTank20
2025-07-18 23:18:14 -05:00
committed by GitHub
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -14,11 +14,11 @@ If you're trying to manage products other than Windows, you need `xpmgr_x86.exe`
`--GetProductID`: Gets the product ID (ex: `76477-755-3803223-21229`).
`--SetProductKey`: Sets the product key (tested to work with dashes). If already activated, this should give an error instead.
`--SetProductKey` or `/ipk`: Sets the product key (tested to work with dashes). If already activated, this should give an error instead.
`--GetInstallationID`: Gets an Installation ID with **no dashes** (ex: `253286028742154311079061239762245184619981623171292574`). If already activated, this should give an error instead.
`--GetInstallationID` or `/dti`: Gets an Installation ID with **no dashes** (ex: `253286028742154311079061239762245184619981623171292574`). If already activated, this should give an error instead.
`--SetConfirmationID`: Sets a Confirmation ID (tested to work with dashes). If already activated, this should give an error instead. If successful, this also removes the "Activate Windows" shortcuts and kills the WPA notifier process (`wpabaln.exe`) if it's running.
`--SetConfirmationID` or `/atp`: Sets a Confirmation ID (tested to work with dashes). If already activated, this should give an error instead. If successful, this also removes the "Activate Windows" shortcuts and kills the WPA notifier process (`wpabaln.exe`) if it's running.
`--GetWPALeft`: Gets the number of days before activation is required, in days. If already activated, this should give an error instead.
+4 -4
View File
@@ -897,7 +897,7 @@ int main(int argc, char* argv[])
}
}
if (cmdOptionExists(argv, argv + argc, "--GetInstallationID")) {
if (cmdOptionExists(argv, argv + argc, "--GetInstallationID") || cmdOptionExists(argv, argv + argc, "/dti")) {
if (std::strcmp(specifiedProduct, "Office2003") == 0) {
std::cout << ConvertToStdString(O2003_GetInstallationID());
return 0;
@@ -905,7 +905,7 @@ int main(int argc, char* argv[])
std::cout << ConvertToStdString(XP_GetInstallationID());
return 0;
}
else if (cmdOptionExists(argv, argv + argc, "--SetConfirmationID")) {
else if (cmdOptionExists(argv, argv + argc, "--SetConfirmationID") || cmdOptionExists(argv, argv + argc, "/atp")) {
if (std::strcmp(specifiedProduct, "Office2003") == 0) {
std::cout << ConvertToStdString(O2003_SetConfirmationID(ConvertCharToBSTR(getCmdOption(argv, argv + argc, "--SetConfirmationID"))));
return 0;
@@ -930,7 +930,7 @@ int main(int argc, char* argv[])
return 0;
}
else if (cmdOptionExists(argv, argv + argc, "--SetProductKey")) {
else if (cmdOptionExists(argv, argv + argc, "--SetProductKey") || cmdOptionExists(argv, argv + argc, "/ipk")) {
if (std::strcmp(specifiedProduct, "WindowsNT5x") != 0) {
std::cout << "An error occurred at specifiedProduct: This command is for Windows management only.";
return 6;
@@ -952,4 +952,4 @@ int main(int argc, char* argv[])
return 7;
}
}
#pragma clang diagnostic pop
#pragma clang diagnostic pop