Summary: IsUserAnAdmin not in shell32.lib
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optlink

--- Comment #0 from Stefan Sonnenberg <> 
2012-06-13 11:48:43 PDT ---
Given this code snippet:

import std.c.stdio;

extern (Windows) BOOL IsUserAnAdmin();

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


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.
 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:
------- You are receiving this mail because: -------

Reply via email to