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.

42 lines
1.8 KiB

  1. #include "stdafx.h"
  2. void MyGetVersionFromFile(LPCTSTR lpszFilename, LPDWORD pdwMSVer, LPDWORD pdwLSVer, LPTSTR pszReturnLocalizedVersion);
  3. BOOL MyGetDescriptionFromFile(LPCTSTR lpszFilename, LPTSTR pszReturnDescription);
  4. // used for grabbing arch type info out of a file
  5. VOID DumpFileArchInfo(LPCTSTR Filename,PVOID View,DWORD Length,TCHAR *ReturnString);
  6. TCHAR *MachineToString(DWORD Machine);
  7. TCHAR *StripLastBackSlash(TCHAR * i_szDir);
  8. void DisplayVerOnCurrentModule();
  9. DWORD LogPendingReBootOperations(void);
  10. int LogEnumServicesStatus(void);
  11. DWORD LogHeapState(BOOL bLogSuccessStateToo, char *szFileName, int iLineNumber);
  12. int LogFileVersion(IN LPCTSTR lpszFullFilePath, INT bShowArchType);
  13. BOOL LogFilesInThisDir(LPCTSTR szDirName);
  14. void LogFileVersions_System32(void);
  15. void LogFileVersions_Inetsrv(void);
  16. DWORD LogFileVersionsForThisINFSection( IN HINF hFile, IN LPCTSTR szSection );
  17. void LogCurrentProcessIDs(void);
  18. VOID LogFileArchType(LPCTSTR filename, TCHAR * ReturnMachineType);
  19. void LogCheckIfTempDirWriteable(void);
  20. void LogAllProcessDlls(void);
  21. void LogProcessesUsingThisModule(LPCTSTR szModuleNameToLookup, CStringList &strList);
  22. #ifndef _CHICAGO_
  23. void LogProcessesUsingThisModuleW(LPCTSTR szModuleNameToLookup, CStringList &strList);
  24. #else
  25. void LogProcessesUsingThisModuleA(LPCTSTR szModuleNameToLookup, CStringList &strList);
  26. #endif
  27. void LogThisProcessesDLLs(void);
  28. #ifndef _CHICAGO_
  29. void LogThisProcessesDLLsW(void);
  30. #else
  31. void LogThisProcessesDLLsA(void);
  32. #endif
  33. void LogFileVersionsForGroupOfSections(IN HINF hFile);
  34. DWORD LogFileVersionsForCopyFiles(IN HINF hFile, IN LPCTSTR szSection);
  35. void UnInit_Lib_PSAPI(void);
  36. BOOL IsProcessUsingThisModule(LPWSTR lpwsProcessName,DWORD dwProcessId,LPWSTR ModuleName);
  37. DWORD WINAPI FindProcessByNameW(const WCHAR * pszImageName);