microsoft / microsoft/Detours

DetourAttach ERROR

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
6.4k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied repro.cpp and the command-line build shown in the report, then compare its behavior with the DetourAttach error in the attached image. The issue does not identify the failing entry point, Detours version, expected behavior, or a reproducible failing test, so a concrete done condition cannot yet be defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.