<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic call VixDiskLib_Open to open multi-byte characters file name problem in Virtual Disk Development Kit Discussions</title>
    <link>https://communities.vmware.com/t5/Virtual-Disk-Development-Kit/call-VixDiskLib-Open-to-open-multi-byte-characters-file-name/m-p/669565#M354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file name is Wide Character, then I call the Win32 API WideCharToMultiByte to change it MultiByte. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; uint32 openFlags = VIXDISKLIB_FLAG_OPEN_READ_ONLY;&lt;/P&gt;&lt;P&gt; char fn[MAX_PATH]=&lt;SPAN __jive_macro_name="0"&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt; WideCharToMultiByte(CP_OEMCP,0,fullPathName.c_str(),fullPathName.size(),fn,MAX_PATH,NULL,NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VixDiskLib_Open(connection, path, flags, &amp;amp;_handle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after execute this , &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;it's seem the SDK can't handle this kind of encode.&lt;/P&gt;&lt;P&gt;But anyway, the english file name of VMDK file  can be opened successfully. &lt;/P&gt;&lt;P&gt;But if the chinese file name, it will failed. &lt;/P&gt;&lt;P&gt;This the error message box popup screen-shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone could give me idea ? &lt;/P&gt;&lt;P&gt;How to covert the wide character to multi-byte character to conform the VixDiskLib_Open function requier ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 01:51:48 GMT</pubDate>
    <dc:creator>jerrywang</dc:creator>
    <dc:date>2008-05-20T01:51:48Z</dc:date>
    <item>
      <title>call VixDiskLib_Open to open multi-byte characters file name problem</title>
      <link>https://communities.vmware.com/t5/Virtual-Disk-Development-Kit/call-VixDiskLib-Open-to-open-multi-byte-characters-file-name/m-p/669565#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file name is Wide Character, then I call the Win32 API WideCharToMultiByte to change it MultiByte. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; uint32 openFlags = VIXDISKLIB_FLAG_OPEN_READ_ONLY;&lt;/P&gt;&lt;P&gt; char fn[MAX_PATH]=&lt;SPAN __jive_macro_name="0"&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt; WideCharToMultiByte(CP_OEMCP,0,fullPathName.c_str(),fullPathName.size(),fn,MAX_PATH,NULL,NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VixDiskLib_Open(connection, path, flags, &amp;amp;_handle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after execute this , &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;it's seem the SDK can't handle this kind of encode.&lt;/P&gt;&lt;P&gt;But anyway, the english file name of VMDK file  can be opened successfully. &lt;/P&gt;&lt;P&gt;But if the chinese file name, it will failed. &lt;/P&gt;&lt;P&gt;This the error message box popup screen-shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone could give me idea ? &lt;/P&gt;&lt;P&gt;How to covert the wide character to multi-byte character to conform the VixDiskLib_Open function requier ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 01:51:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Virtual-Disk-Development-Kit/call-VixDiskLib-Open-to-open-multi-byte-characters-file-name/m-p/669565#M354</guid>
      <dc:creator>jerrywang</dc:creator>
      <dc:date>2008-05-20T01:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: call VixDiskLib_Open to open multi-byte characters file name problem</title>
      <link>https://communities.vmware.com/t5/Virtual-Disk-Development-Kit/call-VixDiskLib-Open-to-open-multi-byte-characters-file-name/m-p/669566#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 1.0 release of VDDK, multi-byte characters in file names arent supported. Internationalization support is planned for a future release of VDDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 21:22:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Virtual-Disk-Development-Kit/call-VixDiskLib-Open-to-open-multi-byte-characters-file-name/m-p/669566#M355</guid>
      <dc:creator>hkrishnan</dc:creator>
      <dc:date>2008-05-20T21:22:22Z</dc:date>
    </item>
  </channel>
</rss>

