[Issue 8235] New: IsUserAnAdmin not in shell32.lib
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 13 11:46:33 PDT 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 at puremagic.com
ReportedBy: stefan.sonnenberg at pythonmeister.com
--- Comment #0 from Stefan Sonnenberg <stefan.sonnenberg at 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 at 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: -------
More information about the Digitalmars-d-bugs
mailing list