[ros-dev] misc.c: LengthOfStrResource, AllocAndLoadString

Timo Kreuzer timo.kreuzer at web.de
Sun Feb 10 00:30:00 CET 2008


I wonder why those functions spread around that much (cacls, sndvol, aclui, servman, etc...), since windows has already the needed function:

LoadString will store a pointer to the string resource in *lpBuffer, if nBufferMax is set to 0, so allocating additional memory is not neccessary in most cases. And it also returns the full length.

http://msdn2.microsoft.com/en-us/library/ms647486(VS.85).aspx


>
> Author: cfinck
> Date: Sat Feb  2 00:40:18 2008
> New Revision: 32079
>
> URL: http://svn.reactos.org/svn/reactos?rev=32079&view=rev <http://svn.reactos.org/svn/reactos?rev=32079&view=rev>
> Log:
> Wrote a Win32 Font Editor for our VGA Fonts used in blue.sys.
>
> It has a MDI user interface, imports binary fonts (.bin) and PC Screen Fonts (.psf) and exports .bin fonts.
> Compiles without any warnings with GCC and MSVC (at /W3).
>
> The "misc.c" file was taken from devmgmt (thanks Ged!) and modified.
>
>   


More information about the Ros-dev mailing list