Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Registry Settings For CoCreateInstanceAsAdmin

Registry Settings For CoCreateInstanceAsAdmin

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vishalgpt
    wrote on last edited by
    #1

    what are the valid registry setting for calling CoCreateInstanceAsAdmin()?

    Regards, Vishal

    _ 1 Reply Last reply
    0
    • V vishalgpt

      what are the valid registry setting for calling CoCreateInstanceAsAdmin()?

      Regards, Vishal

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Did you consult MSDN-CoCreateInstanceAsAdmin[^]

      You talk about Being HUMAN. I have it in my name AnsHUMAN

      V 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        Did you consult MSDN-CoCreateInstanceAsAdmin[^]

        You talk about Being HUMAN. I have it in my name AnsHUMAN

        V Offline
        V Offline
        vishalgpt
        wrote on last edited by
        #3

        consulted but still no success. when using CLSCTX_INPROC_SERVER CoCreateInstance() returns S_OK but when using CLSCTX_LOCAL_SERVER CoCreateInstance() Fails.

        Regards, Vishal

        L 1 Reply Last reply
        0
        • V vishalgpt

          consulted but still no success. when using CLSCTX_INPROC_SERVER CoCreateInstance() returns S_OK but when using CLSCTX_LOCAL_SERVER CoCreateInstance() Fails.

          Regards, Vishal

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          vishalgpt wrote:

          Fails.

          That does not help much; tell us what failure you see, try looking up the meaning of any error codes you get.

          d@nish[^] has the answer.

          V 1 Reply Last reply
          0
          • L Lost User

            vishalgpt wrote:

            Fails.

            That does not help much; tell us what failure you see, try looking up the meaning of any error codes you get.

            d@nish[^] has the answer.

            V Offline
            V Offline
            vishalgpt
            wrote on last edited by
            #5

            HRESULT hr = CoCreateInstance(CLSID_CExample,NULL,CLSCTX_LOCAL_SERVER,IID_CExample,(void**)&inf); hr value is E_NOINTERFACE No Such Interface Supported. But if CLSCTX_INPROC_SERVER is used then the value of hr is S_OK sorry for posting twice.

            Regards, Vishal

            L 1 Reply Last reply
            0
            • V vishalgpt

              HRESULT hr = CoCreateInstance(CLSID_CExample,NULL,CLSCTX_LOCAL_SERVER,IID_CExample,(void**)&inf); hr value is E_NOINTERFACE No Such Interface Supported. But if CLSCTX_INPROC_SERVER is used then the value of hr is S_OK sorry for posting twice.

              Regards, Vishal

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              See here[^] for the reason.

              d@nish[^] has the answer.

              V 1 Reply Last reply
              0
              • L Lost User

                See here[^] for the reason.

                d@nish[^] has the answer.

                V Offline
                V Offline
                vishalgpt
                wrote on last edited by
                #7

                thanx

                Regards, Vishal

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups