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.

98 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. apidata.h
  5. Abstract:
  6. contains prototypes for api helper utility function.
  7. Author:
  8. Dan Lafferty (danl) 25-Jul-1991
  9. Environment:
  10. User Mode -Win32
  11. Notes:
  12. optional-notes
  13. Revision History:
  14. 25-Jul-1991 danl
  15. created
  16. --*/
  17. #ifndef _APIUTIL_INCLUDED
  18. #define _APIUTIL_INCLUDED
  19. //
  20. // Function Prototypes
  21. //
  22. DWORD
  23. MsgIsValidMsgName(
  24. IN LPTSTR name
  25. );
  26. DWORD
  27. MsgMapNetError(
  28. IN UCHAR Code // Error code
  29. );
  30. DWORD
  31. MsgLookupName(
  32. IN DWORD net, // The network card to search
  33. IN LPSTR name // Formatted name (Non-unicode)
  34. );
  35. DWORD
  36. MsgLookupNameForThisSession(
  37. IN DWORD net, // The network card to search
  38. IN LPSTR name, // Formatted name to loook for (Non-unicode)
  39. IN ULONG SessionId // Session Id to look for
  40. );
  41. NET_API_STATUS
  42. message_sec_check(VOID);
  43. NET_API_STATUS
  44. MsgGatherInfo (
  45. IN DWORD Level,
  46. IN LPSTR FormattedName,
  47. IN OUT LPBYTE *InfoBufPtr,
  48. IN OUT LPBYTE *StringBufPtr
  49. );
  50. NET_API_STATUS
  51. MsgUnformatName(
  52. LPTSTR UnicodeName,
  53. LPSTR FormattedName
  54. );
  55. BOOL
  56. MsgIsSessionInList(
  57. IN PLIST_ENTRY SessionIdList,
  58. IN ULONG SessionId
  59. );
  60. VOID
  61. MsgRemoveSessionFromList(
  62. IN PLIST_ENTRY SessionIdList,
  63. ULONG SessionId
  64. );
  65. BOOL
  66. MsgAddSessionInList(
  67. IN PLIST_ENTRY SessionIdList,
  68. ULONG SessionId
  69. );
  70. #endif // _APIUTIL_INCLUDED