Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/powershell-native/nativemsh/pwrshcommon/NativeMsh.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,6 @@ namespace NativeMsh
__out_ecount(1) int * lpMajorVersion,
__out_ecount(1) int * lpMinorVersion);

virtual bool DoesAssemblyExist(
std::string& fileToTest);

virtual void ProbeAssembly(
_In_z_ PCSTR directoryPath,
_In_z_ PCSTR assemblyName,
std::string& result);

virtual void GetTrustedAssemblyList(
PCSTR coreCLRDirectoryPath,
std::stringstream& assemblyList,
Expand Down
11 changes: 11 additions & 0 deletions src/powershell-native/nativemsh/pwrshcommon/SystemCallFacade.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ namespace NativeMsh

virtual int fclose(
FILE *stream) = 0;

virtual HANDLE WINAPI FindFirstFileA(
_In_ LPCSTR lpFileName,
_Out_ LPWIN32_FIND_DATAA lpFindFileData) = 0;

virtual BOOL WINAPI FindNextFileA(
_In_ HANDLE hFindFile,
_Out_ LPWIN32_FIND_DATAA lpFindFileData) = 0;

virtual BOOL WINAPI FindClose(
_Inout_ HANDLE hFindFile) = 0;
};

} // namespace NativeMsh
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,24 @@ namespace NativeMsh
return ::fclose(stream);
}

HANDLE WINAPI WinSystemCallFacade::FindFirstFileA(
_In_ LPCSTR lpFileName,
_Out_ LPWIN32_FIND_DATAA lpFindFileData)
{
return ::FindFirstFileA(lpFileName, lpFindFileData);
}

BOOL WINAPI WinSystemCallFacade::FindNextFileA(
_In_ HANDLE hFindFile,
_Out_ LPWIN32_FIND_DATAA lpFindFileData)
{
return ::FindNextFileA(hFindFile, lpFindFileData);
}

BOOL WINAPI WinSystemCallFacade::FindClose(
_Inout_ HANDLE hFindFile)
{
return ::FindClose(hFindFile);
}

} // namespace NativeMsh
11 changes: 11 additions & 0 deletions src/powershell-native/nativemsh/pwrshcommon/WinSystemCallFacade.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ namespace NativeMsh

virtual int fclose(
FILE *stream);

virtual HANDLE WINAPI FindFirstFileA(
_In_ LPCSTR lpFileName,
_Out_ LPWIN32_FIND_DATAA lpFindFileData);

virtual BOOL WINAPI FindNextFileA(
_In_ HANDLE hFindFile,
_Out_ LPWIN32_FIND_DATAA lpFindFileData);

virtual BOOL WINAPI FindClose(
_Inout_ HANDLE hFindFile);
};

} // namespace NativeMsh
Loading
Loading