locked
Where is the ALLKEYS API documentation? RRS feed

  • Question

  • I was reading through the guidelines for the Windows Mobile Marketplace and one of the guidelines is that instead of using the long deprecated GAPI API for keyinput one should use the ALLKEYS API.  I can't find any information on this API on  MSDN nor could I find any usable information from web searches.

    Has any one heard of ALLKEYS before?


    Joel Ivory Johnson
    Saturday, May 2, 2009 5:12 AM

Answers

  • Actually there is one api call that is not documented for some weird reason. it is in the WM 5.0 as well as WM 6.0 SDK. may be it is just a dummy, so try it out... :-)

    BOOL AllKeys(BOOL bAllKeys);

    so dont ask me what it really does..
    may be you can try calling it and see whether you get the control over the keys. As far as I know there is none other.
    Saturday, May 2, 2009 7:28 PM
  • Found a vital piece of information.  5 days ago some one I believe to be a Microsoft employee posted something in the comments section of a Windows Mobile post.

    As an aside, there is a (soon to be documented) call AllKeys() that you can use to replace GXOpenInput.

    AllKeys(0) is the default state

    AllKeys(1) allows additional button presses to be passed to your application.

    GXOpenInput is (as I understand it) a wrapper for AllKeys, so AllKeys should be able to function as a direct replacement for GXOpenInput().

    AllKeys() is supported in 5.0 through 6.1, and may be supported in previous versions as well.


    I was confused when I saw this API first mentioned int he WM6.5 Marketplace documentation; I had heard that there were no new APIs in WM6.5 yet clearly this is something that wasn't mentioned in documentation before.  So it appears that as Saju points out it has been there all along but just not documented.
    Joel Ivory Johnson
    Saturday, May 2, 2009 9:25 PM

