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
Printable View
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
GetWindowsDirectoryA = ANSI version
GetWindowsDirectoryW = UNICODE version
Syntax for GetWindowsDirectoryW:
Declare Function GetWindowsDirectoryW Lib "Kernel32" _
(lpBuffer As Any, ByVal nSize As Long) As Long
Tom
whats the difference?
the declaration is the same apart from the W
msdn time methinks :)
------------------
cintel rules :p
www.cintelsoftware.co.uk
the difference is on how they store data.
Unicode is necessary to accomodate other languages, where ANSI is limited.
from MSDN:
more info here:Quote:
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.
http://msdn.microsoft.com/library/de...efinitions.htm
[This message has been edited by Clunietp (edited 01-24-2000).]