How can I return the handle of my application when it's a module?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Blackburn

    How can I return the handle of my application when it's a module?

    Hi Gang,
    Is there a way to return the handle of one's application when it's a
    sub_main module? Does it even have an associated handle? or just a
    processid? Also how can I get the handle of a string - variable?
    Thanks,
    Christian Blackburn


  • Herfried K. Wagner [MVP]

    #2
    Re: How can I return the handle of my application when it's a module?

    * "Christian Blackburn" <Christian_Blac kburn@Damn@Spam @Hotmail.com> scripsit:[color=blue]
    > Is there a way to return the handle of one's application when it's a
    > sub_main module? Does it even have an associated handle? or just a
    > processid?[/color]

    Did you try it with 'Process.GetCur rentProcess().I d'?
    [color=blue]
    > Also how can I get the handle of a string - variable?[/color]

    Handle?!

    --
    Herfried K. Wagner
    MVP · VB Classic, VB.NET
    <http://www.mvps.org/dotnet>

    <http://www.plig.net/nnq/nquote.html>

    Comment

    • Christian Blackburn

      #3
      Re: How can I return the handle of my application when it's a module?

      Hi Herfried,
      I have to transfer a memory address of a string to the clipboard. I thought
      there might be a way to get VB to reveal the memory location of a string.
      However it would seem that the LoadString function is the way to go.
      Thanks for the help,
      Christian Blackburn

      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
      news:bobgrm$1cn 7lb$3@ID-208219.news.uni-berlin.de...[color=blue]
      > * "Christian Blackburn" <Christian_Blac kburn@Damn@Spam @Hotmail.com>[/color]
      scripsit:[color=blue][color=green]
      > > Is there a way to return the handle of one's application when it's a
      > > sub_main module? Does it even have an associated handle? or just a
      > > processid?[/color]
      >
      > Did you try it with 'Process.GetCur rentProcess().I d'?
      >[color=green]
      > > Also how can I get the handle of a string - variable?[/color]
      >
      > Handle?!
      >
      > --
      > Herfried K. Wagner
      > MVP · VB Classic, VB.NET
      > <http://www.mvps.org/dotnet>
      >
      > <http://www.plig.net/nnq/nquote.html>[/color]


      Comment

      Working...