Thread: Windows 7 Books help.

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    17

    Question Windows 7 Books help.

    Is there a book out that says how to use c to willing to live with TESTSIGNing
    enabled for everything in Windows 7 and then disable it. OR TESTSIGNing on selective files? Such as NTOSKRNL.exe? John

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    I don't know how much help this is but...

    Kernel-Mode Code Signing Policy (Windows Vista and Later) (Windows Driver Kit)

    TESTSIGNING is for kernel code only. User code can, at this time, still operate without it. What you need to do --unless you are writing drivers-- is to include a manifest with some special settings to get around the UAC.

    Manifest Files Reference (Windows)

    In the example below you should only change the parts marked in red.

    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
      <assemblyIdentity type="win32"
                        name="AutoLogon"
                        version="1.0.0.0"
                        processorArchitecture="X86" />
      <description>
        Auto logon tool  
      </description>
      <dependency>
        <dependentAssembly>
          <assemblyIdentity type="win32"
                            name="Microsoft.Windows.Common-Controls"
                            version="6.0.0.0"
                            processorArchitecture="X86"
                            publicKeyToken="6595b64144ccf1df"
                            language="*" />
        </dependentAssembly>
      </dependency>
      <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
        <security>
          <requestedPrivileges>
            <requestedExecutionLevel  level="asInvoker" 
                                      uiAccess="false" /> 
          </requestedPrivileges>
        </security>
      </trustInfo>
    </assembly>
    The UAC will accept this manifest and allow user mode code to run uninhibited.

    There is no programatic way around digital sigs on drivers that I know of. Most compilers will include a digtal signature into their resources as regbin resources, but there is very little support beyond that.

    However; you can disable TESTSIGNING as described here...

    The TESTSIGNING Boot Configuration Option (Windows Driver Kit)

    But be aware this is system-global and may have unintended consequences with some software.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# windows programming books
    By geek@02 in forum C# Programming
    Replies: 5
    Last Post: 12-04-2010, 11:54 AM
  2. Game Programming Books
    By phantomotap in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 07-11-2010, 10:45 AM
  3. Books (not specifically programming books)
    By DavidP in forum General Discussions
    Replies: 6
    Last Post: 11-05-2009, 07:33 PM
  4. Windows C++ books
    By jdinger in forum C++ Programming
    Replies: 2
    Last Post: 02-15-2002, 12:40 AM