39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
|
Instructions for adding a Win32 API function to CmUtoA
|
||
|
======================================================
|
||
|
|
||
|
Note that all the files referenced below contain functions or declarations in alphabetical order.
|
||
|
This sort order should be maintained.
|
||
|
|
||
|
For these instructions, I will use an imaginary Win32 API function named DoSomething.
|
||
|
|
||
|
|
||
|
In cm\common\inc\cmutoa.h
|
||
|
=========================
|
||
|
|
||
|
(a) search \nt\public\sdk\inc\*.h for the 'W' version of the function declaration, and copy it into
|
||
|
the declarations section at the top, then modify to match the surrounding functions.
|
||
|
(b) Add an entry within the _tagUAPIInit union.
|
||
|
(c) Increment the size of ppvUapiFun by 1.
|
||
|
|
||
|
|
||
|
In cm\common\inc\uapi.h
|
||
|
=======================
|
||
|
|
||
|
add an extern declaration for DoSomethingU.
|
||
|
|
||
|
|
||
|
In cm\uapi\uapiinit\uapiinit.cpp
|
||
|
================================
|
||
|
|
||
|
(a) add a declaration for DoSomethingU
|
||
|
(b) add the function check to the big return statement in CheckUAPIFunctionPointers
|
||
|
(c) add the assignment for DoSomethingU to both the 'then' and 'else' portions of the
|
||
|
if (IsWindowsNT) statement in InitUnicodeAPI.
|
||
|
|
||
|
|
||
|
In cm\uapi\cmutoa\cmutoa.cpp
|
||
|
============================
|
||
|
|
||
|
(a) add an initialization line to InitCmUToA
|
||
|
(b) create the wrapper function DoSomethingAU in this file (maintain sort order).
|