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.

45 lines
1.5 KiB

  1. #ifndef __METAEXP_UTIL__
  2. #define __METAEXP_UTIL__
  3. #include <atlbase.h>
  4. #include <initguid.h>
  5. #include <comdef.h>
  6. #include <iadmw.h> // COM Interface header file.
  7. #include "common.h"
  8. #define IS_NETBIOS_NAME(lpstr) (*lpstr == _T('\\'))
  9. //
  10. // Return the portion of a computer name without the backslashes
  11. //
  12. #define PURE_COMPUTER_NAME(lpstr) (IS_NETBIOS_NAME(lpstr) ? lpstr + 2 : lpstr)
  13. DWORD GetKeyNameFromPath(const WCHAR *pMBPath, WCHAR *pName, DWORD dwSize);
  14. HRESULT SetBlanket(LPUNKNOWN pIUnk, WCHAR* user, WCHAR* domain, WCHAR* password);
  15. BOOL IsKeyType(IMSAdminBase* pIMeta, METADATA_HANDLE hKey,
  16. wchar_t * pwszPath, wchar_t * key);
  17. HRESULT GetKeyTypeProperty(IMSAdminBase* pIMeta, METADATA_HANDLE hKey, wchar_t * pwszPath, wchar_t *pwszBuffer, DWORD dwMDDataLen );
  18. long GetAvailableSiteID(IMSAdminBase* pIMeta, METADATA_HANDLE hRootKey);
  19. DWORD NET(WCHAR* device, WCHAR* user, WCHAR* password);
  20. HRESULT SetPropertyData(IMSAdminBase* pIMeta, METADATA_HANDLE hKey, wchar_t *pwszMDPath,
  21. DWORD dwMDIdentifier, DWORD dwMDAttributes, DWORD dwMDUserType, DWORD dwMDDataType,
  22. VOID * pData, DWORD dwDataLen);
  23. HRESULT GetPropertyData(IMSAdminBase* pIMeta, METADATA_HANDLE hKey, wchar_t *pwszMDPath,
  24. DWORD dwMDIdentifier, DWORD dwMDAttributes, DWORD dwMDUserType, DWORD dwMDDataType, VOID * pData, DWORD *dwDataBuf);
  25. DWORD MyCreateProcess( LPTSTR appName, LPTSTR cmdLine, DWORD dwCreationFlags, DWORD dwTimeOut );
  26. BOOL IsServerLocal(
  27. IN LPCTSTR lpszServer
  28. );
  29. #endif