Results 1 to 5 of 5

Thread: GetWindowsDirectoryW

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi,

    I was debugging the Kernel32.dll when I came across a command named GetWindowsDirectoryW. I know the GetWindowsDirectoryA but not W. What is this API used for or is it undocumented?

    Thanks

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    GetWindowsDirectoryA = ANSI version

    GetWindowsDirectoryW = UNICODE version

    Syntax for GetWindowsDirectoryW:
    Declare Function GetWindowsDirectoryW Lib "Kernel32" _
    (lpBuffer As Any, ByVal nSize As Long) As Long


    Tom

  3. #3
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    whats the difference?
    the declaration is the same apart from the W

    msdn time methinks

    ------------------
    cintel rules
    www.cintelsoftware.co.uk

  4. #4
    Lively Member
    Join Date
    Jul 1999
    Posts
    99

    Post

    the difference is on how they store data.

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Unicode is necessary to accomodate other languages, where ANSI is limited.

    from MSDN:
    Unicode encompasses virtually all characters used widely in computers today. This includes most of the world's written scripts, publishing characters, mathematical and technical symbols, geometric shapes, basic dingbats (including all level-100 Zapf Dingbats), and punctuation marks. Some 35,000 code points have already been assigned characters; the rest have been set aside for future use. In addition to modern languages, Unicode covers languages such as literary Chinese, classical Greek, Hebrew, Pali, and Sanskrit. A private-use zone of 6500 locations is available to applications for user-defined characters, which typically are rare ideographs representing names of people or places.
    more info here:
    http://msdn.microsoft.com/library/de...efinitions.htm

    [This message has been edited by Clunietp (edited 01-24-2000).]

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