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.

90 lines
2.2 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1995 - 1998
  3. Module Name:
  4. lsapi.idl
  5. Abstract:
  6. Author:
  7. Arthur Hanson (arth) Jan 20-1994
  8. Environment:
  9. User Mode
  10. Revision History:
  11. --*/
  12. [
  13. uuid(57674CD0-5200-11CE-A897-08002B2E9C6D),
  14. version(1.0),
  15. #ifdef __midl
  16. ms_union,
  17. #endif // __midl
  18. pointer_default(unique)
  19. ]
  20. interface lsapirpc
  21. {
  22. //
  23. // Import a dummy interface containing #includes for public .h files. This
  24. // trick is necessary so that midl will only generate marshalling routines
  25. // for subtypes that are relevant to the parameters specified on the RPC
  26. // interface. midl also ingores function prototypes contained therein.
  27. //
  28. import "llsimp.idl" ;
  29. //
  30. // Emit these constants into the generated file.
  31. //
  32. cpp_quote("#define LLS_LPC_ENDPOINT \"llslpc\"")
  33. //
  34. // Note: Must use quad backslash to emit two backslashes into #define
  35. // which when compiled will boil down to single backslash
  36. //
  37. cpp_quote("#define LLS_NP_ENDPOINT \"\\\\pipe\\\\llsrpc\"")
  38. typedef [string] LPWSTR PNAMEW;
  39. typedef [string] LPSTR PNAMEA;
  40. ///////////////////////////////////////////////////////////////////////////////
  41. ///////////////////////////////////////////////////////////////////////////////
  42. ///////////////////////////////////////////////////////////////////////////////
  43. typedef [context_handle] void *LICENSE_HANDLE;
  44. typedef [ref] LICENSE_HANDLE *PLICENSE_HANDLE;
  45. ///////////////////////////////////////////////////////////////////////////////
  46. ///////////////////////////////////////////////////////////////////////////////
  47. //
  48. // Licensing API's
  49. //
  50. //securitypush, code review, the size of 5K is way larger than needed, it should be max of (MAX_EXPECTED_SID_LENGTH, 72, and MAX_USER_NAME_LENGTH, 35, * sizeof (WCHAR). we should consider to use SECURITY_MAX_SID_SIZE in winnt.h
  51. NTSTATUS
  52. LlsrLicenseRequestW(
  53. [out] PLICENSE_HANDLE pLicenseHandle,
  54. [in, string] LPWSTR Product,
  55. [in] ULONG VersionIndex,
  56. [in] BOOLEAN IsAdmin,
  57. [in] ULONG DataType,
  58. [in, range(0, 1024*5)] ULONG DataSize,
  59. [in, size_is(DataSize)] PBYTE Data
  60. );
  61. NTSTATUS
  62. LlsrLicenseFree(
  63. [in, out] PLICENSE_HANDLE pLicenseHandle
  64. );
  65. }