Thread overview
[Issue 8235] New: IsUserAnAdmin not in shell32.lib
Jun 13, 2012
Stefan Sonnenberg
Jul 03, 2012
yebblies
Dec 26, 2012
Andrej Mitrovic
June 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8235

           Summary: IsUserAnAdmin not in shell32.lib
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: nobody@puremagic.com
        ReportedBy: stefan.sonnenberg@pythonmeister.com


--- Comment #0 from Stefan Sonnenberg <stefan.sonnenberg@pythonmeister.com> 2012-06-13 11:48:43 PDT ---
Given this code snippet:
8-<

import std.c.stdio;
import std.c.windows.windows;

extern (Windows) BOOL IsUserAnAdmin();

int main(string[] args) {
        return IsUserAnAdmin();
}

>-8

and compiling it with

dmd test.d shell32.lib
OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
test.obj(test)
 Error 42: Symbol Undefined _IsUserAnAdmin@0
--- errorlevel 1

IsUserAdmin is exported by shell32.dll and so this might be a bug ?

Bug reproducable on Windows Vista 32 Bit, DMD32 D Compiler v2.059

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8235


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-07-04 02:57:55 EST ---
This usually happens because the lib included with dmd is out of date.  It can be worked around by generating a new import lib from the dll (using implib) or by using LoadLibrary/GetProcAddress manually.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8235


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-26 15:39:15 PST ---
*** This issue has been marked as a duplicate of issue 6625 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------