dynamically updated session name
This commit is contained in:
parent
170d52067b
commit
0880305b23
11 changed files with 51 additions and 36 deletions
|
|
@ -37,6 +37,8 @@ HRESULT SessionStateCallback::QueryInterface(REFIID riid, VOID **ppvInterface) {
|
|||
}
|
||||
|
||||
HRESULT SessionStateCallback::OnDisplayNameChanged(LPCWSTR NewDisplayName, LPCGUID EventContext) {
|
||||
sh->setName(std::wstring(NewDisplayName));
|
||||
sh->getVolumeInfo()->isNameChanged = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
@ -150,6 +152,10 @@ std::wstring Session::getName() {
|
|||
return sessionName;
|
||||
}
|
||||
|
||||
void Session::setName(std::wstring newName) {
|
||||
this->sessionName = newName;
|
||||
}
|
||||
|
||||
bool Session::getMute() {
|
||||
BOOL mut;
|
||||
if(FAILED(sessionVolume->GetMute(&mut))) { /* TIP: Below */ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue