jaredpar's WebLog

Code, rants and ramblings of a programmer.
Posts
  • jaredpar's WebLog

    Thread Security changes in 2.0

    • 0 Comments
    While I was looking into CAS changes in 2.0 I found some very good news about thread changes in 2.0. In .NET 2.0 both Thread.CurrentPrincipal and the Thread Impersonation token are now propagated amongst threads including ThreadPool.QueueUserWorkItem...
  • jaredpar's WebLog

    Follow up: PInvoke with 32 and 64 bit

    • 0 Comments
    Recently after I made my original post titled “PInvoke with 32 and 64 bit”, a developer emailed me. They pointed out that there is an internal structure that dynamically resizes based on the architecture; IntPtr. IntPtr will be size of the native chip...
  • jaredpar's WebLog

    PInvoke with 32 and 64 bit machines

    • 3 Comments
    One of the big difficulties still remaining in .NET 2.0 is the interoping with native API's which takes in types that have different sizes on 32 and 64 bit machines. For most API's this is not a problem. But for many, including most of the memory API...
  • jaredpar's WebLog

    ClickOnce FAQ

    • 0 Comments
    Just ran accross this site. It's very helpful if you deploy any ClickOnce application http://www.windowsforms.net/FAQs/default.aspx?PageID=1&CategoryID=24&tabindex=2
  • jaredpar's WebLog

    Cross Posting Test

    • 2 Comments
    This is my first attempt at cross-posting to multiple blogs. Sorry for the spam.
  • jaredpar's WebLog

    Documentation for HeapCreate

    • 1 Comments
    Yet another reason to enable FxCop is it double checks some interop defines (Portability and Interop groups). After enabling FxCop on one of my home brewed interop libraries I was surprised that it complained I had some 64 bit portability problems with...
  • jaredpar's WebLog

    Lessons in Code Access Security: PropertyGrid

    • 0 Comments
    I've started experimenting with Code Access Security at home. This derives from my desire to better understand .NET security and my recent fascination with ClickOnce applications. This weekend I learned a hard lesson in security. I have a couple of...
  • jaredpar's WebLog

    Monad: Detecting if you are an Admin

    • 1 Comments
    One of the LUA tasks I found very frustrating was detecting whether or not I was running as an Admin in a .BAT script. It's very difficult to do this correctly and the best way I found was to write a separate program that would determine this for me....
  • jaredpar's WebLog

    Quick Monad Scripts

    • 0 Comments
    Determine if a command exists in your path. Very helpful when you are writing scripts for mulptiple machines. $local:cmd = get-command doesnotexist -ea SilentlyContinue if ( $null -eq $cmd ) { # Action if command does not exist } ...
  • jaredpar's WebLog

    Shell Scripting with Monad

    • 4 Comments
    I spent a bit of my college days in *nix land. Much of that time was spent writing and maintaining scripts for my various shell accounts. After I switched to primarily developing on Windows, I was frustrated by the Windows CMD shell and eventually lost...
  • jaredpar's WebLog

    Getting HRESULTs back from COM Interop calls

    • 1 Comments
    COM interop is one of the messy places where error by return value vs exception meet head on. COM was built on the basis of HRESULT return values while .NET tends to use exceptions. To compensate for that, the CLR helps out by mapping failure HRESULTs...
  • jaredpar's WebLog

    Assignment vs Interlocked.Exchange

    • 0 Comments
    It's important in multi threaded programs to understand the difference between an assigment operation and Interlocked.Exchange when you are dealing with shared references (memory). The .NET ECMA spec in section 12.6.6 sets that reference assigment...
  • jaredpar's WebLog

    Path.GetFullPath()

    • 1 Comments
    It's very important to read the documentation of this method before actually using it. A common misunderstanding of this method is that it will throw if the path does not exist. If Path.GetFullPath() discovers that the directory does exists it will make...
  • jaredpar's WebLog

    Dos and Lotus 1-2-3 Myth

    • 0 Comments
    http://www.proudlyserving.com/archives/2005/08/dos_aint_done_t.html Adam Barr debunks the "Dos aint done until Lotus 1-2-3 won't run" myth. Includes links to the recent ones that sufaced about IE as well.
  • jaredpar's WebLog

    File System Permissions

    • 3 Comments
    While working on a recent bug a question came up about how permissions work on NTFS. Take the following example directory path c:\University\Fall2005\Homework.cpp Now imagine that our user University\john had the access rights that were specified...
  • jaredpar's WebLog

    New way of dragging and dropping files

    • 0 Comments
    http://liihs.irit.fr/dragice/foldndrop/ Check out the video on this website. The author has implemented a new way of dragging and dropping files in Java and has videotaped a demo. Interesting stuff
  • jaredpar's WebLog

    Team System Developer & Test SKUs Public Chat this Wednesday

    • 1 Comments
    Don't forget to join us this Wednesday at 10am PST to discuss the new Team System Testing infrastructure. Topics include the Profiler, Test Tools (Unit, Generic, Manual), Web Load Testing, and Code Analysis (FxCop & PREFast). We have questions for...
  • jaredpar's WebLog

    Marshaling Nested Data Structures Part 4

    • 0 Comments
    This is part 4 of a series. You can find part one here . Please refer to that article for all of the Native definitions of the structures that I use here. In the previous article we were left with a solution where using the code was very clean but...
  • jaredpar's WebLog

    Marshaling Nested Data Structures Part 3

    • 0 Comments
    This is part 3 of a series. You can find part one here . Please refer to that article for all of the Native definitions of the structures that I use here. In part 2 of this series I demonstrated how you can Marshal nested data structures by flattening...
  • jaredpar's WebLog

    Marshaling Nested Data Structures Part 2

    • 2 Comments
    This is part 2 of a series. You can find part one here . Please refer to that article for all of the Native definitions of the structures that I use here. The most important thing to remember when Marshalling data is that the .Net Runtime really only...
  • jaredpar's WebLog

    Marshaling Nested Data Structures Part 1

    • 11 Comments
    A frequent question that pops up on newsgroups such as microsoft.dotnet.framework.interop is how to Marshal nested structures (and arrays of nested structures) via P/Invoke. The documentation on the subject that I have found usually only covers structures...
  • jaredpar's WebLog

    Updated Version of RunAsAdmin Available

    • 6 Comments
    Valery Pryamikov has released an update version of his RunAsAdmin tool. This version has a lot of new features including policy and stronger integration with the shell. This version is still in Beta but it's been very stable for me. http://www.harper...
  • jaredpar's WebLog

    New LUA Tool

    • 1 Comments
    For the last few weeks, I've been playing around with a LUA tool that was recently presented to me. The tool is available on the following website http://www.harper.no/valery/CategoryView,category,RunAsAdmin.aspx The tool intercepts interactive...
  • jaredpar's WebLog

    Modifying ATL Project to Register Per User

    • 2 Comments
    A week ago, I blogged about how to register COM objects as LUA ( http://blogs.msdn.com/jaredpar/archive/2005/05/17/418780.aspx ). This is a follow up post, to show you how to alter your standard ATL registration code so that your DLL will register for...
  • jaredpar's WebLog

    Paper on Content Distrbution

    • 0 Comments
    Ran accross this paper that does a good job of examining the history of content distrbution. Couple of years old now so it leaves out such items as Bittorrent but still a good read. http://www.bearcave.com/misl/misl_tech/msdrm/darknet.htm
Page 12 of 13 (321 items) «910111213