2009-05-10 4 views
1

현재 UAC를 사용하는 서비스를 다시 시작할 수있는 Windows Media Center 응용 프로그램 (Vista)을 작성하려고합니다. UAC가 비활성화되어 있으면 모든 것이 잘 작동하지만 UAC가 활성화 되 자마자 Access is Denied 오류가 발생합니다.Windows Media Center 응용 프로그램 및 UAC

Windows Media Center 응용 프로그램이 Windows Media Center 프로세스에서 실행되고 있기 때문에 이것이 작동하려면 관리자로 시작해야하기 때문에 이것이라고 생각합니다. 아무도 내가 UAC를 사용하여 이것을 달성 할 수있는 방법을 알고 있습니까?

답변

0

당신이 필요로 프로세스를 표시 할 수는 매니페스트에

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
    <assemblyIdentity version="1.0.0.0" name="CheckForceElevation" type="win32"/> 
     <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> 
     <security> 
     <requestedPrivileges> 
      <requestedExecutionLevel level="requireAdministrator"/> 
     </requestedPrivileges> 
     </security> 
    </trustInfo> 
</assembly> 

을 추가하여 상승 할 수 있습니다.