Microsoft KB Archive/20011

{|
 * width="100%"|

INFO: Length of STRINGTABLE Resources

 * }

Q20011

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK)
 * Microsoft Win32 Software Development Kit (SDK)

-

SUMMARY
To find the length of a string in the STRINGTABLE you need to do a FindResource and then a SizeofResource to find the total size in bytes of the current block of 16 strings. Remember that STRINGTABLEs are stored specially; to FindResource you will ask for RT_STRING as the Type, and the (string number / 16) + 1 as the name.

Additional query words:

Keywords : kbOSWinNT kbOSWin2000 kbResource kbSDKWin32 kbString kbGrpDSUser kbOSWin

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWinSDKSearch