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.

76 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. rpcutil.h
  5. Abstract:
  6. This file contains prototypes for the bind and unbind functions that
  7. all lls functions will call. It also includes the allocate
  8. and free routines used by the MIDL generated RPC stubs.
  9. Author:
  10. Arthur Hanson (arth) Jan 30, 1994
  11. [Environment:]
  12. User Mode - Win32
  13. Revision History:
  14. --*/
  15. #ifndef _RPCUTIL_
  16. #define _RPCUTIL_
  17. #ifndef RPC_NO_WINDOWS_H // Don't let rpc.h include windows.h
  18. #define RPC_NO_WINDOWS_H
  19. #endif // RPC_NO_WINDOWS_H
  20. #include <rpc.h>
  21. //
  22. // The following typedefs are created for use in the Enum entry point
  23. // routines. These structures are meant to mirror the level specific
  24. // info containers that are specified in the .idl file for the Enum API
  25. // function. Using these structures to set up for the API call allows
  26. // the entry point routine to avoid using any bulky level-specific logic
  27. // to set-up or return from the RPC stub call.
  28. //
  29. typedef struct _GENERIC_INFO_CONTAINER {
  30. DWORD EntriesRead;
  31. LPBYTE Buffer;
  32. } GENERIC_INFO_CONTAINER, *PGENERIC_INFO_CONTAINER, *LPGENERIC_INFO_CONTAINER ;
  33. typedef struct _GENERIC_ENUM_STRUCT {
  34. DWORD Level;
  35. PGENERIC_INFO_CONTAINER Container;
  36. } GENERIC_ENUM_STRUCT, *PGENERIC_ENUM_STRUCT, *LPGENERIC_ENUM_STRUCT ;
  37. //
  38. // DEFINES
  39. //
  40. //
  41. // Function Prototypes
  42. //
  43. void *
  44. MIDL_user_allocate(
  45. IN ULONG NumBytes
  46. );
  47. void
  48. MIDL_user_free(
  49. IN PVOID MemPointer
  50. );
  51. #endif // _RPCUTIL_