Share via

a question about IcmpCreateFile

2022-06-27T02:53:50.293+00:00

Please tell me two things about the Win32 API IcmpCreateFile() or Icmp6CreateFile().

(1)
Please tell me about the conditions under which this API is ERROR_ACCESS_DENIED.

On one site,
When it failed due to a INVALID_HANDLE_VALUE error, it checked whether it was ERROR_ACCESS_DENIED (GetLastError()).
Are I sometimes constrained by user rights, security settings, policies, etc.?

(2)
Memory leak issues have been reported in the past.
Has this been fixed?

see:
KB 2384321
You may see memory leak when running ICMP multithread application on post-Vista OS

Windows development | Windows API - Win32
0 comments No comments

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
    2022-06-27T06:40:49.523+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Yes and ERROR_ACCESS_DENIED is a general error, it should be relative to permission.
    I have tested IcmpCreateFile and there is no problem about the function.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.