I have looked over Mr. Vidal's code and I think this is where the meat is
at. I would like to modify it to just shut down with a double click.
No dialogs or buttons, but I'll probably embed an icon for the desktop.

I'll make sure no WP apps are open at the time.

I forgot what to put around code fragments.

Thanks.

    .if ovi.dwPlatformId == VER_PLATFORM_WIN32_NT
          mov tkp.Privileges[0].Attributes,0
      invoke AdjustTokenPrivileges,hToken,FALSE,ADDR tkp,0,NULL,0
          invoke CloseHandle,hToken
            .endif
            jmp Quitter2

        .elseif wParam==IDM_ARROPT1
              mov config, 00000001h
              invoke CheckMenuRadioItem,hPopupMenu,IDM_ARROPT1,IDM_ARROPT3,IDM_ARROPT1,MF_BYCOMMAND
              invoke SetRegKeyDW , ADDR config, ADDR szKeyName, ADDR szStringValueConfig
              invoke SetMenuDefaultItem,hPopupMenu,IDM_ARR1,FALSE
              mov config,31h
        .elseif wParam==IDM_ARROPT2
              mov config, 00000002h
              invoke CheckMenuRadioItem,hPopupMenu,IDM_ARROPT1,IDM_ARROPT3,IDM_ARROPT2,MF_BYCOMMAND
              invoke SetRegKeyDW , ADDR config, ADDR szKeyName, ADDR szStringValueConfig
              invoke SetMenuDefaultItem,hPopupMenu,IDM_ARR2,FALSE
              mov config,32h
        .elseif wParam==IDM_ARROPT3
              mov config, 00000003h
              invoke CheckMenuRadioItem,hPopupMenu,IDM_ARROPT1,IDM_ARROPT3,IDM_ARROPT3,MF_BYCOMMAND
              invoke SetRegKeyDW , ADDR config, ADDR szKeyName, ADDR szStringValueConfig
              invoke SetMenuDefaultItem,hPopupMenu,IDM_ARR3,FALSE
              mov config,33h
Posted on 2005-08-22 20:39:38 by skywalker