US/win10/tools/IoTAPIPortingT ool.htm https://www.openssl.org/ - - PowerPoint PPT Presentation

us win10 tools iotapiportingt ool htm https openssl org
SMART_READER_LITE
LIVE PREVIEW

US/win10/tools/IoTAPIPortingT ool.htm https://www.openssl.org/ - - PowerPoint PPT Presentation

Any questions please contact winhectpe@microsoft.com http://ms-iot.github.io/content/en- US/win10/tools/IoTAPIPortingT ool.htm https://www.openssl.org/ GetMemoryStatus GetMemoryStatusEx trusted random number generator - readscreen()


slide-1
SLIDE 1

Any questions please contact winhectpe@microsoft.com

slide-2
SLIDE 2
slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12

http://ms-iot.github.io/content/en- US/win10/tools/IoTAPIPortingT

  • ol.htm
slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17

https://www.openssl.org/

GetMemoryStatus GetMemoryStatusEx trusted random number generator

slide-18
SLIDE 18
  • readscreen()

CreateCompatibleDC, CreateCompatibleBitmap, … rand_s() trusted random number generator GetDesktopWindow, GetProcessWindowStation, GetUserInformationObject

slide-19
SLIDE 19

#ifdef __cplusplus extern “C” { #endif // return 1 for a service or return 0 for not a service #ifdef __cplusplus } #endif

slide-20
SLIDE 20

RegisterEventSource, ReportEvent, DeregisterEventSource, MessageBox

winsysstub.dll

slide-21
SLIDE 21

ws2_32.lib gdi32.lib advapi32.lib crypt32.lib user32.lib

  • necoreuap.lib winsysstub.lib
slide-22
SLIDE 22

http://curl.haxx.se/

VerifyVersionInfo GetVersionEx

slide-23
SLIDE 23
slide-24
SLIDE 24
slide-25
SLIDE 25
slide-26
SLIDE 26
slide-27
SLIDE 27
  • Warni

rning ng

  • If you are going

ng to to mo modify y th the e .vcxpr xproj

  • j file

le directly ectly, , backup kup it t first st!

  • Th

The ta tabs and space ces s mi might ht be differ ferent ent in .sln file! e!

slide-28
SLIDE 28
slide-29
SLIDE 29

http://www.xmlsoft.org/

#define snprintf _snprintf #if _MSC_VER < 1900 #define snprintf _snprintf #endif

slide-30
SLIDE 30
  • Build Problems
  • win32\Makefile.msvc

Init LIB – Link to onecoreuap.lib Link to wsock32.lib ws2_32.lib (Removed) Link to kernel32.lib (Removed) Link option /OPT:NOWIN98 (Removed) Summary in file win32\Readme.WinIoTCore.txt

slide-31
SLIDE 31

https://www.sourceware.org/pthreads-win32/

#undef HAVE_STRUCT_TIMESPEC

#define HAVE_STRUCT_TIMESPEC

#undef NEED_PROCESS_AFFINITY_MASK

#define NEED_PROCESS_AFFINITY_MASK

slide-32
SLIDE 32

http://mosquitto.org/

INADDR_LOOPBACK ws2_32.lib winstaticstub.lib

  • Under WISEAgent\Library3rdParty\winstaticstub.winiotcore
  • A static library
  • Build from IDE
slide-33
SLIDE 33

 #define snprintf sprintf_s  #if _MSC_VER < 1900

#define snprintf sprintf_s #endif

  • Build from IDE
slide-34
SLIDE 34

#ifdef __cplusplus extern “C” { #endif : // functions declaration #ifdef __cplusplus } #endif

slide-35
SLIDE 35
slide-36
SLIDE 36

#

define bool char # define true 1 # define false 0

#if _MSC_VER < 1800 // <stdbool.h> already in VC++ 2013

# define bool char # define true 1 # define false 0 #endif

slide-37
SLIDE 37

CreateT

  • olhelp32Snapshot, Process32First,

Process32Next CloseHandle

K32EnumProcesses K32GetModuleBaseName

slide-38
SLIDE 38
slide-39
SLIDE 39

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3949.pdf

slide-40
SLIDE 40

Project URL Version Source Tree Location in https://github.com/advlinda/cagentoniotcore OpenSSL https://www.openssl.org/ 1.0.1h WISEAgent\Library3rdParty\openssl-1.0.1h Curl http://curl.haxx.se/ 7.37.1 WISEAgent\Library3rdParty\curl-7.37.1 Libxml2 http://www.xmlsoft.org/ 2.7.8 WISEAgent\Library3rdParty\libxml2-2.7.8 Pthreads Win32 https://www.sourceware.org/pthreads- win32/ WISEAgent\Library3rdParty\pthread.win32 mosquitto http://mosquitto.org 1.3.4 WISEAgent\Library3rdParty\mosquito-1.3.4

slide-41
SLIDE 41

Calls to Action

Join WinHEC LINE Community @winhec hec

We want to hear from you! Please Complete the Evaluation Form and return it to our reception. Your input is highly important to us! Thank you!! 

slide-42
SLIDE 42