Results 1 to 2 of 2

Thread: API Keyboard layout ???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Petach-Tekvia
    Posts
    25

    Post

    what is the way to know the codes for the api
    activatekeyboardlayout

    e.g
    KLF_ACTIVATE

    thank you for the help!!!

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    If they are not in the API viewer (add-in, ships with afaik all vb versions)
    If it's not in there, install Visual C++ and search the headers for the value of the constant. (at least that's the way i do it...)
    For your information, this is it:
    #define KLF_ACTIVATE 0x00000001
    #define KLF_SUBSTITUTE_OK 0x00000002
    #define KLF_UNLOADPREVIOUS 0x00000004
    #define KLF_REORDER 0x00000008
    #if(WINVER >= 0x0400)
    #define KLF_REPLACELANG 0x00000010
    #define KLF_NOTELLSHELL 0x00000080
    #endif /* WINVER >= 0x0400 */
    #define KLF_SETFORPROCESS 0x00000100

    which translates to:
    Const KLF_ACTIVATE = &H1
    Const KLF_SUBSTITUTE_OK = &H2
    Const KLF_UNLOADPREVIOUS = &H4
    Const KLF_REORDER = &H8
    #if(WINVER >= &H400)
    Const KLF_REPLACELANG = &H10
    Const KLF_NOTELLSHELL = &H80
    #endif '/* WINVER >= &H400 */
    Const KLF_SETFORPROCESS = &H100

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width