Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. Instructions for adding a Win32 API function to CmUtoA
  2. ======================================================
  3. Note that all the files referenced below contain functions or declarations in alphabetical order.
  4. This sort order should be maintained.
  5. For these instructions, I will use an imaginary Win32 API function named DoSomething.
  6. In cm\common\inc\cmutoa.h
  7. =========================
  8. (a) search \nt\public\sdk\inc\*.h for the 'W' version of the function declaration, and copy it into
  9. the declarations section at the top, then modify to match the surrounding functions.
  10. (b) Add an entry within the _tagUAPIInit union.
  11. (c) Increment the size of ppvUapiFun by 1.
  12. In cm\common\inc\uapi.h
  13. =======================
  14. add an extern declaration for DoSomethingU.
  15. In cm\uapi\uapiinit\uapiinit.cpp
  16. ================================
  17. (a) add a declaration for DoSomethingU
  18. (b) add the function check to the big return statement in CheckUAPIFunctionPointers
  19. (c) add the assignment for DoSomethingU to both the 'then' and 'else' portions of the
  20. if (IsWindowsNT) statement in InitUnicodeAPI.
  21. In cm\uapi\cmutoa\cmutoa.cpp
  22. ============================
  23. (a) add an initialization line to InitCmUToA
  24. (b) create the wrapper function DoSomethingAU in this file (maintain sort order).