Community discussion forum

API Programming Series #4

This is a comment thread discussing API Programming Series #4
  • 9 years ago

    This thread is for discussions of API Programming Series #4.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 5 years ago

    i think the four series articles were very good guide to help me have more knowledge about visual basic API programming i tried to find some but didnt find any but here.
    i really thank you for this arguement but next time use another examples than the allapi viewr?? )
    but anyway i read all the allapi viewer api functions and i know whats there right now and it s really good in addition of being confusing

  • 5 years ago

    vc

  • 5 years ago

    eh?

  • 5 years ago

    Private Sub MakeUnmake(MakeOrNot As Boolean)


    Dim pid As Long
    Dim regserv As Long


    If MakeOrNot = True Then
     pid = GetCurrentProcessId()
     regserv = RegisterServiceProcess(pid, RSPSIMPLESERVICE)
    Else
     pid = GetCurrentProcessId()
     regserv = RegisterServiceProcess(pid, RSPUNREGISTERSERVICE)
    End If


    End Sub

  • 5 years ago

    Yes, it is.
    The reason I didnt code it that way was to keep the example simpler, though I admit that this did make it a little longer and less elegant.
    Primarily, I wanted to focus on the API call I wanted to explain.
    However, now that I see it in black and white, I kinda like it.
    So may be I'll go ahead and modify my code.
    Thanks

  • 4 years ago

    I get the error: 453: Can't find DLL entry point RegisterServiceProcess in kernel32.
    What does this mean?
    How do I fix it?


    You have written this:
    "As always, mail me if you have any comments or questions"
    How can we email you, when your email is hidden?

  • 4 years ago

    i got teh same problem!!!

  • 3 months ago

    I have got a Problem in code. Unable to find an entry point named 'RegisterServiceProcess' in DLL 'kernel32.dll'.

Post a reply

Enter your message below

Sign in or Join us (it's free).