Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DetourAttach ERROR #262

Open
kouzhudong opened this issue Nov 5, 2022 · 0 comments
Open

DetourAttach ERROR #262

kouzhudong opened this issue Nov 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kouzhudong
Copy link

1667642974117

Describe the bug
A clear and concise description of what the bug is. Please check that you've
read the guidelines for submitting a bug report in the
Bug Reports section
of the FAQ.

Command-line test case

C:\Temp>type repro.cpp
#include <iostream>
#include <windows.h>
#include <detours.h>

void main() {
    // Replace this program with one demonstrating your actual bug report,
    // along with the following compilation command. Please leave compiler
    // version banners in the output (don't use /nologo), and include output
    // of your test program, if any.
    std::cout << "Test Case Result: ";
    if (DetourIsHelperProcess()) {
        std::cout << "Fail\n";
    } else {
        std::cout << "Pass\n";
    }
}

C:\Temp>cl.exe /EHsc /W4 /WX .\repro.cpp -I. ..\lib.X64\detours.lib
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

repro.cpp
Microsoft (R) Incremental Linker Version 14.27.29111.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:repro.exe
repro.obj
..\lib.X64\detours.lib

C:\Temp>.\repro.exe
Test Case Result: Pass

Expected behavior
A clear and concise description of what you expected to happen.
Alternatively, include static_assert or assert lines in your
test case above whose failure clearly indicates the problem.

Detours version

Additional context
Add any other context about the problem here.

@kouzhudong kouzhudong added the bug Something isn't working label Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant