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.

70 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. FilClose.c
  5. Abstract:
  6. This file contains the RpcXlate code to handle the NetFile APIs.
  7. Author:
  8. John Rogers (JohnRo) 06-Sep-1991
  9. Environment:
  10. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  11. Requires ANSI C extensions: slash-slash comments, long external names.
  12. Revision History:
  13. 06-Sep-1991 JohnRo
  14. Created.
  15. --*/
  16. // These must be included first:
  17. #include <windef.h> // IN, DWORD, etc.
  18. #include <lmcons.h> // NET_API_STATUS, etc.
  19. // These may be included in any order:
  20. #include <apinums.h> // API_ equates.
  21. #include <netdebug.h> // NetpAssert().
  22. //#include <rap.h> // LPDESC.
  23. #include <remdef.h> // REM16_, REM32_, REMSmb_ equates.
  24. #include <rx.h> // RxRemoteApi().
  25. #include <rxfile.h> // My prototype(s).
  26. //#include <rxpdebug.h> // IF_DEBUG().
  27. NET_API_STATUS
  28. RxNetFileClose (
  29. IN LPTSTR UncServerName,
  30. IN DWORD FileId
  31. )
  32. {
  33. NetpAssert(UncServerName != NULL);
  34. NetpAssert(*UncServerName != '\0');
  35. return (RxRemoteApi(
  36. API_WFileClose, // API number
  37. UncServerName,
  38. REMSmb_NetFileClose_P, // parm desc
  39. NULL, // no data desc 16
  40. NULL, // no data desc 32
  41. NULL, // no data desc SMB
  42. NULL, // no aux desc 16
  43. NULL, // no aux desc 32
  44. NULL, // no aux desc SMB
  45. FALSE, // not a null session API
  46. // rest of API's arguments, in 32-bit LM2.x format:
  47. FileId
  48. ));
  49. } // RxNetFileClose