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.

80 lines
2.4 KiB

  1. // Replace:
  2. // {apiname} with the API name (e.g. FileClose for NetFileClose)
  3. // {date} with today's date in dd-Mmm-yyyy form.
  4. // {email} with your email ID.
  5. // {filename} with name of this file (including .c at end)
  6. // {fullname} with your full name
  7. // {header} is the header file name part (e.g. "wksta" in lmwksta.h)
  8. // Take care of all {expand} replacements.
  9. // Delete these instructions.
  10. /*++
  11. Copyright (c) 1991 Microsoft Corporation
  12. Module Name:
  13. {filename}
  14. Abstract:
  15. This file contains the RpcXlate code to handle the Net{apiname} API.
  16. Author:
  17. {fullname} ({email}) {date}
  18. Environment:
  19. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  20. Requires ANSI C extensions: slash-slash comments, long external names.
  21. Revision History:
  22. {date} {email}
  23. Created.
  24. --*/
  25. // These must be included first:
  26. #include <windef.h> // IN, DWORD, etc.
  27. #include <lmcons.h> // DEVLEN, NET_API_STATUS, etc.
  28. // These may be included in any order:
  29. #include <apinums.h> // API_ equates.
  30. #include <lmerr.h> // ERROR_ and NERR_ equates.
  31. // {expand} Do next line if necessary:
  32. //#include <lm{header}.h> // API's data structures.
  33. #include <netdebug.h> // NetpDbgPrint(), FORMAT_ equates.
  34. #include <remdef.h> // REM16_, REM32_, REMSmb_ equates.
  35. #include <rx.h> // RxRemoteApi().
  36. #include <rx{header}.h> // My prototype(s).
  37. NET_API_STATUS
  38. RxNet{apiname} (
  39. IN LPTSTR UncServerName,
  40. {expand}
  41. )
  42. {
  43. NetpAssert(UncServerName != NULL);
  44. NetpAssert(*UncServerName != '\0');
  45. return (RxRemoteApi(
  46. API_W{apiname}, // API number
  47. UncServerName,
  48. REMSmb_Net{apiname}_P, // parm desc
  49. NULL, // no data desc 16
  50. NULL, // no data desc 32
  51. NULL, // no data desc SMB
  52. NULL, // no aux desc 16
  53. NULL, // no aux desc 32
  54. NULL, // no aux desc SMB
  55. 0, // flags: not a null session API
  56. // rest of API's arguments, in 32-bit LM2.x format:
  57. {expand}));
  58. } // RxNet{apiname}