Source code of Windows XP (NT5)
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.

44 lines
1.8 KiB

  1. #pragma once
  2. #if 0
  3. #ifndef __HELPERS_H_INCLUDED__
  4. #define __HELPERS_H_INCLUDED__
  5. #define MAX_URL_LENGTH 2084 // same as INTERNET_MAX_URL_LENGTH
  6. typedef HRESULT(*PFNGETCORSYSTEMDIRECTORY)(LPWSTR, DWORD, LPDWORD);
  7. HRESULT Unicode2Ansi(const wchar_t *src, char ** dest);
  8. HRESULT Ansi2Unicode(const char * src, wchar_t **dest);
  9. UINT GetDriveTypeWrapper(LPCWSTR wzPath);
  10. HRESULT AppCtxGetWrapper(IApplicationContext *pAppCtx, LPWSTR wzTag,
  11. WCHAR **ppwzValue);
  12. HRESULT NameObjGetWrapper(IAssemblyName *pName, DWORD nIdx,
  13. LPBYTE *ppbBuf, LPDWORD pcbBuf);
  14. HRESULT GetFileLastModified(LPCWSTR pwzFileName, FILETIME *pftLastModified);
  15. HRESULT CheckLocaleMatch(BLOB blobAsmLCIDDef, BLOB blobAsmLCIDRef);
  16. DWORD GetRealWindowsDirectory(LPWSTR wszRealWindowsDir, UINT uSize);
  17. HRESULT SIDCmpW(LPWSTR pwzSIDL, LPWSTR pwzSIDR, int *piRet);
  18. HRESULT SetAppCfgFilePath(IApplicationContext *pAppCtx, LPCWSTR wzFilePath);
  19. HRESULT CfgEnterCriticalSection(IApplicationContext *pAppCtx);
  20. HRESULT CfgLeaveCriticalSection(IApplicationContext *pAppCtx);
  21. HRESULT MakeUniqueTempDirectory(LPCSTR szTempDir, LPSTR szUniqueTempDir,
  22. DWORD dwLen);
  23. HRESULT CreateFilePathHierarchy( LPCOLESTR pszName );
  24. DWORD GetRandomName (LPTSTR szDirName, DWORD dwLen);
  25. HRESULT CreateDirectoryForAssembly
  26. (IN DWORD dwDirSize, IN OUT LPTSTR pszPath, IN OUT LPDWORD pcwPath);
  27. HRESULT RemoveDirectoryAndChildren(LPWSTR szDir);
  28. #ifdef NEW_POLICY_CODE
  29. void GetDefaultPlatform(OSINFO *pOS);
  30. #endif
  31. STDAPI CopyPDBs(IAssembly *pAsm);
  32. HRESULT UpdatePolicyTimeStamp();
  33. HRESULT VersionFromString(LPCWSTR wzVersion, WORD *pwVerMajor, WORD *pwVerMinor,
  34. WORD *pwVerRev, WORD *pwVerBld);
  35. BOOL LoadMSCorSN();
  36. BOOL VerifySignature(LPWSTR szFilePath, LPBOOL fAllowDelaySig);
  37. #endif
  38. #endif