< prev index next >

src/jdk.incubator.jpackage/windows/native/libjpackage/WinSysInfo.h

Print this page

        

*** 21,34 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ - #include <windows.h> ! extern "C" { ! BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, ! LPVOID lpvReserved) { ! return true; ! } } \ No newline at end of file --- 21,49 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! #ifndef WINSYSINFO_H ! #define WINSYSINFO_H ! #include "SysInfo.h" ! ! ! // ! // Windows specific SysInfo. ! // ! namespace SysInfo { ! // gets Windows System folder. A typical path is C:\Windows\System32. ! tstring getSystem32Dir(); ! ! // returns full path to msiexec.exe executable ! tstring getWIPath(); ! ! // Returns handle of the current module (exe or dll). ! // The function assumes this code is statically linked to the module. ! HMODULE getCurrentModuleHandle(); } + + + #endif // WINSYSINFO_H
< prev index next >