Hello,
I've been looking through the source code for several OpenZDK apps, and I stumbled across this:
Code:
void SuppressReboot()
{
HKEY key = NULL;
HRESULT hr = S_OK;
DWORD value;
if (SUCCEEDED(hr))
hr = HRESULT_FROM_WIN32(RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"System\\CurrentControlSet\\Control\\Power\\State\\Reboot", 0, 0, &key));
if (SUCCEEDED(hr))
hr = HRESULT_FROM_WIN32(RegSetValueEx(key, L"Flags", 0, REG_DWORD, (BYTE *)&(value = 0x10000), sizeof(DWORD)));
if (SUCCEEDED(hr))
hr = HRESULT_FROM_WIN32(RegSetValueEx(key, L"Default", 0, REG_DWORD, (BYTE *)&(value = 0), sizeof(DWORD)));
if (key)
RegCloseKey(key);
}
This appears to stop the Zune from rebooting when the game exits. Could a similar method be used to enable the playback of DRM protected music?