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. Win32 equivalent of a .NET API

Win32 equivalent of a .NET API

Scheduled Pinned Locked Moved C / C++ / MFC
csharpjsonquestion
4 Posts 2 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.
  • C Offline
    C Offline
    Chintoo723
    wrote on last edited by
    #1

    Do all .NET APIs have Win32 SDK equivalent? I am looking for using IsolatedStorage API without using .NET. So far I havent been able to figure out the Win32 API for it, does anyone know if one exists? thanks!

    O 1 Reply Last reply
    0
    • C Chintoo723

      Do all .NET APIs have Win32 SDK equivalent? I am looking for using IsolatedStorage API without using .NET. So far I havent been able to figure out the Win32 API for it, does anyone know if one exists? thanks!

      O Offline
      O Offline
      oshah
      wrote on last edited by
      #2

      There isn't a magic MakeIsolatedStorage API in Win32, for the sam reasons there isn't an API to make World Peace :) or an API to solve all of Chintoo723's problems (personal and professional-wise) :-D or a SolveMeaningOfLife API :laugh:. But joking aside, your problem should be solvable, If you make it clearer what feature of IsolatedStorage you need. ie. why do you need IsolatedStorage? Is it for the per-user data, or the code access security, or do you need to get at the Publisher.cya1vn0ixvflytpedycizjvrbaqeoksg folder directly without using .NET (some kind of .NET diagnostic tool)?

      C 1 Reply Last reply
      0
      • O oshah

        There isn't a magic MakeIsolatedStorage API in Win32, for the sam reasons there isn't an API to make World Peace :) or an API to solve all of Chintoo723's problems (personal and professional-wise) :-D or a SolveMeaningOfLife API :laugh:. But joking aside, your problem should be solvable, If you make it clearer what feature of IsolatedStorage you need. ie. why do you need IsolatedStorage? Is it for the per-user data, or the code access security, or do you need to get at the Publisher.cya1vn0ixvflytpedycizjvrbaqeoksg folder directly without using .NET (some kind of .NET diagnostic tool)?

        C Offline
        C Offline
        Chintoo723
        wrote on last edited by
        #3

        oshah wrote:

        your problem should be solvable, If you make it clearer what feature of IsolatedStorage you need. ie. why do you need IsolatedStorage?

        Fair enough, here is what I want: 1. I want to remove files that are present in these folders. DeleteFile does not delete them. I dont know what GetLastError DeleteFile returns as I have limited access to experiment on this computer that has these files. 2. Why I want to remove these files? I am writing a cleanup program in which I need to remove these files. 3. I believe they cant be removed so easily using any of DeleteFile or SHFileOperation. I havent got a chance to examine these files and their attributes yet, but if you know, I am wondering if they leverage any of underlying file system's functionality, and if it is NTFS's, then is this API not supported with FAT? This is unlikely, as I dont see any mention of file system in the IsolatedStorage documentation.

        oshah wrote:

        do you need to get at the Publisher.cya1vn0ixvflytpedycizjvrbaqeoksg folder directly without using .NET

        You said it! And, remove the things there as I mentioned above. thanks!

        O 1 Reply Last reply
        0
        • C Chintoo723

          oshah wrote:

          your problem should be solvable, If you make it clearer what feature of IsolatedStorage you need. ie. why do you need IsolatedStorage?

          Fair enough, here is what I want: 1. I want to remove files that are present in these folders. DeleteFile does not delete them. I dont know what GetLastError DeleteFile returns as I have limited access to experiment on this computer that has these files. 2. Why I want to remove these files? I am writing a cleanup program in which I need to remove these files. 3. I believe they cant be removed so easily using any of DeleteFile or SHFileOperation. I havent got a chance to examine these files and their attributes yet, but if you know, I am wondering if they leverage any of underlying file system's functionality, and if it is NTFS's, then is this API not supported with FAT? This is unlikely, as I dont see any mention of file system in the IsolatedStorage documentation.

          oshah wrote:

          do you need to get at the Publisher.cya1vn0ixvflytpedycizjvrbaqeoksg folder directly without using .NET

          You said it! And, remove the things there as I mentioned above. thanks!

          O Offline
          O Offline
          oshah
          wrote on last edited by
          #4

          Chintoo723 wrote:

          2. Why I want to remove these files? I am writing a cleanup program in which I need to remove these files.

          I hope you're not planning to differentiate between each application's IsolatedStorage Dir name. By this, I mean your program does: "Hmm... Publisher.cya1vn0ixvflytpedycizjvrbaqeoksg belongs to Regex designer. Let's tell the user that it belongs to Visual Studio". This feature (ie. identifying "Publisher.cya1vn0ixvflytpedycizjvrbaqeoksg" as belonging to this and that .NET program), I have no idea how to do without .NET to help. The other feature (doing a brute-force delete of the isolatedstorage folder), should be doable. FWIW, I WAS able to delete the IsolatedStorage folder. Therefore, I would check if some external process is still active and is locking the folder. If there is a process, find it and kill close it.

          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