# Win32 Specifics

**URL:** <https://rubytalk.org/t/win32-specifics/6139>\
**Category:** ruby-talk\
**Created:** [26 May 2003 18:21 UTC](https://rubytalk.org/t/win32-specifics/6139 "2003-05-26T18:21:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddaemon](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@ddaemon](https://rubytalk.org/u/ddaemon)\
**Post date:** [26 May 2003 18:21 UTC](https://rubytalk.org/t/win32-specifics/6139/1 "2003-05-26T18:21:11Z")

</div>

Hi everybody.

I am a nuby to Ruby but I absolutely love the language.  
I was just wondering, is it possible to use Ruby to code  
Windows-specific stuffs such as windows processes  
and registry manipulation? I know there’s the Win32API  
module that allows access to any Win32 functions, but can  
it be done using that module also? or do i need something else?

Thanks.

–ddaemon

---

<div class="post-metadata">

**Author:** ![Chalmers](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Chalmers](https://rubytalk.org/u/Chalmers)\
**Post date:** [26 May 2003 18:34 UTC](https://rubytalk.org/t/win32-specifics/6139/2 "2003-05-26T18:34:28Z")

</div>

> Hi everybody.
> 
> I am a nuby to Ruby but I absolutely love the language.

Hi and welcome,

> I was just wondering, is it possible to use Ruby to code  
> Windows-specific stuffs such as windows processes  
> and registry manipulation? I know there’s the Win32API  
> module that allows access to any Win32 functions, but can  
> it be done using that module also? or do i need something else?

Most things can be done with Win32API, for an example of registry  
manipulation there is

/tmp/ruby/ext/Win32API/lib/win32/registry.rb

if you dl and unpack a ruby source code tarball in /tmp. I bet you can  
learn a lot by studying it. I’m not sure if its included with Andy’s  
installer so you’d better get a source code tarball.

Regards,

Robert Feldt

> **···**
>
> On Tue, 27 May 2003, ddaemon wrote:

---

<div class="post-metadata">

**Author:** ![MikkelFJ1](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MikkelFJ1](https://rubytalk.org/u/MikkelFJ1)\
**Post date:** [26 May 2003 19:01 UTC](https://rubytalk.org/t/win32-specifics/6139/3 "2003-05-26T19:01:28Z")

</div>

“ddaemon” [ddarch@xyborg.de](mailto:ddarch@xyborg.de) wrote in message  
news:3ed25a3a\_1@news.tm.net.my…

> Hi everybody.
> 
> I am a nuby to Ruby but I absolutely love the language.  
> I was just wondering, is it possible to use Ruby to code  
> Windows-specific stuffs such as windows processes  
> and registry manipulation? I know there’s the Win32API  
> module that allows access to any Win32 functions, but can  
> it be done using that module also? or do i need something else?

I haven’t tried, but I’d imagine you can do just about anything using the  
WMI COM objects on Win2K and WinXP. You would use Win32OLE to access the WMI  
objects.

Mikkel
