PDA

Click to See Complete Forum and Search --> : GetWindowsDirectoryW


rino_2
Jan 22nd, 2000, 02:14 AM
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

Clunietp
Jan 22nd, 2000, 04:43 AM
GetWindowsDirectoryA = ANSI version

GetWindowsDirectoryW = UNICODE version

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


Tom

KENNNY
Jan 22nd, 2000, 07:23 AM
whats the difference?
the declaration is the same apart from the W

msdn time methinks :)

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

Tonio169
Jan 23rd, 2000, 10:34 AM
the difference is on how they store data.

Clunietp
Jan 23rd, 2000, 12:37 PM
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/devprods/vs6/vbasic/vbcon98/vbconansidbcsunicodedefinitions.htm

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