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.

26 lines
792 B

  1. #ifndef __METAEXP_AUTH__
  2. #define __METAEXP_AUTH__
  3. #include <iadmw.h> // COM Interface header file.
  4. // Validates that the user had privleges to open a metabase handle
  5. BOOL AUTHUSER( COSERVERINFO * pCoServerInfo );
  6. // Validate that the node is of a given KeyType
  7. BOOL ValidateNode(COSERVERINFO * pCoServerInfo, WCHAR *pwszMBPath, WCHAR* KeyType );
  8. BOOL ValidateNode(COSERVERINFO * pCoServerInfo, WCHAR *pwszMBPath, DWORD KeyType );
  9. // Create CoServerInfoStruct
  10. COSERVERINFO * CreateServerInfoStruct(WCHAR* pwszServer, WCHAR* pwszUser, WCHAR* pwszDomain,
  11. WCHAR* pwszPassword, DWORD dwAuthnLevel, BOOL bUsesImpersonation = true);
  12. VOID FreeServerInfoStruct(COSERVERINFO * pServerInfo);
  13. BOOL UsesImpersonation(COSERVERINFO * pServerInfo);
  14. #endif