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.

34 lines
981 B

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: SerialNumber.h
  4. //
  5. // Microsoft Digital Rights Management
  6. // Copyright (C) Microsoft Corporation, 1998 - 1999, All Rights Reserved
  7. //
  8. // Description:
  9. //
  10. //-----------------------------------------------------------------------------
  11. #ifndef __SERIALNUMBER_H__
  12. #define __SERIALNUMBER_H__
  13. #pragma once
  14. #ifndef WMDMID_LENGTH
  15. // Also defined in WMDM.idl
  16. #define WMDMID_LENGTH 128
  17. typedef struct __WMDMID
  18. {
  19. UINT cbSize;
  20. DWORD dwVendorID;
  21. BYTE pID[ WMDMID_LENGTH ];
  22. UINT SerialNumberLength;
  23. } WMDMID, *PWMDMID;
  24. #endif
  25. HRESULT __stdcall UtilGetSerialNumber(WCHAR *wcsDeviceName, PWMDMID pSerialNumber, BOOL fCreate);
  26. HRESULT __stdcall UtilGetManufacturer(LPWSTR pDeviceName, LPWSTR *ppwszName, UINT nMaxChars);
  27. HRESULT __stdcall UtilStartStopService(bool fStartService);
  28. #endif // __SERIALNUMBER_H__