All replies

  • Actually there is one api call that is not documented for some weird reason. it is in the WM 5.0 as well as WM 6.0 SDK. may be it is just a dummy, so try it out... :-)

    BOOL AllKeys(BOOL bAllKeys);

    so dont ask me what it really does..
    may be you can try calling it and see whether you get the control over the keys. As far as I know there is none other.
    Saturday, May 2, 2009 7:28 PM
  • Hi,

    you can trap all key code which i supported by CF.

    switch (e.KeyCode)
                {
                    case Keys.A:
                        break;
                    case Keys.Add:
                        break;
                    case Keys.Alt:
                        break;
                    case Keys.Apps:
                        break;
                    case Keys.Attn:
                        break;
                    case Keys.B:
                        break;
                    case Keys.Back:
                        break;
                    case Keys.C:
                        break;
                    case Keys.Cancel:
                        break;
                    case Keys.Capital:
                        break;
                    case Keys.CapsLock:
                        break;
                    case Keys.Clear:
                        break;
                    case Keys.Control:
                        break;
                    case Keys.ControlKey:
                        break;
                    case Keys.Crsel:
                        break;
                    case Keys.D:
                        break;
                    case Keys.D0:
                        break;
                    case Keys.D1:
                        break;
                    case Keys.D2:
                        break;
                    case Keys.D3:
                        break;
                    case Keys.D4:
                        break;
                    case Keys.D5:
                        break;
                    case Keys.D6:
                        break;
                    case Keys.D7:
                        break;
                    case Keys.D8:
                        break;
                    case Keys.D9:
                        break;
                    case Keys.Decimal:
                        break;
                    case Keys.Delete:
                        break;
                    case Keys.Divide:
                        break;
                    case Keys.Down:
                        break;
                    case Keys.E:
                        break;
                    case Keys.End:
                        break;
                    case Keys.Enter:
                        break;
                    case Keys.EraseEof:
                        break;
                    case Keys.Escape:
                        break;
                    case Keys.Execute:
                        break;
                    case Keys.Exsel:
                        break;
                    case Keys.F:
                        break;
                    case Keys.F1:
                        break;
                    case Keys.F10:
                        break;
                    case Keys.F11:
                        break;
                    case Keys.F12:
                        break;
                    case Keys.F13:
                        break;
                    case Keys.F14:
                        break;
                    case Keys.F15:
                        break;
                    case Keys.F16:
                        break;
                    case Keys.F17:
                        break;
                    case Keys.F18:
                        break;
                    case Keys.F19:
                        break;
                    case Keys.F2:
                        break;
                    case Keys.F20:
                        break;
                    case Keys.F21:
                        break;
                    case Keys.F22:
                        break;
                    case Keys.F23:
                        break;
                    case Keys.F24:
                        break;
                    case Keys.F3:
                        break;
                    case Keys.F4:
                        break;
                    case Keys.F5:
                        break;
                    case Keys.F6:
                        break;
                    case Keys.F7:
                        break;
                    case Keys.F8:
                        break;
                    case Keys.F9:
                        break;
                    case Keys.G:
                        break;
                    case Keys.H:
                        break;
                    case Keys.Help:
                        break;
                    case Keys.Home:
                        break;
                    case Keys.I:
                        break;
                    case Keys.Insert:
                        break;
                    case Keys.J:
                        break;
                    case Keys.K:
                        break;
                    case Keys.KeyCode:
                        break;
                    case Keys.L:
                        break;
                    case Keys.LButton:
                        break;
                    case Keys.LControlKey:
                        break;
                    case Keys.LMenu:
                        break;
                    case Keys.LShiftKey:
                        break;
                    case Keys.LWin:
                        break;
                    case Keys.Left:
                        break;
                    case Keys.LineFeed:
                        break;
                    case Keys.M:
                        break;
                    case Keys.MButton:
                        break;
                    case Keys.Menu:
                        break;
                    case Keys.Modifiers:
                        break;
                    case Keys.Multiply:
                        break;
                    case Keys.N:
                        break;
                    case Keys.Next:
                        break;
                    case Keys.NoName:
                        break;
                    case Keys.None:
                        break;
                    case Keys.NumLock:
                        break;
                    case Keys.NumPad0:
                        break;
                    case Keys.NumPad1:
                        break;
                    case Keys.NumPad2:
                        break;
                    case Keys.NumPad3:
                        break;
                    case Keys.NumPad4:
                        break;
                    case Keys.NumPad5:
                        break;
                    case Keys.NumPad6:
                        break;
                    case Keys.NumPad7:
                        break;
                    case Keys.NumPad8:
                        break;
                    case Keys.NumPad9:
                        break;
                    case Keys.O:
                        break;
                    case Keys.OemClear:
                        break;
                    case Keys.P:
                        break;
                    case Keys.Pa1:
                        break;
                    case Keys.PageDown:
                        break;
                    case Keys.PageUp:
                        break;
                    case Keys.Pause:
                        break;
                    case Keys.Play:
                        break;
                    case Keys.Print:
                        break;
                    case Keys.PrintScreen:
                        break;
                    case Keys.Prior:
                        break;
                    case Keys.ProcessKey:
                        break;
                    case Keys.Q:
                        break;
                    case Keys.R:
                        break;
                    case Keys.RButton:
                        break;
                    case Keys.RControlKey:
                        break;
                    case Keys.RMenu:
                        break;
                    case Keys.RShiftKey:
                        break;
                    case Keys.RWin:
                        break;
                    case Keys.Return:
                        break;
                    case Keys.Right:
                        break;
                    case Keys.S:
                        break;
                    case Keys.Scroll:
                        break;
                    case Keys.Select:
                        break;
                    case Keys.Separator:
                        break;
                    case Keys.Shift:
                        break;
                    case Keys.ShiftKey:
                        break;
                    case Keys.Snapshot:
                        break;
                    case Keys.Space:
                        break;
                    case Keys.Subtract:
                        break;
                    case Keys.T:
                        break;
                    case Keys.Tab:
                        break;
                    case Keys.U:
                        break;
                    case Keys.Up:
                        break;
                    case Keys.V:
                        break;
                    case Keys.W:
                        break;
                    case Keys.X:
                        break;
                    case Keys.XButton1:
                        break;
                    case Keys.XButton2:
                        break;
                    case Keys.Y:
                        break;
                    case Keys.Z:
                        break;
                    case Keys.Zoom:
                        break;
                    default:
                        break;
                }


    Hope that this may be help...




    Pavan Pareta | If you find my post is helpful for you then mark as a answer.
    • Proposed as answer by WmDev Saturday, May 2, 2009 7:49 PM
    Saturday, May 2, 2009 7:49 PM
  • Found a vital piece of information.  5 days ago some one I believe to be a Microsoft employee posted something in the comments section of a Windows Mobile post.

    As an aside, there is a (soon to be documented) call AllKeys() that you can use to replace GXOpenInput.

    AllKeys(0) is the default state

    AllKeys(1) allows additional button presses to be passed to your application.

    GXOpenInput is (as I understand it) a wrapper for AllKeys, so AllKeys should be able to function as a direct replacement for GXOpenInput().

    AllKeys() is supported in 5.0 through 6.1, and may be supported in previous versions as well.


    I was confused when I saw this API first mentioned int he WM6.5 Marketplace documentation; I had heard that there were no new APIs in WM6.5 yet clearly this is something that wasn't mentioned in documentation before.  So it appears that as Saju points out it has been there all along but just not documented.
    Joel Ivory Johnson
    Saturday, May 2, 2009 9:25 PM